MicroModelicaCCompiler  4.5.3
AST_Expression_ComponentReference_ Class Reference

#include <expression.hpp>

Inheritance diagram for AST_Expression_ComponentReference_:
Collaboration diagram for AST_Expression_ComponentReference_:

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
 

Detailed Description

Definition at line 174 of file expression.hpp.

Constructor & Destructor Documentation

◆ AST_Expression_ComponentReference_() [1/2]

AST_Expression_ComponentReference_::AST_Expression_ComponentReference_ ( AST_String  name,
AST_ExpressionList   
)

◆ AST_Expression_ComponentReference_() [2/2]

AST_Expression_ComponentReference_::AST_Expression_ComponentReference_ ( )

Definition at line 265 of file expression.cpp.

Member Function Documentation

◆ append()

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().

Here is the call graph for this function:

◆ cname()

const char * AST_Expression_ComponentReference_::cname ( )

Definition at line 310 of file expression.cpp.

References name().

Here is the call graph for this function:

◆ expressionType()

ExpressionType AST_Expression_ComponentReference_::expressionType ( )
virtual

Reimplemented from AST_Expression_.

Definition at line 269 of file expression.cpp.

References EXPCOMPREF.

◆ firstIndex()

AST_ExpressionList AST_Expression_ComponentReference_::firstIndex ( )

Definition at line 477 of file expression.cpp.

References _indexes, AST_ListFirst(), and newAST_ExpressionList().

Here is the call graph for this function:

◆ hasIndexes()

bool AST_Expression_ComponentReference_::hasIndexes ( ) const

Definition at line 324 of file expression.cpp.

References _indexes, and current_element.

◆ indexes()

AST_ExpressionListList AST_Expression_ComponentReference_::indexes ( ) const

Definition at line 322 of file expression.cpp.

References _indexes.

Referenced by append(), prepend(), and print().

◆ name()

string AST_Expression_ComponentReference_::name ( )

Definition at line 312 of file expression.cpp.

References current_element, and names().

Referenced by cname().

Here is the call graph for this function:

◆ names()

AST_StringList AST_Expression_ComponentReference_::names ( ) const

Definition at line 308 of file expression.cpp.

References _name.

Referenced by append(), name(), prepend(), and print().

◆ prepend()

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().

Here is the call graph for this function:

◆ print()

string AST_Expression_ComponentReference_::print ( ) const
virtual

Implements AST_Expression_.

Definition at line 271 of file expression.cpp.

References current_element, indexes(), and names().

Here is the call graph for this function:

Member Data Documentation

◆ _indexes

AST_ExpressionListList AST_Expression_ComponentReference_::_indexes
private

Definition at line 191 of file expression.hpp.

Referenced by firstIndex(), hasIndexes(), and indexes().

◆ _name

AST_StringList AST_Expression_ComponentReference_::_name
private

Definition at line 190 of file expression.hpp.

Referenced by names().


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