Changes in src/SynTree/Attribute.h [44a81853:a436947]
- File:
-
- 1 edited
-
src/SynTree/Attribute.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Attribute.h
r44a81853 ra436947 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Wed Jan 18 16:27:11 201713 // Update Count : 3 811 // Last Modified By : Rob Schluntz 12 // Last Modified On : Fri May 06 16:26:12 2016 13 // Update Count : 33 14 14 // 15 15 … … 23 23 class Attribute { 24 24 public: 25 Attribute( std::string name = "", const std::list< Expression * > & parameters = std::list< Expression * >() ) : name( name ), parameters( parameters ) {}26 Attribute( const Attribute &other );27 virtual ~Attribute();25 Attribute( std::string name = "", const std::list< Expression * > & parameters = std::list< Expression * >() ) : name( name ), parameters( parameters ) {} 26 Attribute( const Attribute &other ); 27 virtual ~Attribute(); 28 28 29 std::string get_name() const { return name; }30 void set_name( const std::string & newValue ) { name = newValue; }31 std::list< Expression * > & get_parameters() { return parameters; }32 bool empty() const { return name == ""; }29 std::string get_name() const { return name; } 30 void set_name( const std::string & newValue ) { name = newValue; } 31 std::list< Expression * > & get_parameters() { return parameters; } 32 bool empty() const { return name == ""; } 33 33 34 Attribute * clone() const { return new Attribute( *this ); } 35 void print( std:: ostream &os, int indent = 0 ) const; 34 Attribute * clone() const { return new Attribute( *this ); } 35 void print( std:: ostream &os, int indent = 0 ) const; 36 36 37 private: 37 std::string name;38 // to keep things nice and tight, use NameExpr for special identifier parameters39 std::list< Expression * > parameters;38 std::string name; 39 // to keep things nice and tight, use NameExpr for special identifier parameters 40 std::list< Expression * > parameters; 40 41 }; 41 42 42 43 #endif 43 44 // Local Variables: //45 // tab-width: 4 //46 // mode: c++ //47 // compile-command: "make install" //48 // End: //
Note:
See TracChangeset
for help on using the changeset viewer.