SST/macro
failable.h
Go to the documentation of this file.
1 #ifndef FAILABLE_H
2 #define FAILABLE_H
3 
6 
7 namespace sstmac {
8  namespace hw {
9 
10 class failable
11 {
12 
13  public:
14  bool
15  failed() const {
16  return failed_;
17  }
18 
19  void
20  fail(){
21  failed_ = true;
22  }
23 
24  protected:
26  failed_(false)
27  {
28  }
29 
30  protected:
31  bool failed_;
32 
33 };
34 
35  }
36 }
37 
38 #endif // FAILABLE_H
bool failed() const
Definition: failable.h:15
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...