33 #ifndef WALLAROO_DETAIL_DYN_CLASS_DESCRIPTOR_IMPL_H_
34 #define WALLAROO_DETAIL_DYN_CLASS_DESCRIPTOR_IMPL_H_
45 template <
typename T >
46 void Deleter( T* obj )
51 template <
typename T >
52 cxx0x::shared_ptr< Part > Builder()
54 return cxx0x::shared_ptr< Part >(
new T, Deleter< T > );
59 template <
typename T >
70 static std::vector< Descriptor > db;
74 template <
typename T >
77 Descriptor::Insert< T >( name );
84 #endif // WALLAROO_DETAIL_DYN_CLASS_DESCRIPTOR_IMPL_H_
DynRegistration(const std::string &name)
Definition: dyn_class_descriptor_impl.h:75
FactoryMethod create
Definition: dyn_class_descriptor.h:64
static void Insert(const std::string &className)
Definition: dyn_class_descriptor_impl.h:60
static std::vector< Descriptor > & DB()
Definition: dyn_class_descriptor_impl.h:68
Definition: dyn_class_descriptor.h:49
Definition: attribute.h:45
std::string name
Definition: dyn_class_descriptor.h:65