Changeset e869d663 for src/Parser/ParseNode.h
- Timestamp:
- Aug 12, 2015, 2:26:44 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 43ee2a8, d60ccbf
- Parents:
- d58ebf3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
rd58ebf3 re869d663 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Sat May 16 13:28:16 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Tue Aug 11 15:11:29201513 // Update Count : 1 4511 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Aug 12 13:27:11 2015 13 // Update Count : 172 14 14 // 15 15 … … 40 40 ParseNode(); 41 41 ParseNode( const std::string * ); 42 ParseNode( const std::string & ); // for copy constructing subclasses 42 43 virtual ~ParseNode(); 43 44 … … 49 50 virtual ParseNode *clone() const { return 0; }; 50 51 51 const std::string &get_name() const { return *name; } 52 const std::string &get_name() const { return name; } 53 void set_name( const std::string &newValue ) { name = newValue; } 54 52 55 virtual void print( std::ostream &, int indent = 0 ) const; 53 56 virtual void printList( std::ostream &, int indent = 0 ) const; … … 55 58 ParseNode &operator,( ParseNode &); 56 59 protected: 57 const std::string *name;60 std::string name; 58 61 ParseNode *next; 59 62 static int indent_by;
Note: See TracChangeset
for help on using the changeset viewer.