MicroModelicaCCompiler  4.5.3
Type_Array_ Class Reference

#include <type.hpp>

Inheritance diagram for Type_Array_:
Collaboration diagram for Type_Array_:

Public Member Functions

 Type_Array_ (Type t, AST_Expression dim)
 
 ~Type_Array_ () override=default
 
SymbolType getType () override
 
string print () const override
 
Type arrayOf ()
 
AST_Expression dimension ()
 
- Public Member Functions inherited from Type_
virtual ~Type_ ()=default
 
Type_Array getAsArray ()
 
Type_Tupla getAsTupla ()
 
Type_Function getAsFunction ()
 

Private Attributes

Type _t
 
AST_Expression _dim
 

Detailed Description

Definition at line 98 of file type.hpp.

Constructor & Destructor Documentation

◆ Type_Array_()

Type_Array_::Type_Array_ ( Type  t,
AST_Expression  dim 
)

Definition at line 98 of file type.cpp.

◆ ~Type_Array_()

Type_Array_::~Type_Array_ ( )
overridedefault

Member Function Documentation

◆ arrayOf()

Type Type_Array_::arrayOf ( )

Definition at line 100 of file type.cpp.

References _t.

◆ dimension()

AST_Expression Type_Array_::dimension ( )
inline

Definition at line 105 of file type.hpp.

References _dim.

◆ getType()

SymbolType Type_Array_::getType ( )
inlineoverridevirtual

Implements Type_.

Definition at line 102 of file type.hpp.

References TYARRAY.

◆ print()

string Type_Array_::print ( ) const
overridevirtual

Implements Type_.

Definition at line 78 of file type.cpp.

References _dim, _t, AST_ListPrepend(), current_element, newAST_ExpressionList(), and TYARRAY.

Here is the call graph for this function:

Member Data Documentation

◆ _dim

AST_Expression Type_Array_::_dim
private

Definition at line 109 of file type.hpp.

Referenced by dimension(), and print().

◆ _t

Type Type_Array_::_t
private

Definition at line 105 of file type.hpp.

Referenced by arrayOf(), and print().


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