ERC CISST - cisst software

cmnConditionalObjectFactory< CMN_DYNAMIC_CREATION, _class > Class Template Reference

#include <cmnClassServices.h>

List of all members.


Detailed Description

template<typename _class>
class cmnConditionalObjectFactory< CMN_DYNAMIC_CREATION, _class >

Specialization of cmnConditionalObjectFactory with enabled dynamic creation.

Definition at line 105 of file cmnClassServices.h.

Public Types

Static Public Member Functions


Member Function Documentation

template<typename _class>
static cmnGenericObject* cmnConditionalObjectFactory< CMN_DYNAMIC_CREATION, _class >::Create ( void   )  [inline, static]

Specialization of create when dynamic creation is enabled. Call new for the given class. This method requires a default constructor for the aforementioned class.

Definition at line 116 of file cmnClassServices.h.

template<typename _class>
static cmnGenericObject* cmnConditionalObjectFactory< CMN_DYNAMIC_CREATION, _class >::Create ( const cmnGenericObject other  )  [inline, static]

Specialization of create(other) when dynamic creation is enabled. Call new for the given class. This method requires a copy constructor for the aforementioned class.

Definition at line 124 of file cmnClassServices.h.

template<typename _class>
static bool cmnConditionalObjectFactory< CMN_DYNAMIC_CREATION, _class >::Create ( cmnGenericObject existing,
const cmnGenericObject other 
) [inline, static]

Specialization of create(other) when dynamic creation is enabled. Call new for the given class. This method requires a copy constructor for the aforementioned class. Returns false on failure, in which case input parameter (existing) is not modified.

Definition at line 139 of file cmnClassServices.h.

template<typename _class>
static cmnGenericObject* cmnConditionalObjectFactory< CMN_DYNAMIC_CREATION, _class >::CreateArray ( size_t  size  )  [inline, static]

Specialization of create when dynamic creation is enabled. Call new[size] for the given class. This method requires a default constructor for the aforementioned class.

Definition at line 154 of file cmnClassServices.h.

template<typename _class>
static cmnGenericObject* cmnConditionalObjectFactory< CMN_DYNAMIC_CREATION, _class >::CreateArray ( size_t  size,
const cmnGenericObject other 
) [inline, static]

Specialization of create when dynamic creation is enabled. Call the global operator new to allocate a block of memory and then use the placement new for each object. The code followed by in place new. This method requires a default constructor for the aforementioned class.

Definition at line 164 of file cmnClassServices.h.

template<typename _class>
static bool cmnConditionalObjectFactory< CMN_DYNAMIC_CREATION, _class >::DeleteArray ( generic_pointer data,
size_t &  size 
) [inline, static]

Specialization of DeleteArray. Call the destructor for each object and then delete the container

Definition at line 181 of file cmnClassServices.h.

template<typename _class>
static bool cmnConditionalObjectFactory< CMN_DYNAMIC_CREATION, _class >::Delete ( cmnGenericObject existing  )  [inline, static]

Specialization of delete when dynamic creation is enabled. Call destructor for the given class.

Definition at line 199 of file cmnClassServices.h.


The documentation for this class was generated from the following file:
erc-cisst-devel<at>lists.johnshopkins.edu