Canoe
Comprehensive Atmosphere N' Ocean Engine
Scheduler Class Reference

#include <schedulers.hpp>

Public Member Functions

 Scheduler (MeshBlock *pmb)
 constructor and destructor More...
 
virtual ~Scheduler ()
 
bool DoTask (TaskFunc func)
 functions More...
 
bool CheckDone (std::vector< TaskFunc > const &deps)
 
void AddTasks (std::vector< TaskFunc > const &tasks)
 

Protected Attributes

std::unordered_map< TaskFunc, TaskInfotasks_
 
TaskFunc current_task_
 
IntegrationStage current_stage_
 

Private Attributes

MeshBlock * pmy_block_
 

Detailed Description

Definition at line 21 of file schedulers.hpp.

Constructor & Destructor Documentation

◆ Scheduler()

Scheduler::Scheduler ( MeshBlock *  pmb)
explicit

constructor and destructor

Definition at line 11 of file schedulers.cpp.

◆ ~Scheduler()

virtual Scheduler::~Scheduler ( )
inlinevirtual

Definition at line 25 of file schedulers.hpp.

Member Function Documentation

◆ DoTask()

bool Scheduler::DoTask ( TaskFunc  func)

functions

Definition at line 13 of file schedulers.cpp.

◆ CheckDone()

bool Scheduler::CheckDone ( std::vector< TaskFunc > const &  deps)

Definition at line 18 of file schedulers.cpp.

◆ AddTasks()

void Scheduler::AddTasks ( std::vector< TaskFunc > const &  tasks)

Definition at line 43 of file schedulers.cpp.

Member Data Documentation

◆ tasks_

std::unordered_map<TaskFunc, TaskInfo> Scheduler::tasks_
protected

Definition at line 33 of file schedulers.hpp.

◆ current_task_

TaskFunc Scheduler::current_task_
protected

Definition at line 34 of file schedulers.hpp.

◆ current_stage_

IntegrationStage Scheduler::current_stage_
protected

Definition at line 35 of file schedulers.hpp.

◆ pmy_block_

MeshBlock* Scheduler::pmy_block_
private

Definition at line 38 of file schedulers.hpp.


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