cohtml::FieldProperty< PropertyType(Class::*)[ArraySize]>
#include <Property.h>
Inherits from cohtml::TypedProperty< const PropertyType(&)[ArraySize]>, cohtml::Property
Public Types
Name | |
---|---|
typedef PropertyType(Class::*)[ArraySize] | Pointer |
typedef TypedProperty< const PropertyType(&)[ArraySize]> | BaseProperty |
Public Functions
Name | |
---|---|
FieldProperty(const char * name, Pointer member) | |
FieldProperty(const FieldProperty & o) | |
virtual void * | Bind(Binder * binder, void * object) const Expose the property’s name and value to a binder. |
virtual void * | BindValue(Binder * binder, void * object) const Expose only the value of the property to a binder. |
virtual void * | Read(Binder * binder, void * object) const Read the value from a binder. |
virtual void * | ReadValue(Binder * binder, void * object) const Read only the value of the property from a binder. |
virtual FieldProperty * | Clone() const Clone the property. |
virtual BaseProperty::ValuePassType | GetValue(void * object) const |
Additional inherited members
Public Types inherited from cohtml::TypedProperty< const PropertyType(&)[ArraySize]>
Name | |
---|---|
typedef ValueType | ValuePassType |
typedef RemoveConst< ValuePassType >::Type | NoConstValuePassType |
Public Functions inherited from cohtml::TypedProperty< const PropertyType(&)[ArraySize]>
Name | |
---|---|
TypedProperty(const char * name, bool isByRef =true) | |
virtual bool | ToBoolean(void * object, bool * boolean) const override Convert the property value to a boolean. |
virtual bool | ToNumber(void * object, float * number) const override Convert the property value to a number. |
virtual bool | ToString(void * object, char * buffer, size_t * length) const override Convert the property value to a string value. |
virtual bool | ToColor(void * object, renoir::Color * color) const override Convert the property value to a color value. |
virtual bool | ToTransformMatrix2D(void * object, float matrix[6]) const override Convert the property value to a matrix. |
virtual bool | ToArray(Binder * binder, void * object, ArrayInfo * arrayInfo) const override Convert the property value to a array type information. |
virtual bool | ToPair(Binder * binder, void * object, PairInfo * pairInfo) const override Convert the property value to a pair type information. |
virtual bool | ToMap(Binder * binder, void * object, MapInfo * mapInfo) const override Convert the property value to a map type information. |
virtual bool | ToObject(Binder * binder, void * object, ObjectInfo * typeInfo) const override Convert the property value to a object type information. |
Public Functions inherited from cohtml::Property
Name | |
---|---|
Property(const char * name, bool isByRef =true) Create a new property. | |
virtual | ~Property() |
const char * | GetName() const Get the name of the property. |
bool | IsByRef() const Can this property be exported By-Ref. Temporaries can not be exported by reference. |
virtual bool | ToBoolean(void * object, bool * boolean) const =0 Convert the property value to a boolean. |
virtual bool | ToNumber(void * object, float * number) const =0 Convert the property value to a number. |
virtual bool | ToString(void * object, char * buffer, size_t * length) const =0 Convert the property value to a string value. |
virtual bool | ToColor(void * object, renoir::Color * color) const =0 Convert the property value to a color value. |
virtual bool | ToTransformMatrix2D(void * object, float matrix[6]) const =0 Convert the property value to a matrix. |
virtual bool | ToArray(Binder * binder, void * object, ArrayInfo * arrayInfo) const =0 Convert the property value to a array type information. |
virtual bool | ToPair(Binder * binder, void * object, PairInfo * pairInfo) const =0 Convert the property value to a pair type information. |
virtual bool | ToMap(Binder * binder, void * object, MapInfo * mapInfo) const =0 Convert the property value to a map type information. |
virtual bool | ToObject(Binder * binder, void * object, ObjectInfo * typeInfo) const =0 Convert the property value to a object type information. |
void *COHERENT_CDECL | operator new(size_t bytes) |
void COHERENT_CDECL | operator delete(void * memory) |
void *COHERENT_CDECL | operator new[](size_t bytes) |
void COHERENT_CDECL | operator delete[](void * memory) |
Protected Attributes inherited from cohtml::Property
Name | |
---|---|
const char * | m_Name |
bool | m_IsByRef |
Detailed Description
template <typename Class ,
typename PropertyType ,
size_t ArraySize>
class cohtml::FieldProperty< PropertyType(Class::*)[ArraySize]>;
Public Types Documentation
typedef Pointer
typedef PropertyType(Class::* cohtml::FieldProperty< PropertyType(Class::*)[ArraySize]>::Pointer)[ArraySize];
typedef BaseProperty
typedef TypedProperty<const PropertyType(&)[ArraySize]> cohtml::FieldProperty< PropertyType(Class::*)[ArraySize]>::BaseProperty;
Public Functions Documentation
function FieldProperty
inline FieldProperty(
const char * name,
Pointer member
)
function FieldProperty
inline FieldProperty(
const FieldProperty & o
)
function Bind
inline virtual void * Bind(
Binder * binder,
void * object
) const
Expose the property’s name and value to a binder.
Parameters:
- binder - the binder to use
- object - object to get the property value from
Return: - adjusted object pointer if necessary
Reimplements: cohtml::Property::Bind
function BindValue
inline virtual void * BindValue(
Binder * binder,
void * object
) const
Expose only the value of the property to a binder.
Parameters:
- binder - the binder to use
- object - object to get the property value from
Return: - adjusted object pointer if necessary
Reimplements: cohtml::Property::BindValue
function Read
inline virtual void * Read(
Binder * binder,
void * object
) const
Read the value from a binder.
Parameters:
- binder - the binder to use
- object - the object to set the property into
Return: - adjusted object pointer if necessary
Reimplements: cohtml::Property::Read
function ReadValue
inline virtual void * ReadValue(
Binder * binder,
void * object
) const
Read only the value of the property from a binder.
Parameters:
- binder - the binder to use
- object - the object to set the property into
Return: - adjusted object pointer if necessary
Reimplements: cohtml::Property::ReadValue
function Clone
inline virtual FieldProperty * Clone() const
Clone the property.
Return: a heap allocated copy of the property
Reimplements: cohtml::Property::Clone
function GetValue
inline virtual BaseProperty::ValuePassType GetValue(
void * object
) const
Reimplements: cohtml::TypedProperty::GetValue