Flag an error condition on this Reflector.
void Fail()
A FILE * based InputStream
class FileInputStream : public InputStream
FileInputStream( std:: FILE * file ) : mFile(file)
A FILE * based OutputStream
class FileOutputStream : public OutputStream
FileOutputStream( std:: FILE * file ) : mFile(file)
SharedString Find( const Fragment & ) const
Finds any of a set of characters in the string.
size_type find_first_of( const Fragment & , size_type pos = 0 ) const
Finds a character in the string, in reverse.
size_type find_last_of( char ch, size_type pos = npos ) const
Finds a function in this class’ FunctionMap or a parent class.
const function::Function *FindFunction( string:: Fragment name ) const
Finds a property in this class’ PropertyMap or a parent class.
const Property *FindProperty( string:: Fragment name ) const
BlockString FindString( const Fragment & ) const
Retrieves a type by name.
static Type *FindType( string::FoundSharedString )
Retrieves a type by name.
static Type *FindType( const char * )
The first class in a NULL terminated chain of classes to load in the next Type::LoadTypes.
static Type *FirstTypeToLoad()
Calls a callback with every key in the map.
virtual void ForEachKey( const void * in, void (*)(const Variant &key, void *ctx), void * ctx = 0 ) const = 0
prints into the string, like printf.
size_type format( const char * format, ... )
A shared string that is always found, to allow easy construction/passing without worrying about adding new strings.
class FoundSharedString : public SharedString
A Fragment is the most basic string type in the reflect string suite.
class ReflectExport( reflect ) Fragment
Casts this string to a Fragment
operator Fragment() const
Constructs a piece string from a character pointer to NUL terminated data.
Fragment( const char * s )
Casts this string to a Fragment
operator Fragment() const
bool Write( string::Fragment ) const
Builds a variant from an Type *, opaque pair.
static Variant FromConstOpaque( const Type * type, const void * opaque )
Builds a Variant which wraps a const value.
template<typename T> static Variant FromConstRef( const T & value )
BlockString FromIndex( int index ) const
Builds a variant from an Type *, opaque pair.
static Variant FromOpaque( const Type * type, void * opaque )
Builds a Variant which can references a value.
template<typename T> static Variant FromRef( T & value )
Creates a variant holding a copy of the value, without using reflection at all.
template<typename T> static Variant FromStaticValue( const T & value )
Deserializes with the StandardSerializer, at least a Type must be bound.
bool FromString( string::Fragment )
Creates a variant holding a copy of the value.
template<typename T> static Variant FromValue( const T & value )
A function object provides a virtual inteface to a function.
class ReflectExport( reflect ) Function
Returns a Function which represents the named function.
const function::Function *Function( string:: Fragment function_name ) const
Function( const char * name, const Type * object_type, ParameterTypeFun arg_type_fun, const Type * result_type )
Used to help register functions in a reflection definition.
FunctionCollector Functions
The map of functions registered on this type.
FunctionMap *mFunctions
Runs the garbage collector.
void GC() const
the type of item pointers in an array of Dynamic *, requires IsArray() and IsRef() to be true.
const Class *GetArrayItemRefClass() const
the type of items in an array, requires IsArray() to be true.
const Type *GetArrayItemType() const
The dynamic Class of the castable.
virtual ClassType *GetClass() const
The current (most recently constructed) active context.
static Type *GetContext()
the data class of the property.
const Type *GetDataType() const
returns the deserializer represented by this Reflector
Deserializer &GetDeserializer() const
Returns the native context pointer.
JSContext *GetJSContext() const
The type of item representing map keys.
const Type *GetMapKeyType() const
The type of item representing map values.
const Class *GetMapRefValueClass() const
The type of item representing map values.
const Type *GetMapValueType() const
const Type *GetPropertyType( const Persistent * , string:: Fragment path ) const
the type of reference of the property.
const Class *GetRefClass() const
JSRuntime *GetRuntime() const
returns the serializer represented by this Reflector
Serializer &GetSerializer() const
const MemberType &( ObjectType::*mGetter )() const
void ( ObjectType::*mGetter )(MemberType &) const
MemberType ( ObjectType::*mGetter )() const
retrieves the type of this path as an enum.
NormalizedType GetType() const
Check the type of this variant.
const Type *GetType() const
Checks if the map has an element for the given key.
virtual bool HasKey( const void * in, const Variant & key ) const = 0