cymoca
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Protected Attributes | List of all members
cymoca::ast::statement::Block Class Reference

#include <statement.h>

Inheritance diagram for cymoca::ast::statement::Block:
Inheritance graph
Collaboration diagram for cymoca::ast::statement::Block:
Collaboration graph

Public Member Functions

void enter (listener::Base &listener) override
 
void exit (listener::Base &listener) override
 
- Public Member Functions inherited from cymoca::ast::INode
virtual ~INode ()
 
virtual std::vector< INode * > getChildren ()=0
 
virtual std::unique_ptr< INode > clone () const =0
 
template<class T >
std::unique_ptr< T > cloneAs ()
 

Protected Attributes

std::unique_ptr< condition::Base > m_condition {}
 
std::unique_ptr< List > m_statements {}
 

Detailed Description

A block of statements with a condition controlling the block execution.

Definition at line 22 of file statement.h.

Member Function Documentation

void cymoca::ast::statement::Block::enter ( listener::Base &  listener)
inlineoverridevirtual

A double dispatch entrace hook for listeners.

Implements cymoca::ast::INode.

Definition at line 28 of file statement.h.

void cymoca::ast::statement::Block::exit ( listener::Base &  listener)
inlineoverridevirtual

A double dispatch exit hook for listeners.

Implements cymoca::ast::INode.

Definition at line 28 of file statement.h.

Member Data Documentation

std::unique_ptr<condition::Base> cymoca::ast::statement::Block::m_condition {}
protected

Definition at line 24 of file statement.h.

std::unique_ptr<List> cymoca::ast::statement::Block::m_statements {}
protected

Definition at line 25 of file statement.h.


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