A chararcter pointer to NUL terminated data.
const char *c_str() const
returns the string as a nul-terminated pointer to const char.
const char *c_str() const
a chararcter pointer to NUL terminated data.
const char *c_str() const
A chararcter pointer to NUL terminated data.
const char *c_str() const
Calls a method with a statically typed, but const, “this” pointer.
template<typename T> bool Call( const T * object, const Parameters & params, Variant & result = Variant::Void() ) const
Calls a non-method function without a “this” pointer.
bool Call( const Parameters & params, Variant & result = Variant::Void() ) const
Calls a method with a statically typed “this” pointer.
template<typename T> bool Call( T * object, const Parameters & params, Variant & result = Variant::Void() ) const
Calls this function with a variant object as self.
bool Call( const Variant & object, const Parameters & params, Variant & result = Variant::Void() ) const
Retrieves the argument index passed to the native function through a Variant.
static bool CallArgument( int index, Variant & variant )
Retrieves the number of arguments actually passed to the native function.
static int CallArgumentCount()
Retrieves the argument index as text (converted by javascript).
static const char *CallArgumentText( int index )
Retrieves the argument index as whatever (converted by Variant).
template<typename T> static bool CallArgumentValue( int index, T & value )
Retrieves the current context from within a javascript call.
static const JavaScriptContext *CallContext()
virtual bool CallInternal( const Variant & self, Variant * args, Variant & result ) const = 0
Returns the type of “this” pointer needed.
const Type *CallObjectType() const
Sets the return value of a void native function by variant.
static bool CallReturn( Variant & value )
Sets the return value of a void native function by value.
template<typename T> static bool CallReturnValue( const T & value )
checks if this variant can be used as a const reference to type.
bool CanConstRefAs( const Type * type ) const
Checks if a cast from the specified type exists.
virtual bool CanConvertFrom( const Type * from ) const
Checks if a cast from the specified type exists.
template<typename T> bool CanConvertFrom() const
checks if this variant is convertable to type.
bool CanReadAs( const Type * type ) const
checks if this variant can be used as a reference to type.
bool CanRefAs( const Type * type ) const
checks if this variant is convertable from type.
bool CanWriteAs( const Type * type ) const
the current capacity of the string.
size_type capacity() const
The object cast to a Dynamic if it is a subclass of this, or NULL otherwise.
Dynamic *Cast( Dynamic * object ) const
Flag an error condition on this Reflector if result is false.
Reflector &Check( bool result )
The first subclass of this class or NULL if there are no subclasses.
Type *Child() const
class ReflectExport( reflect ) Class : public ObjectType
Used in reflection definitions.
template<typename T> class Class::DescriptionHelper : public ObjectType::DescriptionHelper<T>
Returns the type of parameter at index, and changes is_mutable to true if the parameter is passed as a non-const reference.
const Type *ClassifyParameter( int index, bool & is_mutable ) const
The type of Class which reflects the castable.
typedef Class ClassType
This is the public static type of the Class represented by this signature type.
typedef typename T::ClassType ClassType
int compare( const Fragment & other ) const
Base class for implementing one serializer in terms of another.
class ReflectExport( reflect ) CompositeDeserializer : public Deserializer
Base class for implementing one serializer in terms of another.
class ReflectExport( reflect ) CompositeSerializer : public Serializer
const Type &( ObjectType::*mConstAccess )() const
const void *ConstOpaque() const
Builds a Variant which wraps a const value array (as a pointer).
template<typename T, unsigned size> static Variant FromConstRef( const T (&value)[size] )
Template version of ConstRef.
template<typename T> bool ConstRefValue( const T & value )
Persistent *Construct( void * ) const
Constructs an instance of this type.
void *Construct( void * ) const
Ensures that this variant can be Set.
bool Construct( const Type * type = 0, bool own_data = false )
A ConstString is a reflected string type which doesn’t own its data.
class ReflectExport( reflect ) ConstString
Casts this string to a ConstString
operator ConstString() const
constructs a const string wrapping a c string.
ConstString( const char * s )
Casts this string to a ConstString
operator ConstString() const
constructs an empty (“”) const string.
ConstString()
Converts this variant to another type, keeping the same (or “similar”) value.
bool ConvertToType( const Type * type )
Uses conversions registered with RegisterConversion.
virtual bool ConvertValue( void * opaque, const void * source, const Type * from ) const
SharedString Copy( const Fragment & )
A new instance of the class (if it’s not Abstract)
Persistent *Create() const
Template method which generates a generic Function object from a native function pointer.
template<typename FunctionType> inline const function::Function *CreateFunction( const char * name, FunctionType func )