MicroModelicaCCompiler  4.5.3
AST_Element_Component_ Class Reference

#include <element.hpp>

Inheritance diagram for AST_Element_Component_:
Collaboration diagram for AST_Element_Component_:

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 ()
 
- Public Member Functions inherited from AST_Element_
 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)
 
- 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_DeclarationList _decl_list
 
string _type
 
AST_ExpressionList _indexes
 
AST_Class _origin
 
AST_TypePrefix _tp
 

Detailed Description

Definition at line 83 of file element.hpp.

Constructor & Destructor Documentation

◆ AST_Element_Component_()

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.

Member Function Documentation

◆ elementType()

ElementType AST_Element_Component_::elementType ( )
virtual

Reimplemented from AST_Element_.

Definition at line 274 of file element.cpp.

References COMPONENT.

◆ hasIndexes()

bool AST_Element_Component_::hasIndexes ( )

Definition at line 133 of file element.cpp.

References _indexes.

◆ indexes()

AST_ExpressionList AST_Element_Component_::indexes ( ) const

Definition at line 289 of file element.cpp.

References _indexes.

Referenced by print().

◆ isConstant()

bool AST_Element_Component_::isConstant ( ) const

Definition at line 270 of file element.cpp.

References _tp, and TP_CONSTANT.

Referenced by print().

◆ isDiscrete()

bool AST_Element_Component_::isDiscrete ( ) const

Definition at line 264 of file element.cpp.

References _tp, and TP_DISCRETE.

Referenced by print().

◆ isFlow()

bool AST_Element_Component_::isFlow ( ) const

Definition at line 266 of file element.cpp.

References _tp, and TP_FLOW.

Referenced by print().

◆ isInput()

bool AST_Element_Component_::isInput ( ) const

Definition at line 260 of file element.cpp.

References _tp, and TP_INPUT.

Referenced by print().

◆ isInteger()

bool AST_Element_Component_::isInteger ( )

Definition at line 293 of file element.cpp.

References _type.

◆ isOutput()

bool AST_Element_Component_::isOutput ( ) const

Definition at line 262 of file element.cpp.

References _tp, and TP_OUTPUT.

Referenced by print().

◆ isParameter()

bool AST_Element_Component_::isParameter ( ) const

Definition at line 258 of file element.cpp.

References _tp, and TP_PARAMETER.

Referenced by print().

◆ isReal()

bool AST_Element_Component_::isReal ( )

Definition at line 291 of file element.cpp.

References _type.

◆ isStream()

bool AST_Element_Component_::isStream ( ) const

Definition at line 268 of file element.cpp.

References _tp, and TP_STREAM.

Referenced by print().

◆ isString()

bool AST_Element_Component_::isString ( )

Definition at line 295 of file element.cpp.

References _type.

◆ name()

string AST_Element_Component_::name ( )

Definition at line 276 of file element.cpp.

References _decl_list.

◆ nameList()

AST_DeclarationList AST_Element_Component_::nameList ( )

Definition at line 278 of file element.cpp.

References _decl_list.

◆ origin()

AST_Class AST_Element_Component_::origin ( )

Definition at line 280 of file element.cpp.

References _origin.

◆ print()

string AST_Element_Component_::print ( ) const
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.

Here is the call graph for this function:

◆ setOrigin()

void AST_Element_Component_::setOrigin ( AST_Class  c)

Definition at line 282 of file element.cpp.

References _origin.

◆ type()

string AST_Element_Component_::type ( )

Definition at line 272 of file element.cpp.

References _type.

◆ typePrefix()

AST_TypePrefix AST_Element_Component_::typePrefix ( )

Definition at line 287 of file element.cpp.

References _tp.

Member Data Documentation

◆ _decl_list

AST_DeclarationList AST_Element_Component_::_decl_list
private

Definition at line 108 of file element.hpp.

Referenced by name(), nameList(), and print().

◆ _indexes

AST_ExpressionList AST_Element_Component_::_indexes
private

Definition at line 110 of file element.hpp.

Referenced by hasIndexes(), and indexes().

◆ _origin

AST_Class AST_Element_Component_::_origin
private

Definition at line 111 of file element.hpp.

Referenced by origin(), and setOrigin().

◆ _tp

AST_TypePrefix AST_Element_Component_::_tp
private

◆ _type

string AST_Element_Component_::_type
private

Definition at line 109 of file element.hpp.

Referenced by isInteger(), isReal(), isString(), print(), and type().


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