ContRap-Core
Public Member Functions | Protected Member Functions | Protected Attributes

crp::Template Class Reference

Class Template is the base interface class for template objects. More...

#include <template.h>

Inheritance diagram for crp::Template:
crp::Object

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

MetaInfometa_info
 Template parameter.

Detailed Description

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.


Constructor & Destructor Documentation

crp::Template::Template ( MetaInfo meta_info)

Creates a new template object from type info.

Parameters:
meta_infoType information of the objects template parameter.
virtual crp::Template::~Template ( ) [virtual]

Releases the memory.


Member Function Documentation

virtual std::string crp::Template::get_type_name ( ) const [inline, virtual]

Returns the type of the object.

Returns:
Type of the object

Reimplemented from crp::Object.

DPtr crp::Template::make_dptr ( void *  object,
MetaInfo meta_info 
) [inline, protected]

Makes a smart pointer from a meta info.

The type of the returned object is set to persistent.

Parameters:
objectObject of the smart pointer.
meta_infoObjects meta info.

Field Documentation

Template parameter.


The documentation for this class was generated from the following file: