Abstract interface of factory for creating Encapsulation objects. More...
#include <encapsulation.hpp>
Public Member Functions | |
virtual shared_ptr< Encapsulation< time > > | create (const EncapType type)=0 |
Actual method to create Encapsulation object of specific type. More... | |
Abstract interface of factory for creating Encapsulation objects.
This factory is intendet to be instantiated once to create multiple Encapsulation objects of the same type and with the same parameters later on through calls to EncapFactory::create().
Implementations may add values and parameters to the constructor of the factory storing these values as an instance member and accessing them within their implementations of create(). For an example see pfasst::encap::VectorFactory.
time | time precision; defaults to pfasst::time_precision |
Definition at line 161 of file encapsulation.hpp.
|
pure virtual |
Actual method to create Encapsulation object of specific type.
[in] | type | encapsulation type of the requested Encapsulation object |
Implemented in pfasst::examples::boris::ParticleCloudFactory< precision >, and pfasst::encap::VectorFactory< scalar, time >.