Increments the reference count on a pointer that the java runtime knows about.
template<typename T> void IncRef( T * object ) const
int Index() const
This class defines the interface most Deserializers use to read data.
class ReflectExport( reflect ) InputStream
check if this path result is an array property.
bool IsArray() const
check if this path result is an array data property.
bool IsArrayData() const
Checks if this function can be called with a const “this” pointer.
virtual bool IsConstMethod() const = 0
check if this path result is a Data property (not ref, array, map...)
bool IsData() const
check if this path result is not an array or map, (may be Data or Ref).
bool IsDatum() const
check if this path result is a map property.
bool IsMap() const
check if this path result is a map data property.
bool IsMapData() const
Checks if this function is a member function, and needs a “this” pointer to be called.
bool IsMethod() const
check if this path result is an Opaque property (just a Property::Serialize function with no associated structure or Type.
bool IsOpaque() const
check if this path result is a Ref, ArrayRef, or MapRef property
bool IsRef() const
returns the type of the items in the property.
virtual Type *ItemType() const = 0
Represents a javascript context
class ReflectExport( reflect_js ) JavaScriptContext
JavaScriptContext( const JavaScriptRuntime & = JavaScriptRuntime::SharedRuntime() )
Wraps a JSRuntime, a JSRuntime object represents a single JavaScript object space which can hold multiple contexts.
class ReflectExport( reflect_js ) JavaScriptRuntime : public utility::Shared<JavaScriptRuntime>
Retrieves the type of keys represented by this map property.
virtual const Type *KeyType() const = 0
the number of non-nul chars in this string.
size_type length() const
the current length of the string.
size_type length() const
SharedString Literal( const ConstString & )
Copies the data into the StringBlock.
void Load( const Fragment & data )
Saves “data” into a file using a StandardDeserializer.
template<typename Type> bool LoadFile( Type & data, string:: ConstString filename )
Initializes all types which have been static initialized.
static Type *LoadTypes()
gets a map item as a property path, requires IsMap() to be true.
PropertyPath MapItem( string:: Fragment key ) const
MapProperties represent key indexed data.
class ReflectExport( reflect ) MapProperty : public Property
MemberType ( ObjectType::*mMember )[]
MemberType ObjectType::*mMember
MemberType ObjectType::*mMember
MemberType ObjectType::*mMember
std::vector<Property *> mMembers
Type &( ObjectType::*mMutableAccess )()
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
class ReflectExport( reflect ) ObjectType : public Type
Provides reflection definitions for things reflected by ObjectType and its subclasses.
template<typename T> class ObjectType::DescriptionHelper : public Type::DescriptionHelper<T>
class ReflectExport( reflect ) ObjectType::FunctionIterator
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 )
This class defines the interface most Serializers use to write data.
class ReflectExport( reflect ) OutputStream