MicroModelicaCCompiler  4.5.3
AST_Declaration_ Class Reference

#include <element.hpp>

Inheritance diagram for AST_Declaration_:
Collaboration diagram for AST_Declaration_:

Public Member Functions

 AST_Declaration_ (string name, AST_ExpressionList indexes, AST_Modification)
 
string print () const
 
string name () const
 
AST_ExpressionList indexes () const
 
bool hasIndexes ()
 
AST_Modification modification () const
 
bool hasModification ()
 
void setComment (AST_Comment c)
 
AST_Comment comment () const
 
- Public Member Functions inherited from AST_Element_
 DEFINE_CLASS_PRINTER (AST_Element)
 
virtual ElementType elementType ()
 
void accept (AST_Visitor *visitor)
 
 GET_AS (Element, Component)
 
 GET_AS (Element, ExtendsClause)
 
 GET_AS (Element, ImportClause)
 
 GET_AS (Element, ClassWrapper)
 
- Public Member Functions inherited from AST_Node_
 AST_Node_ ()
 
virtual ~AST_Node_ ()
 
 DEFINE_CLASS_PRINTER (AST_Node)
 
 DEFINE_ORDER_REL (AST_Node)
 
void setLineNum (int linenum)
 
int lineNum () const
 

Private Attributes

string _name
 
AST_ExpressionList _indexes
 
AST_Modification _mod
 
AST_Comment _comm
 

Detailed Description

Definition at line 64 of file element.hpp.

Constructor & Destructor Documentation

◆ AST_Declaration_()

AST_Declaration_::AST_Declaration_ ( string  name,
AST_ExpressionList  indexes,
AST_Modification  m 
)

Definition at line 198 of file element.cpp.

Member Function Documentation

◆ comment()

AST_Comment AST_Declaration_::comment ( ) const

Definition at line 254 of file element.cpp.

References _comm.

Referenced by print().

◆ hasIndexes()

bool AST_Declaration_::hasIndexes ( )

Definition at line 238 of file element.cpp.

References _indexes, and AST_Length().

Here is the call graph for this function:

◆ hasModification()

bool AST_Declaration_::hasModification ( )

Definition at line 250 of file element.cpp.

References _mod.

◆ indexes()

AST_ExpressionList AST_Declaration_::indexes ( ) const

Definition at line 236 of file element.cpp.

References _indexes.

Referenced by print().

◆ modification()

AST_Modification AST_Declaration_::modification ( ) const

Definition at line 248 of file element.cpp.

References _mod.

Referenced by print().

◆ name()

string AST_Declaration_::name ( ) const

Definition at line 234 of file element.cpp.

References _name.

Referenced by print().

◆ print()

string AST_Declaration_::print ( ) const
virtual

Implements AST_Element_.

Definition at line 203 of file element.cpp.

References comment(), current_element, indexes(), modification(), and name().

Here is the call graph for this function:

◆ setComment()

void AST_Declaration_::setComment ( AST_Comment  c)

Definition at line 252 of file element.cpp.

References _comm.

Member Data Documentation

◆ _comm

AST_Comment AST_Declaration_::_comm
private

Definition at line 80 of file element.hpp.

Referenced by comment(), and setComment().

◆ _indexes

AST_ExpressionList AST_Declaration_::_indexes
private

Definition at line 78 of file element.hpp.

Referenced by hasIndexes(), and indexes().

◆ _mod

AST_Modification AST_Declaration_::_mod
private

Definition at line 79 of file element.hpp.

Referenced by hasModification(), and modification().

◆ _name

string AST_Declaration_::_name
private

Definition at line 77 of file element.hpp.

Referenced by name().


The documentation for this class was generated from the following files: