cisst-saw
Loading...
Searching...
No Matches
cmnConditionalObjectDestructor< _hasDynamicCreation, _class > Class Template Reference

#include <cmnClassServices.h>

Static Public Member Functions

static bool DeleteArray (generic_pointer &data, size_t &size)
static bool Delete (cmnGenericObject *existing)

Detailed Description

template<int _hasDynamicCreation, typename _class>
class cmnConditionalObjectDestructor< _hasDynamicCreation, _class >

Default implementation with dynamic creation enabled

Member Function Documentation

◆ Delete()

template<int _hasDynamicCreation, typename _class>
bool cmnConditionalObjectDestructor< _hasDynamicCreation, _class >::Delete ( cmnGenericObject * existing)
inlinestatic

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

◆ DeleteArray()

template<int _hasDynamicCreation, typename _class>
bool cmnConditionalObjectDestructor< _hasDynamicCreation, _class >::DeleteArray ( generic_pointer & data,
size_t & size )
inlinestatic

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


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