Catos Engine (Source) 0.0.1
Lightweight Game engine
|
PropertyImpl implements Property and holds an member function pointer. Used to get an value of an field of an Type's instance. More...
#include <registry.h>
Inherits catos::Property.
Public Member Functions | |
PropertyImpl (U T::*memPtr) | |
PropertyImpl exist in order to avoid having to deal with templates at the user-side. | |
void | set_name (const char *new_name) override |
Set the name of the property. | |
void * | get_value (const void *objPtr) override |
Use Get value (which can be cased to the desired type) to return an value of an instance. | |
const char * | get_name () override |
Get the name of the property. | |
const char * | get_type_name () override |
Returns the name of the fields type. | |
size_t & | get_type_hash () override |
Returns (a reference of) the type's hash. | |
void | registerToPy () override |
Public Member Functions inherited from catos::Property | |
virtual | ~Property () |
Public Attributes | |
U T::* | memberPtr |
const char * | name |
std::string | type_name |
size_t | type_hash |
Public Attributes inherited from catos::Property | |
cstr | desc = "NONE" |
PropertyImpl implements Property and holds an member function pointer. Used to get an value of an field of an Type's instance.
|
inline |
PropertyImpl exist in order to avoid having to deal with templates at the user-side.
|
inlineoverridevirtual |
Get the name of the property.
Implements catos::Property.
|
inlineoverridevirtual |
Returns (a reference of) the type's hash.
Implements catos::Property.
|
inlineoverridevirtual |
Returns the name of the fields type.
Implements catos::Property.
Use Get value (which can be cased to the desired type) to return an value of an instance.
Implements catos::Property.
|
inlineoverridevirtual |
Implements catos::Property.
Set the name of the property.
Implements catos::Property.