Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
D
 data
 Data, PropertyPath
 data(the entire block), StringBlock
 DataExists, PropertyPath
 DataProperty
 DataType, DataProperty
 DECLARE_REFLECTION
 DECLARE_REFLECTION_ALIAS
 DECLARE_REFLECTION_EX
 DECLARE_STATIC_EXTENSION
 DECLARE_STATIC_REFLECTION
 DECLARE_TEMPLATE_REFLECTION
 DECLARE_TEMPLATE_REFLECTION_ALIAS
 Declaring Reflection
 DecRef, JavaScriptContext
 DEFINE_LOCAL_STATIC_REFLECTION
 DEFINE_PRIVATE_REFLECTION
 DEFINE_REFLECTION
 DEFINE_STATIC_REFLECTION
 DEFINE_TEMPLATE_REFLECTION
 Defining reflection
 Defining Reflection
 Derives, Type
 Derives(template), Type
 Deserialize(bool&), Deserializer
 Deserialize(double&), Deserializer
 Deserialize(Dynamic*&), Deserializer
 Deserialize(long&), Deserializer
 DeserializeData, Deserializer
 DeserializeEnum, Deserializer
 DeserializePointer, Class
 DeserializeProperties, PersistentClass
 DeserializeProperty, Deserializer
 Deserializer
~Deserializer, Deserializer
mDeserializer
 DeserializeTextChunk, Deserializer
 Deserializing, Reflector
 Destruct
 DirectArrayProperty
 DirectDataProperty
 DirectMapProperty
 DirectVectorProperty
 Downcast, Variant
 Dynamic
~Dynamic, Dynamic
 DynamicPointerType
mDynamicPointerType, Class
E
 empty
 end, MutableString
 End
 Enumerations
 EnumType
 EnumType.hpp
 EnumType::DescriptionHelper
 Eval, JavaScriptContext
 Eval(toss result), JavaScriptContext
 Eval(typed result), JavaScriptContext
 Execute
 Extendable
const char *data() const
A chararcter pointer to the data.
const char *data() const
same as c_str, but the data method isn’t guaranteed to return nul-terminated data in the other reflect string classes.
const char *data() const
a chararcter pointer to the data.
const char *data() const
A chararcter pointer to the data.
represents a basic property (see: DataProperty).
const char *data()
bool DataExists() const
check if this path result is an existing map data property, requires IsMapData() or IsArrayData() to be true.
class ReflectExport(reflect) DataProperty : public Property
Properties represent a single data element.
virtual Type *DataType() const = 0
The type of data represented by this property.
Declares reflection for a class.
Causes one static type to share reflection with another.
Declares reflection for a class, changing the ClassType used to reflect the class.
Declares reflection for a static type.
Declares reflection for a class with a templated base type.
Causes a templated static type to share reflection with another.
Suppose you want to represent Circles by center and radius, you plan to make circle subclass Shape, so it should be at least Dynamic.
template<typename T> void DecRef(*object) const
Defines the reflection support for a dynamic type, allowing the reflecting (class object) type to be privately specialized.
Defines the reflection support for a type using its class’ DescriptionHelper.
Defines reflection for a non-dynamic type.
Defines the reflection support for a templated type using its class’ DescriptionHelper.
Reflection definitions are facilitated by the Type.DescriptionHelper (or extensions of it), which contains syntactic sugar objects to make reflecting features easier.
At this point we have defined the circle type, and declared it and the inner Point type reflected.
bool DerivesType(const Type *other) const
Checks if this class represents a subclass of another.
template<typename T> bool Derives() const
Checks if this class represents a subclass of another.
virtual bool Deserialize(bool &) = 0
Reads a bool from the stream.
virtual bool Deserialize(double &) = 0
Reads a floating point number.
virtual bool Deserialize(Dynamic *&object) = 0
Reads a Dynamic *, using a category.
virtual bool Deserialize(long &) = 0
Reads an integral number.
virtual bool DeserializeData(void *data,
unsigned nbytes) = 0
Deserializes a block of data.
virtual bool DeserializeEnum(int &value,
const EnumType *clazz) = 0
virtual void DeserializePointer(Dynamic *&out,
Reflector &reflector) const
void DeserializeProperties(Persistent *,
Reflector &) const
virtual bool DeserializeProperty(void *object,
const Property *prop) = 0
Writes into the object using the Properties’ method.
class ReflectExport(reflect) Deserializer
Defines the interface for deserialization.
virtual ~Deserializer()
Deserializer *mDeserializer
The deserializer this Reflector is managing, or NULL if it is Serializing.
void (ObjectType::*mDeserializer)(Reflector &)
virtual bool DeserializeTextChunk(char *text,
unsigned &max_bytes,
bool &complete) = 0
Deserializes text in chunks.
bool Deserializing() const
true when this reflector represents a Deserializer
void Destruct(Persistent *) const
A pointer to a Persistent constructed with this Class.
void *Destruct(void *) const
Destructs an instance of this type.
template<typename ObjectType, typename MemberType> class DirectArrayProperty : public ArrayProperty
An implemetation of ArrayProperty using a pointer-to-member to access the array.
template<typename ObjectType, typename MemberType> class DirectDataProperty : public DataProperty
An implemetation of a DataProperty using a pointer-to-member to access the data.
template<typename ObjectType, typename MemberType> class DirectMapProperty : public MapProperty
An implemetation of MapProperty using a pointer-to-member to access the map.
template<typename ObjectType, typename MemberType> class DirectVectorProperty : public ArrayProperty
An implemetation of ArrayProperty using a pointer-to-member to access the vector.
Variant &Downcast()
Convert type and pointer to most derived form (when pointing to some kind of Dynamic).
class ReflectExport(reflect) Dynamic
This class defines the core interface for all runtime type identification (RTTI) in reflect.
Dynamic()
Declared protected because there’s no good reason to make a plain Dynamic.
virtual ~Dynamic()
Declare virtual to allow correct deletion of castable.
class ReflectExport(reflect) DynamicPointerType : public Type
mutable DynamicPointerType mDynamicPointerType
The Type object representing pointers to this type.
bool empty() const
bool empty() const
true if the string is not set, or is the empty string.
const_iterator end() const
the const_iterator at the end of the string.
virtual bool End(SerializationTag &) = 0
Deserializes an ending tag in the stream.
virtual bool End(const SerializationTag &) = 0
Ends a group started by the tag with Begin.
bool End(const SerializationTag &)
Writes a serialization end tag, see Begin.
class ReflectExport(reflect) EnumType : public Type
EnumType(void (*init_cb)() =  0)
template<typename T> class EnumType::DescriptionHelper : public Type::DescriptionHelper<T>
bool Eval(string::Fragment script,
Variant &result) const
Assigns the result of Eval into the variant result.
bool Eval(string::Fragment script) const
template<typename T> bool Eval(string::Fragment script,
&result) const
int Execute(int argc,
char *argv[])
invokes Run
int Execute(int argc =  0,
char *argv[] =  0)
Type (and Class) is extendable, this is done in reflect but you can too!
Close