#include <abstract_creator.h>
Public Types | |
typedef T * | value_type |
Same as (T *). | |
typedef T | base_value_type |
Same as (T). | |
Static Public Member Functions | |
bool | create (value_type &v, const std::string &implclass=std::string()) |
Tries to create a value_type object, using classload<base_value_type>( key ) to create it. | |
value_type | copy (const value_type &rhs) |
Creates a MONOMORPHIC copy of rhs and returns it. | |
void | assign (value_type &lhs, const value_type &rhs) |
Returns rhs. | |
void | release (value_type &v) |
Deletes v and assigns it to 0. |
Definition at line 127 of file abstract_creator.h.
|
Creates a MONOMORPHIC copy of rhs and returns it. This copy is only useful for non-polymorphic types. Definition at line 171 of file abstract_creator.h. |
|
Tries to create a value_type object, using classload<base_value_type>( key ) to create it. v is assigned to it's value, which may be 0. Returns true if an object is created, else false. The caller owns the returned object. Maintenance note: new classloader registrations may need to be installed as new types show up, especially for streamables/PODs (because those aren't normally registered as classes), or this function won't handle them. In s11n this registration is handled by most of the various proxy installation macros. Definition at line 152 of file abstract_creator.h. |