Iguana 1.2.0
Implementation Guardian of Analysis Algorithms
Loading...
Searching...
No Matches
iguana::ConcurrentParamFactory Class Reference

#include <ConcurrentParam.h>

Detailed Description

factory to create the appropriate ConcurrentParam-derived class instance for the current GlobalConcurrencyModel

Definition at line 119 of file ConcurrentParam.h.

Static Public Member Functions

static void CheckConcurrencyModel ()
 check the concurrency model; if not set, it will set a default
template<typename T>
static std::unique_ptr< ConcurrentParam< T > > Create (std::string const &name)
 create a new ConcurrentParam-derived class instance

Member Function Documentation

◆ CheckConcurrencyModel()

void iguana::ConcurrentParamFactory::CheckConcurrencyModel ( )
inlinestatic

check the concurrency model; if not set, it will set a default

Definition at line 126 of file ConcurrentParam.h.

◆ Create()

template<typename T>
std::unique_ptr< ConcurrentParam< T > > iguana::ConcurrentParamFactory::Create ( std::string const & name)
inlinestatic

create a new ConcurrentParam-derived class instance

Warning
if GlobalConcurrencyModel is not set, the model "memoize" will be chosen, since it is thread safe and does not assume anything about the user's implementation
Parameters
namethe name of the parameter
Returns
a pointer to the new instance

Definition at line 140 of file ConcurrentParam.h.


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