cgv
Loading...
Searching...
No Matches
cgv::reflect::reflection_traits< T, KIND, has_str > Struct Template Reference

Default implementation of the reflection traits providing type specific interface. More...

#include <reflection_traits.h>

Inheritance diagram for cgv::reflect::reflection_traits< T, KIND, has_str >:
cgv::reflect::reflection_traits_string_impl< has_str, T, B > cgv::reflect::reflection_traits_impl< T, B, base_is_abst >

Public Member Functions

abst_reflection_traitsclone ()
 clone function
 
- Public Member Functions inherited from cgv::reflect::reflection_traits_impl< T, B, base_is_abst >
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
 

Static Public Attributes

static const ReflectionTraitsKind kind = KIND
 

Detailed Description

template<typename T, ReflectionTraitsKind KIND = RTK_STRING, bool has_str = true>
struct cgv::reflect::reflection_traits< T, KIND, has_str >

Default implementation of the reflection traits providing type specific interface.

Definition at line 160 of file reflection_traits.h.

Member Function Documentation

◆ clone()

template<typename T , ReflectionTraitsKind KIND = RTK_STRING, bool has_str = true>
abst_reflection_traits * cgv::reflect::reflection_traits< T, KIND, has_str >::clone ( )
inline

clone function

Definition at line 164 of file reflection_traits.h.

Member Data Documentation

◆ kind

template<typename T , ReflectionTraitsKind KIND = RTK_STRING, bool has_str = true>
const ReflectionTraitsKind cgv::reflect::reflection_traits< T, KIND, has_str >::kind = KIND
static

Definition at line 162 of file reflection_traits.h.


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