Generic abstract base class for an auxiliary object factory. More...
#include <Piro_ProviderBase.hpp>
Public Member Functions | |
virtual Teuchos::RCP< T > | getInstance (const Teuchos::RCP< Teuchos::ParameterList > ¶ms)=0 |
Returns an owning pointer to an object of a subclass of T. More... | |
Constructor and destructor | |
ProviderBase () | |
Empty default constructor. | |
virtual | ~ProviderBase () |
Virtual empty destructor. | |
Generic abstract base class for an auxiliary object factory.
Implementing the ProviderBase interface is the most flexible approach to create concrete Provider objects.
|
pure virtual |
Returns an owning pointer to an object of a subclass of T.
The returned value may refer to a new instance, to an already existing – therefore possibly shared – one, or simply be the null pointer.