class ReflectExport( reflect ) MapProperty : public Property
MapProperties represent key indexed data.
MapProperties provide key-based access and complete iteration through a callback.
MapProperty | MapProperties represent key indexed data. |
Functions | |
ForEachKey | Calls a callback with every key in the map. |
HasKey | Checks if the map has an element for the given key. |
ReadData | Reads the value for key. |
WriteData | Writes a (possibly new) map entry. |
KeyType | Retrieves the type of keys represented by this map property. |
ValueType | Retrieves the type of values represented by this map property. |
MapProperties represent key indexed data.
class ReflectExport( reflect ) MapProperty : public Property
Calls a callback with every key in the map.
virtual void ForEachKey( const void * in, void (*)(const Variant &key, void *ctx), void * ctx = 0 ) const = 0
Checks if the map has an element for the given key.
virtual bool HasKey( const void * in, const Variant & key ) const = 0
Reads the value for key.
virtual bool ReadData( const void * in, const Variant & key, Variant & value ) const = 0
Writes a (possibly new) map entry.
virtual bool WriteData( void * in, const Variant & key, const Variant & value ) const = 0
Retrieves the type of keys represented by this map property.
virtual const Type *KeyType() const = 0
Retrieves the type of values represented by this map property.
virtual const Type *ValueType() const = 0
Properties represent data in a reflected type, and can be used to Serialize that data through a Reflector.
class ReflectExport( reflect ) Property : public Dynamic