Changes in src/SynTree/Constant.h [7870799:c36298d]
- File:
-
- 1 edited
-
src/SynTree/Constant.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Constant.h
r7870799 rc36298d 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 Jul 10 15:57:38 201913 // Update Count : 1 911 // Last Modified By : Andrew Beach 12 // Last Modified On : Fri Spt 28 14:48:00 2018 13 // Update Count : 18 14 14 // 15 15 … … 30 30 Constant( Type * type, std::string rep, std::optional<unsigned long long> i ); 31 31 Constant( const Constant & other ); 32 Constant & operator=( const Constant & ) = default;33 32 virtual ~Constant(); 34 33 35 virtual Constant * clone() const override{ return new Constant( *this ); }34 virtual Constant * clone() const { return new Constant( *this ); } 36 35 37 36 Type * get_type() { return type; } … … 51 50 static Constant null( Type * ptrtype = nullptr ); 52 51 53 virtual void accept( Visitor & v ) override { v.visit( this ); } 54 virtual void accept( Visitor & v ) const override { v.visit( this ); } 55 virtual Constant * acceptMutator( Mutator & m ) override { return m.mutate( this ); } 56 virtual void print( std::ostream & os, Indenter indent = 0 ) const override; 57 52 virtual void accept( Visitor & v ) { v.visit( this ); } 53 virtual Constant * acceptMutator( Mutator & m ) { return m.mutate( this ); } 54 virtual void print( std::ostream & os, Indenter indent = 0 ) const; 55 private: 58 56 Type * type; 59 57 std::string rep; 60 58 std::optional<unsigned long long> ival; 59 60 friend class ConverterOldToNew; 61 61 }; 62 62
Note:
See TracChangeset
for help on using the changeset viewer.