Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Attribute.h

    r44a81853 ra436947  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jan 18 16:27:11 2017
    13 // Update Count     : 38
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Fri May 06 16:26:12 2016
     13// Update Count     : 33
    1414//
    1515
     
    2323class Attribute {
    2424  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();
    2828
    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 == ""; }
    3333
    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
    3637  private:
    37         std::string name;
    38         // to keep things nice and tight, use NameExpr for special identifier parameters
    39         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;
    4041};
    4142
    4243#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.