|
ContRap-Core
|
Class Template is the base interface class for template objects. More...
#include <template.h>
Public Member Functions | |
| Template (MetaInfo *meta_info) | |
| Creates a new template object from type info. | |
| virtual | ~Template () |
| Releases the memory. | |
| virtual std::string | get_type_name () const |
| Returns the type of the object. | |
Protected Member Functions | |
| DPtr | make_dptr (void *object, MetaInfo *meta_info) |
| Makes a smart pointer from a meta info. | |
Protected Attributes | |
| MetaInfo * | meta_info |
| Template parameter. | |
Class Template is the base interface class for template objects.
Currently ContRap template objects support only one template argument.
Derive from this class to create your own template objects.
| crp::Template::Template | ( | MetaInfo * | meta_info | ) |
Creates a new template object from type info.
| meta_info | Type information of the objects template parameter. |
| virtual crp::Template::~Template | ( | ) | [virtual] |
Releases the memory.
| virtual std::string crp::Template::get_type_name | ( | ) | const [inline, virtual] |
Makes a smart pointer from a meta info.
The type of the returned object is set to persistent.
| object | Object of the smart pointer. |
| meta_info | Objects meta info. |
MetaInfo* crp::Template::meta_info [protected] |
Template parameter.
1.7.3