cisst-saw
Loading...
Searching...
No Matches
cmnConditionalObjectFactoryDefault< _enabled, _class > Class Template Reference

#include <cmnClassServices.h>

Static Public Member Functions

static cmnGenericObjectCreate (void)
static cmnGenericObjectCreateArray (size_t CMN_UNUSED(size))
static bool DefaultConstructorAvailable (void)

Detailed Description

template<bool _enabled, typename _class>
class cmnConditionalObjectFactoryDefault< _enabled, _class >

These classes are helpers for cmnClassServices. Their goal is to specialize the various Create methods based on the first template parameter to either create a new object of type _class or do nothing and return 0 (null pointer). The latter means that dynamic creation is disabled.

Default implementation of cmnConditionalObjectFactoryDefault with disabled dynamic creation.

Member Function Documentation

◆ Create()

template<bool _enabled, typename _class>
cmnGenericObject * cmnConditionalObjectFactoryDefault< _enabled, _class >::Create ( void )
inlinestatic

Specialization of create when dynamic creation is disabled. Returns 0 (null pointer).

◆ CreateArray()

template<bool _enabled, typename _class>
cmnGenericObject * cmnConditionalObjectFactoryDefault< _enabled, _class >::CreateArray ( size_t CMN_UNUSEDsize)
inlinestatic

Specialization of create when dynamic creation is disabled. Returns 0 (null pointer).

◆ DefaultConstructorAvailable()

template<bool _enabled, typename _class>
bool cmnConditionalObjectFactoryDefault< _enabled, _class >::DefaultConstructorAvailable ( void )
inlinestatic

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