MicroModelicaCCompiler
4.5.3
|
Go to the documentation of this file.
26 #include "../util/ast_util.hpp"
32 : _name(n), _composition(comp), _father(nullptr), _basic(false), _encapsulated(false), _final(false), _prefix()
47 if (
_name !=
nullptr) {
85 ret << cl.
name() << endl;
90 ret <<
"end " << cl.
name() <<
";" << endl;
128 AST_ClassListIterator class_it;
132 visitor->
visit(
this);
133 AST_Element_ComponentListIterator component_it;
138 visitor->
leave(
this);
void setPrefixes(AST_ClassPrefix cp)
AST_ClassList _sub_classes
AST_Composition _composition
AST_ClassList getClasses()
AST_Composition composition() const
AST_Boolean _encapsulated
void setComposition(AST_Composition c)
AST_StringList getExtends()
void addExtends(AST_String e)
AST_StringList newAST_StringList()
AST_Class_(AST_String n, AST_Composition comp)
void setFather(AST_Class c)
void addComponent(AST_Element_Component c)
bool hasElementComponentList()
list< T1 > * AST_ListAppend(list< T1 > *l, T1 e)
AST_ClassPrefix prefix() const
AST_Element_ComponentList getComponents()
CLASSP_PRINTER_IMP(AST_Class)
ostream & operator<<(ostream &ret, const AST_Class_ &cl)
AST_ClassList newAST_ClassList()
virtual void visit(AST_Class x)=0
void addClass(AST_Class c)
AST_Element_ComponentList newAST_Element_ComponentList()
AST_StringList _extends_list
AST_Element_ComponentList _components
virtual void leave(AST_Class x)=0
void accept(AST_Visitor *visitor)
#define current_element(it)