ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Defs.h
Go to the documentation of this file.
1 
53 #ifndef ETISS_FAULT_DEFS_H_
54 #define ETISS_FAULT_DEFS_H_
55 
56 #include <iostream>
57 #include <stdint.h>
58 
62 //
63 
65 #define ETISS_FAULT_XML 1
66 
68 #if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L || !defined(NO_ETISS)
69 #define CXX0X_UP_SUPPORTED 1
70 #else
71 #define CXX0X_UP_SUPPORTED 0
72 #endif
73 
74 #if CXX0X_UP_SUPPORTED
75 #include <memory>
76 #endif
77 
78 namespace etiss
79 {
80 namespace fault
81 {
82 
83 class Injector;
84 
85 #if CXX0X_UP_SUPPORTED
86 typedef std::shared_ptr<Injector> Injector_ptr;
87 #else
88 typedef Injector *Injector_ptr;
89 #endif
90 
91 } // namespace fault
92 
93 } // namespace etiss
94 
95 #ifdef NO_ETISS
96 namespace etiss
97 {
98 class ToString
99 {
100  public:
101  inline ToString() {}
102  virtual inline ~ToString() {}
103  virtual inline std::string toString() { return ""; }
104 };
105 } // namespace etiss
106 #endif
107 
108 #endif
virtual ~ToString()
Definition: Misc.h:140
std::shared_ptr< Injector > Injector_ptr
Definition: Defs.h:83
Page Table Entry (PTE) defines the composition of Page Frame Number (PFN) and relavant flags.
Definition: Benchmark.h:53
std::string toString(const T &val)
conversion of type T to std::string.
Definition: Misc.h:174