Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Constant.h

    r7f5566b rca35c51  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jul 30 15:19:16 2015
    13 // Update Count     : 5
     12// Last Modified On : Thu Jun 30 13:33:17 2016
     13// Update Count     : 6
    1414//
    1515
     
    2929        Type *get_type() { return type; }
    3030        void set_type( Type *newValue ) { type = newValue; }
    31         std::string get_value() { return value; }
     31        std::string &get_value() { return value; }
    3232        void set_value( std::string newValue ) { value = newValue; }
     33
     34        /// generates an integer constant of the given int
     35        static Constant from_int( int i );
     36        /// generates an integer constant of the given unsigned long int
     37        static Constant from_ulong( unsigned long i );
     38        /// generates a floating point constant of the given double
     39        static Constant from_double( double d );
    3340
    3441        virtual Constant *clone() const;
Note: See TracChangeset for help on using the changeset viewer.