57 :
public Factory<Func1, const shared_ptr<Func1>, const shared_ptr<Func1>>
119shared_ptr<Func1>
newFunc1(
const string& func1Type,
double coeff=1.);
126shared_ptr<Func1>
newFunc1(
const string& func1Type,
const vector<double>& params);
134shared_ptr<Func1>
newFunc1(
const string& func1Type,
135 const shared_ptr<Func1> f1,
const shared_ptr<Func1> f2);
143shared_ptr<Func1>
newFunc1(
const string& func1Type,
144 const shared_ptr<Func1> f,
double coeff);
File contains the FactoryBase class declarations.
Factory class that supports registering functions to create objects.
Factory class to create Func1 objects.
static std::mutex s_mutex
Mutex for use when calling the factory.
static Func1Factory * s_factory
Pointer to the single instance of the factory.
void deleteFactory() override
Virtual abstract function that deletes the factory.
Func1Factory()
default constructor, which is defined as private
static Func1Factory * factory()
Return a pointer to the factory.
Factory class to create Func1 compound objects - version A.
static Math1FactoryA * s_factory
Pointer to the single instance of the factory.
Math1FactoryA()
default constructor, which is defined as private
static std::mutex s_mutex
Mutex for use when calling the factory.
void deleteFactory() override
Virtual abstract function that deletes the factory.
static Math1FactoryA * factory()
Return a pointer to the factory.
Factory class to create Func1 compound objects - version B.
static std::mutex s_mutex
Mutex for use when calling the factory.
void deleteFactory() override
Virtual abstract function that deletes the factory.
Math1FactoryB()
default constructor, which is defined as private
static Math1FactoryB * factory()
Return a pointer to the factory.
static Math1FactoryB * s_factory
Pointer to the single instance of the factory.
shared_ptr< Func1 > newFunc1(const string &func1Type, double coeff)
Create a new basic functor object (see Basic Functors).
string checkFunc1(const string &func1Type)
Check definition of functor object.
Namespace for the Cantera kernel.