MicroModelicaCCompiler  4.5.3
AST_Composition_ Class Reference

#include <composition.hpp>

Inheritance diagram for AST_Composition_:
Collaboration diagram for AST_Composition_:

Public Member Functions

 AST_Composition_ (AST_ElementList el, AST_CompositionElementList cl)
 
 DEFINE_CLASS_PRINTER (AST_Composition)
 
AST_CompositionElementList compositionList () const
 
bool hasCompositionList ()
 
AST_ElementList elementList () const
 
bool hasElementList ()
 
void setExternalFunctionCall (AST_External_Function_Call)
 
AST_External_Function_Call externalCall () const
 
bool hasExternalFunctionCall ()
 
void setAnnotation (AST_ArgumentList)
 
bool hasAnnotation ()
 
void accept (AST_Visitor *visitor)
 
- 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_CompositionElementList _composition_list
 
AST_ElementList _element_list
 
AST_ArgumentList _annot
 
AST_External_Function_Call _ext
 

Detailed Description

Definition at line 34 of file composition.hpp.

Constructor & Destructor Documentation

◆ AST_Composition_()

AST_Composition_::AST_Composition_ ( AST_ElementList  el,
AST_CompositionElementList  cl 
)

Definition at line 35 of file composition.cpp.

Member Function Documentation

◆ accept()

void AST_Composition_::accept ( AST_Visitor visitor)
virtual

Implements AST_Node_.

Definition at line 74 of file composition.cpp.

References _annot, _composition_list, _element_list, _ext, current_element, AST_Visitor::leave(), and AST_Visitor::visit().

Here is the call graph for this function:

◆ compositionList()

AST_CompositionElementList AST_Composition_::compositionList ( ) const

Definition at line 44 of file composition.cpp.

References _composition_list.

Referenced by operator<<().

◆ DEFINE_CLASS_PRINTER()

AST_Composition_::DEFINE_CLASS_PRINTER ( AST_Composition  )

◆ elementList()

AST_ElementList AST_Composition_::elementList ( ) const

Definition at line 42 of file composition.cpp.

References _element_list.

Referenced by operator<<().

◆ externalCall()

AST_External_Function_Call AST_Composition_::externalCall ( ) const

Definition at line 70 of file composition.cpp.

References _ext.

Referenced by operator<<().

◆ hasAnnotation()

bool AST_Composition_::hasAnnotation ( )

Definition at line 123 of file composition.cpp.

References _annot.

◆ hasCompositionList()

bool AST_Composition_::hasCompositionList ( )

Definition at line 107 of file composition.cpp.

References _composition_list.

◆ hasElementList()

bool AST_Composition_::hasElementList ( )

◆ hasExternalFunctionCall()

bool AST_Composition_::hasExternalFunctionCall ( )

Definition at line 115 of file composition.cpp.

References _ext.

◆ setAnnotation()

void AST_Composition_::setAnnotation ( AST_ArgumentList  al)

Definition at line 72 of file composition.cpp.

References _annot.

◆ setExternalFunctionCall()

void AST_Composition_::setExternalFunctionCall ( AST_External_Function_Call  ext)

Definition at line 68 of file composition.cpp.

References _ext.

Member Data Documentation

◆ _annot

AST_ArgumentList AST_Composition_::_annot
private

Definition at line 52 of file composition.hpp.

Referenced by accept(), hasAnnotation(), and setAnnotation().

◆ _composition_list

AST_CompositionElementList AST_Composition_::_composition_list
private

Definition at line 50 of file composition.hpp.

Referenced by accept(), compositionList(), and hasCompositionList().

◆ _element_list

AST_ElementList AST_Composition_::_element_list
private

Definition at line 51 of file composition.hpp.

Referenced by accept(), and elementList().

◆ _ext

AST_External_Function_Call AST_Composition_::_ext
private

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