42#ifndef TEUCHOS_ABSTRACT_FACTORY_STD_HPP
43#define TEUCHOS_ABSTRACT_FACTORY_STD_HPP
138template<
class T_itfc,
class T_impl
139 ,
class T_PostMod = PostModNothing<T_impl>
140 ,
class T_Allocator = AllocatorNew<T_impl>
148 AbstractFactoryStd(
const T_PostMod& post_mod = T_PostMod(),
const T_Allocator& alloc = T_Allocator() );
167template<
class T_itfc,
class T_impl>
181template<
class T_itfc,
class T_impl,
class T_Allocator>
196template<
class T_itfc,
class T_impl,
class T_PostMod,
class T_Allocator>
199 const T_PostMod& post_mod,
const T_Allocator& alloc
205template<
class T_itfc,
class T_impl,
class T_PostMod,
class T_Allocator>
210 typename T_Allocator::ptr_t
211 ptr = alloc_.allocate();
212 post_mod_.initialize(ptr.get());
Simple, templated concrete subclass of universal "Abstract Factory" interface for the creation of o...
RCP< const AbstractFactory< T_itfc > > abstractFactoryStd()
Nonmember constructor for an standar abstract factory object.
Teuchos::AbstractFactory< T_itfc >::obj_ptr_t obj_ptr_t
AbstractFactoryStd(const T_PostMod &post_mod=T_PostMod(), const T_Allocator &alloc=T_Allocator())
RCP< const AbstractFactory< T_itfc > > abstractFactoryStd(const T_Allocator &alloc=T_Allocator())
Nonmember constructor for an standar abstract factory object.
Simple, universal "Abstract Factory" interface for the dynamic creation of objects.
Default allocation policy class for AbstractFactoryStd which returns new T_impl().
Teuchos::RCP< T_impl > ptr_t
const ptr_t allocate() const
Default post-modification policy class for AbstractFactorStd which does nothing!
void initialize(T_impl *) const
Smart reference counting pointer class for automatic garbage collection.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.