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
I
 Implementation
 IncRef, JavaScriptContext
 Index, BlockString
 InputStream
 Insert, SharedString
 Invalid, PropertyPath
 IsArray, PropertyPath
 IsArrayData, PropertyPath
 IsConstMethod, Function
 IsData, PropertyPath
 IsDatum, PropertyPath
 IsMap, PropertyPath
 IsMapData, PropertyPath
 IsMethod, Function
 IsOpaque, PropertyPath
 IsRef, PropertyPath
 ItemTag, SerializationTag
 ItemType, ArrayProperty
J
 JavaScript.h
 JavaScriptContext
 JavaScriptRuntime
K
 KeyType, MapProperty
L
 length
 License
 Lightweight
 Literal, StringPool
 Load, StringBlock
 LoadFile
 LoadTypes, Type
M
 Macros
 Map, PropertyPath
 MapItem, PropertyPath
 MapProperty
mMember
 Members
mMembers, StructType
mMutableAccess, AccessorAccessProperty
 MutableString
N
 Name
 NameMap, EnumType
 NextTypeToLoad, Type
 NormalizedType, PropertyPath
 NumParameters, Function
O
 Object, PropertyPath
 ObjectTag, SerializationTag
 ObjectType
 ObjectType::DescriptionHelper
 ObjectType::FunctionIterator
 Ok, Reflector
mOk, Reflector
 Opaque
 opaque_cast
 OpaqueCast
 OpaqueSerialize, Reflector
 operator bool, Reflector
 operator Deserializer, Reflector
 operator Serializer, Reflector
 operator(const T*,T*), Reflector
 operator=, Variant
 operator==, SerializationTag
 operator|, Reflector
 OutputStream
 Overview
The nitty-gritty details.
template<typename T> void IncRef(*object) const
Increments the reference count on a pointer that the java runtime knows about.
int Index() const
class ReflectExport(reflect) InputStream
This class defines the interface most Deserializers use to read data.
Insert a new string if not found.
bad path.
bool IsArray() const
check if this path result is an array property.
bool IsArrayData() const
check if this path result is an array data property.
virtual bool IsConstMethod() const = 0
Checks if this function can be called with a const “this” pointer.
bool IsData() const
check if this path result is a Data property (not ref, array, map...)
bool IsDatum() const
check if this path result is not an array or map, (may be Data or Ref).
bool IsMap() const
check if this path result is a map property.
bool IsMapData() const
check if this path result is a map data property.
bool IsMethod() const
Checks if this function is a member function, and needs a “this” pointer to be called.
bool IsOpaque() const
check if this path result is an Opaque property (just a Property::Serialize function with no associated structure or Type.
bool IsRef() const
check if this path result is a Ref, ArrayRef, or MapRef property
Starts an Item, the text is ignored.
virtual Type *ItemType() const = 0
returns the type of the items in the property.
Bindings for reflect to Mozilla’s Spidermonkey (v1.7.0).
class ReflectExport(reflect_js) JavaScriptContext
Represents a javascript context
JavaScriptContext(
   const JavaScriptRuntime & =  JavaScriptRuntime::SharedRuntime()
)
class ReflectExport(
   reflect_js
) JavaScriptRuntime : public utility::Shared<JavaScriptRuntime>
Wraps a JSRuntime, a JSRuntime object represents a single JavaScript object space which can hold multiple contexts.
virtual const Type *KeyType() const = 0
Retrieves the type of keys represented by this map property.
size_type length() const
the number of non-nul chars in this string.
size_type length() const
the current length of the string.
Reflect is released to the public in the hopes that it will do some good in the world.
Dynamically reflected objects need no more than their virtual table to identify them to the reflection system.
SharedString Literal(const ConstString &)
void Load(const Fragment &data)
Copies the data into the StringBlock.
template<typename Type> bool LoadFile(Type &data,
string::ConstString filename)
Saves “data” into a file using a StandardDeserializer.
static Type *LoadTypes()
Initializes all types which have been static initialized.
Helper macros for generating and using TEST types.
represents a property representing a map (see: MapProperty).
PropertyPath MapItem(string::Fragment key) const
gets a map item as a property path, requires IsMap() to be true.
class ReflectExport(reflect) MapProperty : public Property
MapProperties represent key indexed data.
MemberType (ObjectType::*mMember)[]
MemberType ObjectType::*mMember
MemberType ObjectType::*mMember
MemberType ObjectType::*mMember
std::vector<Property *> mMembers
Type &(ObjectType::*mMutableAccess)()
A string reference to a fixed-length array for its data.
MutableString(char *buffer,
size_type buffersize,
size_type &length)
Constructs a mutable string.
const char *Name() const
const char *Name() const
The registered name of this type.
const ToNameMap &NameMap() const
Type *NextTypeToLoad() const
The next type in a NULL terminated chain of types to load in Type::LoadTypes.
The type of data that this path represents.
int NumParameters() const
The number of parameters passed to this function.
represents an object, not a property.
Starts an Object, the text specifies the Class of the object.
class ReflectExport(reflect) ObjectType : public Type
template<typename T> class ObjectType::DescriptionHelper : public Type::DescriptionHelper<T>
Provides reflection definitions for things reflected by ObjectType and its subclasses.
class ReflectExport(reflect) ObjectType::FunctionIterator
bool Ok() const
true if an error has not been flagged on this reflector.
A bool indicating success, if this becomes false then there was a problem with serialization/deserialization.
represents a custom property which can serialize but provides no apriori hints about its contents.
void *Opaque() const
template<typename T> inline void *opaque_cast(*value)
Turns a typed pointer (of type Type *) into an opaque pointer (a void *), for use with the class Signature::TheClass.
template<typename T> static void *OpaqueCast(*ptr)
Casts a type represented by this Class to a void *, used by Serialize.
template<typename Type> static void *OpaqueCast(Type *ptr)
Casts a type represented by this Type to a void *, used by Serialize.
template<typename T> static inline void OpaqueSerialize(const *in,
*out,
Reflector &reflector)
Helper function for invoking Class::Serialize which takes void * arguments which need to be normalized with opaque_cast so the implementation can cast back safely.
operator bool() const
convenient alias for Ok
operator Deserializer &() const
returns the deserializer represented by this Reflector
operator Serializer &() const
returns the serializer represented by this Reflector
template<typename T> BoundReflector<T> operator()(const T *in, T *out)
a Reflector bound to an object which can serialize pointer-to-members bidirectionally.
const Variant &operator=(const Variant &other)
copies another variant
bool operator ==(const SerializationTag &tag) const
Checks if the other tag has the same type and text.
template<typename T> Reflector &operator |(&data)
Serializes or Deserializes data.
class ReflectExport(reflect) OutputStream
This class defines the interface most Serializers use to write data.
What Reflect is and why you want to use it.
Close