MicroModelicaCCompiler
4.5.3
|
#include <element.hpp>
Public Member Functions | |
AST_Element_Component_ (AST_DeclarationList decl_list, string type, AST_TypePrefix tp, AST_ExpressionList index) | |
string | print () const |
bool | isParameter () const |
bool | isInput () const |
bool | isOutput () const |
bool | isDiscrete () const |
bool | isFlow () const |
bool | isStream () const |
bool | isConstant () const |
string | type () |
virtual ElementType | elementType () |
string | name () |
AST_DeclarationList | nameList () |
AST_Class | origin () |
void | setOrigin (AST_Class c) |
AST_TypePrefix | typePrefix () |
AST_ExpressionList | indexes () const |
bool | hasIndexes () |
bool | isReal () |
bool | isInteger () |
bool | isString () |
![]() | |
DEFINE_CLASS_PRINTER (AST_Element) | |
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 | |
AST_DeclarationList | _decl_list |
string | _type |
AST_ExpressionList | _indexes |
AST_Class | _origin |
AST_TypePrefix | _tp |
Definition at line 83 of file element.hpp.
AST_Element_Component_::AST_Element_Component_ | ( | AST_DeclarationList | decl_list, |
string | type, | ||
AST_TypePrefix | tp, | ||
AST_ExpressionList | index | ||
) |
Definition at line 74 of file element.cpp.
|
virtual |
bool AST_Element_Component_::hasIndexes | ( | ) |
Definition at line 133 of file element.cpp.
References _indexes.
AST_ExpressionList AST_Element_Component_::indexes | ( | ) | const |
bool AST_Element_Component_::isConstant | ( | ) | const |
bool AST_Element_Component_::isDiscrete | ( | ) | const |
bool AST_Element_Component_::isFlow | ( | ) | const |
bool AST_Element_Component_::isInput | ( | ) | const |
bool AST_Element_Component_::isInteger | ( | ) |
Definition at line 293 of file element.cpp.
References _type.
bool AST_Element_Component_::isOutput | ( | ) | const |
bool AST_Element_Component_::isParameter | ( | ) | const |
Definition at line 258 of file element.cpp.
References _tp, and TP_PARAMETER.
Referenced by print().
bool AST_Element_Component_::isReal | ( | ) |
Definition at line 291 of file element.cpp.
References _type.
bool AST_Element_Component_::isStream | ( | ) | const |
bool AST_Element_Component_::isString | ( | ) |
Definition at line 295 of file element.cpp.
References _type.
string AST_Element_Component_::name | ( | ) |
Definition at line 276 of file element.cpp.
References _decl_list.
AST_DeclarationList AST_Element_Component_::nameList | ( | ) |
Definition at line 278 of file element.cpp.
References _decl_list.
AST_Class AST_Element_Component_::origin | ( | ) |
Definition at line 280 of file element.cpp.
References _origin.
|
virtual |
Implements AST_Element_.
Definition at line 79 of file element.cpp.
References _decl_list, _type, current_element, indexes(), isConstant(), isDiscrete(), isFlow(), isInput(), isOutput(), isParameter(), isStream(), and MAKE_SPACE.
void AST_Element_Component_::setOrigin | ( | AST_Class | c | ) |
Definition at line 282 of file element.cpp.
References _origin.
string AST_Element_Component_::type | ( | ) |
Definition at line 272 of file element.cpp.
References _type.
AST_TypePrefix AST_Element_Component_::typePrefix | ( | ) |
Definition at line 287 of file element.cpp.
References _tp.
|
private |
Definition at line 108 of file element.hpp.
Referenced by name(), nameList(), and print().
|
private |
Definition at line 110 of file element.hpp.
Referenced by hasIndexes(), and indexes().
|
private |
Definition at line 111 of file element.hpp.
Referenced by origin(), and setOrigin().
|
private |
Definition at line 112 of file element.hpp.
Referenced by isConstant(), isDiscrete(), isFlow(), isInput(), isOutput(), isParameter(), isStream(), and typePrefix().
|
private |
Definition at line 109 of file element.hpp.
Referenced by isInteger(), isReal(), isString(), print(), and type().