MicroModelicaCCompiler  4.5.3
AST_Statement_Else_ Class Reference

#include <statement.hpp>

Inheritance diagram for AST_Statement_Else_:
Collaboration diagram for AST_Statement_Else_:

Public Member Functions

 AST_Statement_Else_ (AST_Expression cond, AST_StatementList sts)
 
AST_Expression condition () const
 
AST_StatementList statements () const
 
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_Expression _cond
 
AST_StatementList _sts
 

Detailed Description

Definition at line 150 of file statement.hpp.

Constructor & Destructor Documentation

◆ AST_Statement_Else_()

AST_Statement_Else_::AST_Statement_Else_ ( AST_Expression  cond,
AST_StatementList  sts 
)

Definition at line 311 of file statement.cpp.

Member Function Documentation

◆ accept()

void AST_Statement_Else_::accept ( AST_Visitor visitor)
virtual

Implements AST_Node_.

Definition at line 317 of file statement.cpp.

References _cond, _sts, current_element, and AST_Visitor::visit().

Here is the call graph for this function:

◆ condition()

AST_Expression AST_Statement_Else_::condition ( ) const

Definition at line 313 of file statement.cpp.

References _cond.

◆ statements()

AST_StatementList AST_Statement_Else_::statements ( ) const

Definition at line 315 of file statement.cpp.

References _sts.

Member Data Documentation

◆ _cond

AST_Expression AST_Statement_Else_::_cond
private

Definition at line 158 of file statement.hpp.

Referenced by accept(), and condition().

◆ _sts

AST_StatementList AST_Statement_Else_::_sts
private

Definition at line 159 of file statement.hpp.

Referenced by accept(), and statements().


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