MicroModelicaCCompiler
4.5.3
|
#include <element.hpp>
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 |
![]() | |
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) | |
![]() | |
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 |
Definition at line 64 of file element.hpp.
AST_Declaration_::AST_Declaration_ | ( | string | name, |
AST_ExpressionList | indexes, | ||
AST_Modification | m | ||
) |
Definition at line 198 of file element.cpp.
AST_Comment AST_Declaration_::comment | ( | ) | const |
bool AST_Declaration_::hasIndexes | ( | ) |
Definition at line 238 of file element.cpp.
References _indexes, and AST_Length().
bool AST_Declaration_::hasModification | ( | ) |
Definition at line 250 of file element.cpp.
References _mod.
AST_ExpressionList AST_Declaration_::indexes | ( | ) | const |
AST_Modification AST_Declaration_::modification | ( | ) | const |
string AST_Declaration_::name | ( | ) | const |
|
virtual |
Implements AST_Element_.
Definition at line 203 of file element.cpp.
References comment(), current_element, indexes(), modification(), and name().
void AST_Declaration_::setComment | ( | AST_Comment | c | ) |
Definition at line 252 of file element.cpp.
References _comm.
|
private |
Definition at line 80 of file element.hpp.
Referenced by comment(), and setComment().
|
private |
Definition at line 78 of file element.hpp.
Referenced by hasIndexes(), and indexes().
|
private |
Definition at line 79 of file element.hpp.
Referenced by hasModification(), and modification().
|
private |
Definition at line 77 of file element.hpp.
Referenced by name().