|
MicroModelicaCCompiler
4.5.3
|
#include <expression.hpp>


Public Member Functions | |
| AST_Expression_ComponentReference_ (AST_String name, AST_ExpressionList) | |
| AST_Expression_ComponentReference_ () | |
| string | print () const |
| void | append (AST_String, AST_ExpressionList) |
| void | prepend (AST_String, AST_ExpressionList) |
| ExpressionType | expressionType () |
| AST_StringList | names () const |
| string | name () |
| const char * | cname () |
| bool | hasIndexes () const |
| AST_ExpressionListList | indexes () const |
| AST_ExpressionList | firstIndex () |
Public Member Functions inherited from AST_Expression_ | |
| virtual | ~AST_Expression_ () |
| DEFINE_CLASS_PRINTER (AST_Expression) | |
| void | accept (AST_Visitor *visitor) |
| GET_AS (Expression, BinOp) | |
| GET_AS (Expression, Boolean) | |
| GET_AS (Expression, BooleanNot) | |
| GET_AS (Expression, Brace) | |
| GET_AS (Expression, Call) | |
| GET_AS (Expression, CallArgs) | |
| GET_AS (Expression, ComponentReference) | |
| GET_AS (Expression, Derivative) | |
| GET_AS (Expression, If) | |
| GET_AS (Expression, Integer) | |
| GET_AS (Expression, Output) | |
| GET_AS (Expression, Range) | |
| GET_AS (Expression, Real) | |
| GET_AS (Expression, UMinus) | |
| GET_AS (Expression, String) | |
| GET_AS (Expression, NamedArgument) | |
| GET_AS (Expression, ArrayIndex) | |
| GET_AS (Expression, Bracket) | |
| AST_Expression_If_ElseIf | getAsElseIf () |
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 | |
| AST_StringList | _name |
| AST_ExpressionListList | _indexes |
Definition at line 174 of file expression.hpp.
| AST_Expression_ComponentReference_::AST_Expression_ComponentReference_ | ( | AST_String | name, |
| AST_ExpressionList | |||
| ) |
| AST_Expression_ComponentReference_::AST_Expression_ComponentReference_ | ( | ) |
Definition at line 265 of file expression.cpp.
| void AST_Expression_ComponentReference_::append | ( | AST_String | s, |
| AST_ExpressionList | subs | ||
| ) |
Definition at line 296 of file expression.cpp.
References AST_ListAppend(), indexes(), and names().

| const char * AST_Expression_ComponentReference_::cname | ( | ) |
Definition at line 310 of file expression.cpp.
References name().

|
virtual |
Reimplemented from AST_Expression_.
Definition at line 269 of file expression.cpp.
References EXPCOMPREF.
| AST_ExpressionList AST_Expression_ComponentReference_::firstIndex | ( | ) |
Definition at line 477 of file expression.cpp.
References _indexes, AST_ListFirst(), and newAST_ExpressionList().

| bool AST_Expression_ComponentReference_::hasIndexes | ( | ) | const |
Definition at line 324 of file expression.cpp.
References _indexes, and current_element.
| AST_ExpressionListList AST_Expression_ComponentReference_::indexes | ( | ) | const |
| string AST_Expression_ComponentReference_::name | ( | ) |
Definition at line 312 of file expression.cpp.
References current_element, and names().
Referenced by cname().

| AST_StringList AST_Expression_ComponentReference_::names | ( | ) | const |
| void AST_Expression_ComponentReference_::prepend | ( | AST_String | s, |
| AST_ExpressionList | subs | ||
| ) |
Definition at line 302 of file expression.cpp.
References AST_ListAppend(), AST_ListPrepend(), indexes(), and names().

|
virtual |
Implements AST_Expression_.
Definition at line 271 of file expression.cpp.
References current_element, indexes(), and names().

|
private |
Definition at line 191 of file expression.hpp.
Referenced by firstIndex(), hasIndexes(), and indexes().
|
private |
Definition at line 190 of file expression.hpp.
Referenced by names().