Async 1.8.0
Async::SpecificFactory< Base, T, Args > Class Template Reference

#include <AsyncFactory.h>

Inheritance diagram for Async::SpecificFactory< Base, T, Args >:
Async::Factory< Base, Args... >

Public Member Functions

 SpecificFactory (const std::string &name)
 Constructor.
 
- Public Member Functions inherited from Async::Factory< Base, Args... >
 Factory (const std::string &name)
 Constructor.
 
 Factory (const Factory< Base, Args... > &)=delete
 Don't allow copy construction.
 
Factoryoperator= (const Factory< Base, Args... > &)=delete
 Don't allow assignment.
 
virtual ~Factory (void)
 Destructor.
 

Protected Member Functions

T * createObject (Args... args)
 Create and return a new instance of an object.
 
- Protected Member Functions inherited from Async::Factory< Base, Args... >

Additional Inherited Members

- Static Public Member Functions inherited from Async::Factory< Base, Args... >
static Base * createNamedObject (const std::string &name, Args... args)
 Create an instance of the named class.
 
static std::string validFactories (void)
 Get a list of valid class names.
 

Detailed Description

template<class Base, class T, typename... Args>
class Async::SpecificFactory< Base, T, Args >
Examples
AsyncFactory_demo.cpp.

Definition at line 290 of file AsyncFactory.h.

Constructor & Destructor Documentation

◆ SpecificFactory()

template<class Base , class T , typename... Args>
Async::SpecificFactory< Base, T, Args >::SpecificFactory ( const std::string & name)
inline

Constructor.

Parameters
nameThe name of the specific object factory being created

Definition at line 297 of file AsyncFactory.h.

Member Function Documentation

◆ createObject()

template<class Base , class T , typename... Args>
T * Async::SpecificFactory< Base, T, Args >::createObject ( Args... args)
inlineprotectedvirtual

Create and return a new instance of an object.

Returns
Returns a newly created instance of the object

Implements Async::Factory< Base, Args... >.

Definition at line 304 of file AsyncFactory.h.


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