retdec
qualifiers.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_QUALIFIERS_H
8 #define RETDEC_QUALIFIERS_H
9 
10 #include <string>
11 
12 namespace retdec {
13 namespace demangler {
14 namespace borland {
15 
16 /*
17  * @brief Representation of type qualifiers in borland AST.
18  */
20 {
21 public:
22  Qualifiers(bool isVolatile, bool isConst);
23 
24  bool isVolatile() const;
25 
26  bool isConst() const;
27 
28  void printSpaceL(std::ostream &s) const;
29 
30  void printSpaceR(std::ostream &s) const;
31 
32 private:
34  bool _isConst;
35 };
36 
37 } // borland
38 } // demangler
39 } // retdec
40 
41 #endif //RETDEC_QUALIFIERS_H
Definition: qualifiers.h:20
bool isVolatile() const
Definition: qualifiers.cpp:21
bool _isVolatile
Definition: qualifiers.h:33
Qualifiers(bool isVolatile, bool isConst)
Definition: qualifiers.cpp:18
void printSpaceL(std::ostream &s) const
Definition: qualifiers.cpp:36
void printSpaceR(std::ostream &s) const
Definition: qualifiers.cpp:51
bool isConst() const
Definition: qualifiers.cpp:26
bool _isConst
Definition: qualifiers.h:34
Definition: archive_wrapper.h:19