cgv
|
implementation of the reflection traits providing type specific interface for variable base class More...
#include <reflection_traits.h>
Public Member Functions | |
unsigned | size () const |
return the size of the type | |
void * | new_instance () const |
construct an instance on the heap with the new operator | |
void | delete_instance (void *instance_ptr) const |
delete an instance with the delete operator | |
void * | new_instances (unsigned n) const |
construct n instances on the heap with the new operator | |
void | delete_instances (void *instance_array) const |
delete instances with the delete [] operator | |
cgv::type::info::TypeId | get_type_id () const |
return the type id | |
const char * | get_type_name () const |
return the type name | |
bool | is_enum_type () const |
return whether type is an enum type - this is independent of whether enum interface is implemented | |
implementation of the reflection traits providing type specific interface for variable base class
Definition at line 94 of file reflection_traits.h.
|
inline |
delete an instance with the delete operator
Definition at line 101 of file reflection_traits.h.
|
inline |
delete instances with the delete [] operator
Definition at line 105 of file reflection_traits.h.
|
inline |
return the type id
Definition at line 107 of file reflection_traits.h.
|
inline |
return the type name
Definition at line 109 of file reflection_traits.h.
References cgv::type::info::type_name< T >::get_name().
|
inline |
return whether type is an enum type - this is independent of whether enum interface is implemented
Definition at line 111 of file reflection_traits.h.
|
inline |
construct an instance on the heap with the new operator
Definition at line 99 of file reflection_traits.h.
|
inline |
construct n instances on the heap with the new operator
Definition at line 103 of file reflection_traits.h.
|
inline |
return the size of the type
Definition at line 97 of file reflection_traits.h.