Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r6b0b624 rfa4805f  
    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 : Sat Jul 22 09:52:59 2017
    13 // Update Count     : 124
    14 //
    15 
    16 #pragma once
     11// Last Modified By : Andrew Beach
     12// Last Modified On : Tus Jun 27 15:31:00 2017
     13// Update Count     : 122
     14//
     15
     16#ifndef DECLARATION_H
     17#define DECLARATION_H
    1718
    1819#include <string>
     
    265266        typedef AggregateDecl Parent;
    266267  public:
    267         StructDecl( const std::string &name, DeclarationNode::Aggregate kind = DeclarationNode::Struct, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ) : Parent( name, attributes, linkage ), kind( kind ), tagged( false ), parent_name( "" ) {}
    268         StructDecl( const std::string &name, const std::string *parent, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ) : Parent( name, attributes, linkage ), kind( DeclarationNode::Struct ), tagged( true ), parent_name( parent ? *parent : "" ) {}
     268        StructDecl( const std::string &name, DeclarationNode::Aggregate kind = DeclarationNode::Struct, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ) : Parent( name, attributes, linkage ), kind( kind ) {}
    269269        StructDecl( const StructDecl &other ) : Parent( other ) {}
    270270
     
    273273        bool is_thread() { return kind == DeclarationNode::Thread; }
    274274
    275         // Tagged/Tree Structure Excetion
    276         bool get_tagged() { return tagged; }
    277         void set_tagged( bool newValue ) { tagged = newValue; }
    278         bool has_parent() { return parent_name != ""; }
    279         std::string get_parentName() { return parent_name; }
    280 
    281275        virtual StructDecl *clone() const { return new StructDecl( *this ); }
    282276        virtual void accept( Visitor &v ) { v.visit( this ); }
     
    285279        DeclarationNode::Aggregate kind;
    286280        virtual std::string typeString() const;
    287 
    288         bool tagged;
    289         std::string parent_name;
    290281};
    291282
     
    351342std::ostream & operator<<( std::ostream & out, const Declaration * decl );
    352343std::ostream & operator<<( std::ostream & os, const TypeDecl::Data & data );
     344
     345#endif // DECLARATION_H
    353346
    354347// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.