M | |
MapItem, PropertyPath | |
MutableString, MutableString | |
N | |
Name | |
NameMap, EnumType | |
NextTypeToLoad, Type | |
NumParameters, Function | |
O | |
Ok, Reflector | |
Opaque, Variant | |
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 | |
P | |
Parameters, Parameters | |
ParameterType, Function | |
Params, Parameters | |
Parent, Type | |
PreviousContext, Context<Type> | |
Properties, PersistentClass | |
Property, Persistent | |
PropertyPath, PropertyPath | |
R | |
read, Parameters | |
Read | |
Read(mutable_string)const, PropertyPath | |
Read(Reflector&)const, PropertyPath | |
Read(string), PropertyPath | |
ReadData | |
ReadEnum, EnumType | |
ReadProperty, PersistentClass | |
ReadRefProperty, PersistentClass | |
ReadStringProperty, PersistentClass | |
ReadValue | |
ref, Parameters | |
Ref, Variant | |
RefData | |
Reference | |
Reference(const Dynamic*object), StandardSerializer | |
ReflectConstructor, PersistentClass:: | |
Reflector, Reflector | |
RefValue, Variant | |
RegisterConversion, Type | |
RegisterFunction | |
RegisterFunction(template), JavaScriptContext | |
Resizable, ArrayProperty | |
Resize, ArrayProperty | |
ResolvePropertyPath, PersistentClass | |
rfind, Fragment | |
Run, Application |
gets a map item as a property path, requires IsMap() to be true.
PropertyPath MapItem( string:: Fragment key ) const
Constructs a mutable string.
MutableString( char * buffer, size_type buffersize, size_type & length )
const char *Name() const
The registered name of this type.
const char *Name() const
const ToNameMap &NameMap() const
The next type in a NULL terminated chain of types to load in Type::LoadTypes.
Type *NextTypeToLoad() const
The number of parameters passed to this function.
int NumParameters() const
true if an error has not been flagged on this reflector.
bool Ok() const
void *Opaque() const
Turns a typed pointer (of type Type *) into an opaque pointer (a void *), for use with the class Signature::TheClass.
template<typename T> inline void *opaque_cast( T * value )
Casts a type represented by this Class to a void *, used by Serialize.
template<typename T> static void *OpaqueCast( T * ptr )
Casts a type represented by this Type to a void *, used by Serialize.
template<typename Type> static void *OpaqueCast( Type * ptr )
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.
template<typename T> static inline void OpaqueSerialize( const T * in, T * out, Reflector & reflector )
convenient alias for Ok
operator bool() const
returns the deserializer represented by this Reflector
operator Deserializer &() const
returns the serializer represented by this Reflector
operator Serializer &() const
a Reflector bound to an object which can serialize pointer-to-members bidirectionally.
template<typename T> BoundReflector<T> operator( )(const T *in, T *out)
copies another variant
const Variant &operator=( const Variant & other )
Checks if the other tag has the same type and text.
bool operator ==( const SerializationTag & tag ) const
Serializes or Deserializes data.
template<typename T> Reflector &operator |( T & data )
Builds a parameter list for a function.
Parameters( const Function * fun )
Returns the type of parameter at index.
const Type *ParameterType( int index ) const
Returns the parameters as an array of Variant.
Variant *Params() const
Gets the parent (base class) of this Type.
Type *Parent() const
The context that was active when the current context was constructed.
Type *PreviousContext() const
Returns a PropertyPath which can be used to access the named property.
PropertyPath Property( string:: Fragment property_path )
default constructor.
PropertyPath()
Deserialize text using a StandardSerializer.
FunctionParameter read( const string:: Fragment & text, int index = 0 )
Reads binary data.
virtual size_type Read( void * buffer, size_type bufmax ) = 0
string::String Read() const
bool Read( string::MutableString ) const
void Read( Reflector & reflector ) const
bool Read( string::String& ) const
Reads the array and stores the value into the Variant.
virtual bool ReadData( const void * , unsigned item_index, Variant & ) const = 0
Reads this property with the Variant value.
virtual bool ReadData( const void * , Variant & ) const = 0
Reads the value for key.
virtual bool ReadData( const void * in, const Variant & key, Variant & value ) const = 0
int ReadEnum( const void * )
Reads a property using a StandardSerializer to format the data.
bool ReadProperty( const Persistent * , string:: Fragment path, string:: String & value ) const
Reads a reference property (a property representing a Dynamic *).
bool ReadRefProperty( const Persistent * , string:: Fragment path, Dynamic *& value ) const
bool ReadStringProperty( const Persistent * , string:: Fragment path, string:: String & value ) const
Easy way to read data templated on data type.
template<typename T> bool ReadValue( T & data ) const
Reads this variant as typeof(value).
template<typename T> bool ReadValue( T & value ) const
Assign (mutable) params (held in a variant) to parameter, using a chainable method.
FunctionParameter ref( Variant & value, int index = 0 )
Assigns a reference to the variant.
bool Ref( const Variant & value )
Refs the Variant to the array index.
virtual bool RefData( const void * in, void * out, unsigned item_index, Variant & ) const = 0
Refs this property into the Variant value.
virtual bool RefData( const void * , void * , Variant & ) const = 0
References a Dynamic *.
virtual bool Reference( Dynamic * object ) = 0
Adds the object to the list of objects known to this serializer.
virtual bool Reference( const Dynamic * object ) = 0
Writes “@<<count>>” where count is the number of references made so far.
bool Reference( const Dynamic * object )
This function is available in the reflection definition.
inline void ReflectConstructor() const
Builds a serializing reflector
Reflector( Serializer & )
Template version of Ref.
template<typename T> bool RefValue( T & value )
Registers a cast from type from to this type.
void RegisterConversion( const Type * from, void (*)(void *, const void *) )
Registers a function in this context.
bool RegisterFunction( string:: ConstString name, const function:: Function * function, bool take_ownership = false )
Adds the function to the function map.
void RegisterFunction( const char * name, const function:: Function * )
Like RegisterFunction, but takes a regular C function pointer, creates the function::Function object wrapper and marks it for deletion.
template<typename FunctionType> bool RegisterFunction( string:: ConstString name, FunctionType function )
Checks if the array/vector represented by this property is resizable.
virtual bool Resizable( const void * ) const = 0
Resizes the array/vector in the object.
virtual bool Resize( void * , unsigned size ) const = 0
static bool ResolvePropertyPath( PropertyPath & result, const Persistent * , string:: Fragment path )
Finds a string in the string, in reverse.
size_type rfind( const char * s, size_type pos = npos, size_type length = npos ) const
virtual int Run( int argc, char * argv[] ) = 0