walberla::executiontree::Loop Class Reference

#include <ExecutionTree.h>

+ Inheritance diagram for walberla::executiontree::Loop:

Public Member Functions

 Loop (const IFunctionNodePtr &body, uint_t iterations, bool logTimeStep=true)
 
void operator() () override
 
void run () override
 
void singleStep () override
 
void synchronizedStop (bool stopVal) override
 
void stop () override
 
void setBody (const IFunctionNodePtr &body)
 
void setCurrentTimeStep (uint_t ts) override
 
uint_t getCurrentTimeStep () const override
 
uint_t getNrOfTimeSteps () const override
 
std::deque< shared_ptr< IFunctionNode > > getChildren () const override
 
std::string getName () const override
 
- Public Member Functions inherited from walberla::executiontree::IFunctionNode
virtual ~IFunctionNode ()=default
 
- Public Member Functions inherited from walberla::timeloop::ITimeloop
virtual ~ITimeloop ()=default
 

Private Attributes

IFunctionNodePtr body_
 
uint_t currentIteration_
 
uint_t iterations_
 
bool stop_
 
bool logTimeStep_
 

Constructor & Destructor Documentation

◆ Loop()

walberla::executiontree::Loop::Loop ( const IFunctionNodePtr body,
uint_t  iterations,
bool  logTimeStep = true 
)

Member Function Documentation

◆ getChildren()

std::deque< shared_ptr< IFunctionNode > > walberla::executiontree::Loop::getChildren ( ) const
inlineoverridevirtual

◆ getCurrentTimeStep()

uint_t walberla::executiontree::Loop::getCurrentTimeStep ( ) const
inlineoverridevirtual

◆ getName()

std::string walberla::executiontree::Loop::getName ( ) const
overridevirtual

◆ getNrOfTimeSteps()

uint_t walberla::executiontree::Loop::getNrOfTimeSteps ( ) const
inlineoverridevirtual

◆ operator()()

void walberla::executiontree::Loop::operator() ( )
overridevirtual

◆ run()

void walberla::executiontree::Loop::run ( )
inlineoverridevirtual

◆ setBody()

void walberla::executiontree::Loop::setBody ( const IFunctionNodePtr body)
inline

◆ setCurrentTimeStep()

void walberla::executiontree::Loop::setCurrentTimeStep ( uint_t  ts)
inlineoverridevirtual

◆ singleStep()

void walberla::executiontree::Loop::singleStep ( )
overridevirtual

◆ stop()

void walberla::executiontree::Loop::stop ( )
inlineoverridevirtual

◆ synchronizedStop()

void walberla::executiontree::Loop::synchronizedStop ( bool  stopVal)
overridevirtual

Member Data Documentation

◆ body_

IFunctionNodePtr walberla::executiontree::Loop::body_
private

◆ currentIteration_

uint_t walberla::executiontree::Loop::currentIteration_
private

◆ iterations_

uint_t walberla::executiontree::Loop::iterations_
private

◆ logTimeStep_

bool walberla::executiontree::Loop::logTimeStep_
private

◆ stop_

bool walberla::executiontree::Loop::stop_
private

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