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
P
 Parameters
 ParameterType, Function
 Params, Parameters
 Parent, Type
 Persistent
 PersistentClass
 PersistentClass::DescriptionHelper
 PersistentClass::PropertyIterator
 Philosophy
 Platform Integration
 Plugin System
 PreviousContext, Context<Type>
 PrimitiveTypes.h
 Properties
 Property
 PropertyMap, PersistentClass
 PropertyPath
 PropertyTag, SerializationTag
R
 read, Parameters
 Read
 Read(mutable_string)const, PropertyPath
 Read(Reflector&)const, PropertyPath
 Read(string), PropertyPath
 ReadData
 ReadEnum, EnumType
 Readme
 ReadProperty, PersistentClass
 ReadRefProperty, PersistentClass
 ReadStringProperty, PersistentClass
 ReadValue
 ref, Parameters
 Ref, Variant
 RefData
 Reference
 Reference(const Dynamic*object), StandardSerializer
 ReflectConstructor, PersistentClass::DescriptionHelper
 ReflectExport
 Reflection.h
 Reflection.hpp
 Reflector
 Reflector::BoundReflector
 RefValue, Variant
 RegisterConversion, Type
 RegisterFunction
 RegisterFunction(template), JavaScriptContext
 Replaces RTTI
 Resizable, ArrayProperty
 Resize, ArrayProperty
 ResolvePropertyPath, PersistentClass
 rfind, Fragment
 Run, Application
class ReflectExport(reflect) Parameters
Represents a parameter list passed to a Function.
Parameters(const Function *fun)
Builds a parameter list for a function.
const Type *ParameterType(int index) const
Returns the type of parameter at index.
Variant *Params() const
Returns the parameters as an array of Variant.
Type *Parent() const
Gets the parent (base class) of this Type.
class ReflectExport(reflect) Persistent : public Dynamic
The base class of all objects that can be saved and loaded.
class ReflectExport(reflect) PersistentClass : public Class
This class enables serialization and stores property maps.
template<typename T> class PersistentClass::DescriptionHelper : public Class::DescriptionHelper<T>
Helper class for Persistent reflection definitions.
class ReflectExport(reflect) PersistentClass::PropertyIterator
Reflect is designed so that no memory allocations need to be performed before main() starts, making it that much easier to initialize a custom memory system before reflect starts up.
Reflect has macros designed to help automate building DLLs.
Type *PreviousContext() const
The context that was active when the current context was constructed.
Declares the reflection for the basic primitive types of C++.
Const accessor for the class PropertyMap.
PropertyCollector Properties
Used to help register properties in a reflection definition.
class ReflectExport(reflect) Property : public Dynamic
Properties represent data in a reflected type, and can be used to Serialize that data through a Reflector.
PropertyPath Property(string::Fragment property_path)
Returns a PropertyPath which can be used to access the named property.
typedef std::map<string::SharedString, const Property *> PropertyMap
A map of properties for the class by name.
class ReflectExport(reflect) PropertyPath
A PropertyPath is a generic proxy for a data in an object.
PropertyPath()
default constructor.
Starts a Property, the text specifies the Property name.
FunctionParameter read(const string::Fragment &text,  
int index =  0)
Deserialize text using a StandardSerializer.
virtual size_type Read(void *buffer,
size_type bufmax) = 0
Reads binary data.
string::String Read() const
bool Read(string::MutableString) const
void Read(Reflector &reflector) const
bool Read(string::String&) const
virtual bool ReadData(const void *,
unsigned item_index,
Variant &) const = 0
Reads the array and stores the value into the Variant.
virtual bool ReadData(const void *,
Variant &) const = 0
Reads this property with the Variant value.
virtual bool ReadData(const void *in,
const Variant &key,
Variant &value) const = 0
Reads the value for key.
int ReadEnum(const void *)
Reflect is a cohesive framework for doing runtime-type-identification (RTTI) and serialization in C++.
bool ReadProperty(const Persistent *,
string::Fragment path,
string::String &value) const
Reads a property using a StandardSerializer to format the data.
bool ReadRefProperty(const Persistent *,
string::Fragment path,
Dynamic *&value) const
Reads a reference property (a property representing a Dynamic *).
bool ReadStringProperty(const Persistent *,
string::Fragment path,
string::String &value) const
template<typename T> bool ReadValue(&data) const
Easy way to read data templated on data type.
template<typename T> bool ReadValue(&value) const
Reads this variant as typeof(value).
FunctionParameter ref(Variant &value,  
int index =  0)
Assign (mutable) params (held in a variant) to parameter, using a chainable method.
bool Ref(const Variant &value)
Assigns a reference to the variant.
virtual bool RefData(const void *in,
void *out,
unsigned item_index,
Variant &) const = 0
Refs the Variant to the array index.
virtual bool RefData(const void *,
void *,
Variant &) const = 0
Refs this property into the Variant value.
virtual bool Reference(Dynamic *object) = 0
References a Dynamic *.
virtual bool Reference(const Dynamic *object) = 0
Adds the object to the list of objects known to this serializer.
bool Reference(const Dynamic *object)
Writes “@<<count>>” where count is the number of references made so far.
inline void ReflectConstructor() const
This function is available in the reflection definition.
Use this macro in the declarations of any classes or functions that need correct DLL linkage.
Defines helper macros for reflecting types.
Support for defining reflection for types.
class ReflectExport(reflect) Reflector
Reflectors provides an easy and uniform interface for using Serializers, and Deserializers, and maintain a bool for error detection/handling.
Reflector(Serializer &)
Builds a serializing reflector
template<typename T> class Reflector::BoundReflector
A utitlity class which makes it easier to sequence reads and writes of multiple member variables.
template<typename T> bool RefValue(&value)
Template version of Ref.
void RegisterConversion(const Type *from,
void (*)(void *, const void *))
Registers a cast from type from to this type.
bool RegisterFunction(string::ConstString name,  
const function::Function *function,  
bool take_ownership =  false)
Registers a function in this context.
void RegisterFunction(const char *name,
const function::Function *)
Adds the function to the function map.
template<typename FunctionType> bool RegisterFunction(
   string::ConstString name,
   FunctionType function
)
Like RegisterFunction, but takes a regular C function pointer, creates the function::Function object wrapper and marks it for deletion.
Reflect does not depend on C++’s built-in RTTI: typeid and dynamic_cast.
virtual bool Resizable(const void *) const = 0
Checks if the array/vector represented by this property is resizable.
virtual bool Resize(void *,
unsigned size) const = 0
Resizes the array/vector in the object.
static bool ResolvePropertyPath(PropertyPath &result,
const Persistent *,
string::Fragment path)
size_type rfind(const char *s,  
size_type pos =  npos,
size_type length =  npos) const
Finds a string in the string, in reverse.
virtual int Run(int argc,
char *argv[]) = 0
Close