SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::simulation::MainTaskSchedulerFactory Class Reference

#include <MainTaskSchedulerFactory.h>

Detailed Description

A set of static function with the same interface than @TaskSchedulerFactory, working on a single instance of @TaskSchedulerFactory.

The static functions @createInRegistry use the factory to instantiate a task scheduler and store it in @MainTaskSchedulerRegistry

Static Public Member Functions

static bool registerScheduler (const std::string &name, const std::function< TaskScheduler *()> &creatorFunc)
 
static TaskSchedulerinstantiate (const std::string &name)
 
static std::set< std::string > getAvailableSchedulers ()
 
static TaskSchedulercreateInRegistry (const std::string &name)
 
static TaskSchedulercreateInRegistry ()
 
static std::string defaultTaskSchedulerType ()
 

Function details

◆ createInRegistry() [1/2]

TaskScheduler * sofa::simulation::MainTaskSchedulerFactory::createInRegistry ( )
static

◆ createInRegistry() [2/2]

TaskScheduler * sofa::simulation::MainTaskSchedulerFactory::createInRegistry ( const std::string &  name)
static

◆ defaultTaskSchedulerType()

std::string sofa::simulation::MainTaskSchedulerFactory::defaultTaskSchedulerType ( )
static

◆ getAvailableSchedulers()

std::set< std::string > sofa::simulation::MainTaskSchedulerFactory::getAvailableSchedulers ( )
static

◆ instantiate()

TaskScheduler * sofa::simulation::MainTaskSchedulerFactory::instantiate ( const std::string &  name)
static

◆ registerScheduler()

bool sofa::simulation::MainTaskSchedulerFactory::registerScheduler ( const std::string &  name,
const std::function< TaskScheduler *()> &  creatorFunc 
)
static