this reflection traits implementation is used for external self_reflect implementations of instances of type T where the external implementation is a self_reflect function in type D
More...
#include <reflect_extern.h>
|
|
static const bool | has_external |
| | compile information about external implementation
|
| |
|
|
virtual bool | has_string_conversions () const |
| | whether type can be converted to string, defaults to false
|
| |
|
virtual bool | set_from_string (void *instance_ptr, const std::string &str_val) |
| | convert a given string value to the reflected type and store in the instance pointer
|
| |
|
virtual void | get_to_string (const void *instance_ptr, std::string &str_val) |
| | convert given instance into a string value
|
| |
|
static const bool | has_string = false |
| | compile information about string conversions
|
| |
|
|
virtual bool | is_enum_type () const |
| | return whether type is an enum type - this is independent of whether enum interface is implemented
|
| |
|
virtual bool | has_enum_interface () const |
| | return whether the traits class implements the enum interface
|
| |
|
virtual unsigned | get_nr_enum_items () const |
| | return the number of enum items
|
| |
|
virtual std::string | get_enum_name (unsigned i) const |
| | return the name of the i-th enum item
|
| |
|
virtual int | get_enum_value (unsigned i) const |
| | return the value of the i-th enum item
|
| |
|
static const bool | has_enum = false |
| | compile information about enum interface
|
| |
template<typename T, typename D>
struct cgv::reflect::extern_reflection_traits< T, D >
this reflection traits implementation is used for external self_reflect implementations of instances of type T where the external implementation is a self_reflect function in type D
The documentation for this struct was generated from the following file: