1.26.2.1
Gameface
cohtml::ConcretePropertyReadOnly< Getter > Class Template Reference
+ Inheritance diagram for cohtml::ConcretePropertyReadOnly< Getter >:

Public Types

typedef TypedProperty< typename ReturnsByRef< Getter >::ValuePassTypeBaseProperty
 
- Public Types inherited from cohtml::TypedProperty< ReturnsByRef< Getter >::ValuePassType >
typedef ReturnsByRef< Getter >::ValuePassType ValuePassType
 
typedef RemoveConst< ValuePassType >::Type NoConstValuePassType
 

Public Member Functions

 ConcretePropertyReadOnly (const char *name, Getter getter)
 
 ConcretePropertyReadOnly (const ConcretePropertyReadOnly &o)
 
virtual void * Bind (Binder *binder, void *object) const
 Expose the property's name and value to a binder. More...
 
virtual void * BindValue (Binder *binder, void *object) const
 Expose only the value of the property to a binder. More...
 
virtual void * Read (Binder *, void *object) const
 Read the value from a binder. More...
 
virtual void * ReadValue (Binder *, void *object) const
 Read only the value of the property from a binder. More...
 
virtual ConcretePropertyReadOnlyClone () const
 Clone the property. More...
 
virtual BaseProperty::ValuePassType GetValue (void *object) const
 
- Public Member Functions inherited from cohtml::TypedProperty< ReturnsByRef< Getter >::ValuePassType >
 TypedProperty (const char *name, bool isByRef=true)
 
virtual bool ToBoolean (void *object, bool *boolean) const override
 Convert the property value to a boolean. More...
 
virtual bool ToNumber (void *object, float *number) const override
 Convert the property value to a number. More...
 
virtual bool ToString (void *object, char *buffer, size_t *length) const override
 Convert the property value to a string value. More...
 
virtual bool ToColor (void *object, renoir::Color *color) const override
 Convert the property value to a color value. More...
 
virtual bool ToTransformMatrix2D (void *object, float matrix[6]) const override
 Convert the property value to a matrix. More...
 
virtual bool ToArray (Binder *binder, void *object, ArrayInfo *arrayInfo) const override
 Convert the property value to a array type information. More...
 
virtual bool ToPair (Binder *binder, void *object, PairInfo *pairInfo) const override
 Convert the property value to a pair type information. More...
 
virtual bool ToMap (Binder *binder, void *object, MapInfo *mapInfo) const override
 Convert the property value to a map type information. More...
 
virtual bool ToObject (Binder *binder, void *object, ObjectInfo *objInfo) const override
 Convert the property value to a object type information. More...
 
- Public Member Functions inherited from cohtml::Property
 Property (const char *name, bool isByRef=true)
 Create a new property. More...
 
virtual ~Property ()
 
const char * GetName () const
 Get the name of the property. More...
 
bool IsByRef () const
 Can this property be exported By-Ref. Temporaries can not be exported by reference. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from cohtml::Property
static void *COHERENT_CDECL operator new (size_t bytes)
 
static void COHERENT_CDECL operator delete (void *memory)
 
static void *COHERENT_CDECL operator new[] (size_t bytes)
 
static void COHERENT_CDECL operator delete[] (void *memory)
 
- Protected Attributes inherited from cohtml::Property
const char * m_Name
 
bool m_IsByRef
 

Member Typedef Documentation

◆ BaseProperty

template<typename Getter >
typedef TypedProperty<typename ReturnsByRef<Getter>::ValuePassType> cohtml::ConcretePropertyReadOnly< Getter >::BaseProperty

Constructor & Destructor Documentation

◆ ConcretePropertyReadOnly() [1/2]

template<typename Getter >
cohtml::ConcretePropertyReadOnly< Getter >::ConcretePropertyReadOnly ( const char *  name,
Getter  getter 
)
inline

◆ ConcretePropertyReadOnly() [2/2]

template<typename Getter >
cohtml::ConcretePropertyReadOnly< Getter >::ConcretePropertyReadOnly ( const ConcretePropertyReadOnly< Getter > &  o)
inline

Member Function Documentation

◆ Bind()

template<typename Getter >
virtual void* cohtml::ConcretePropertyReadOnly< Getter >::Bind ( Binder binder,
void *  object 
) const
inlinevirtual

Expose the property's name and value to a binder.

Parameters
binder- the binder to use
object- object to get the property value from
Returns
- adjusted object pointer if necessary

Implements cohtml::Property.

◆ BindValue()

template<typename Getter >
virtual void* cohtml::ConcretePropertyReadOnly< Getter >::BindValue ( Binder binder,
void *  object 
) const
inlinevirtual

Expose only the value of the property to a binder.

Parameters
binder- the binder to use
object- object to get the property value from
Returns
- adjusted object pointer if necessary

Implements cohtml::Property.

◆ Clone()

template<typename Getter >
virtual ConcretePropertyReadOnly* cohtml::ConcretePropertyReadOnly< Getter >::Clone ( ) const
inlinevirtual

Clone the property.

Returns
a heap allocated copy of the property

Implements cohtml::Property.

◆ GetValue()

template<typename Getter >
virtual BaseProperty::ValuePassType cohtml::ConcretePropertyReadOnly< Getter >::GetValue ( void *  object) const
inlinevirtual

◆ Read()

template<typename Getter >
virtual void* cohtml::ConcretePropertyReadOnly< Getter >::Read ( Binder binder,
void *  object 
) const
inlinevirtual

Read the value from a binder.

Parameters
binder- the binder to use
object- the object to set the property into
Returns
- adjusted object pointer if necessary

Implements cohtml::Property.

◆ ReadValue()

template<typename Getter >
virtual void* cohtml::ConcretePropertyReadOnly< Getter >::ReadValue ( Binder binder,
void *  object 
) const
inlinevirtual

Read only the value of the property from a binder.

Parameters
binder- the binder to use
object- the object to set the property into
Returns
- adjusted object pointer if necessary

Implements cohtml::Property.