Function 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
S
 SaveFile
 SerializationTag, SerializationTag
 Serialize
 Serialize(bool)
 Serialize(const Dynamic*), Serializer
 Serialize(const Dynamic*obj), StandardSerializer
 Serialize(double)
 Serialize(long)
 Serialize(unsigned long)
 SerializeData, StandardSerializer
 SerializeEnum
 SerializeItem, ArrayProperty
 SerializePointer, Class
 SerializeProperties, PersistentClass
 SerializeProperty
~Serializer, Serializer
 SerializeText
 Serializing, Reflector
 Set, Variant
 SetAccessors, EnumType
 SetBasicOperations, Type
 SetExecutionFunction, ApplicationClass
 SetName, Type
 SetParent, Type
 SetValue, Variant
 SharedRuntime, JavaScriptRuntime
 SharedString, SharedString
 SharedString(const char*string,const StringPool*owner), SharedString
 Sibling, Type
 size
 Size
 size(of the entire block), StringBlock
 StringPool, StringPool
 substr, Fragment
template<typename Type> bool SaveFile(const Type &data,
string::ConstString filename)
Saves “data” into a file using a StandardSerializer.
SerializationTag(const char *text,
TagType type)
Constructs a serialization tag with the given text and TagType.
void Serialize(const void *in,
void *out,
Reflector &reflector) const
Serializes the entire array/vector.
void Serialize(const void *in,
void *out,
Reflector &reflector) const
virtual void Serialize(const void *in,
void *out,
Reflector &reflector) const = 0
Reads or writes the represented data using a Reflector.
virtual void Serialize(const void *in,
void *out,
Reflector &reflector) const
Serialize defines how objects represented by this type are serialized.
void Serialize(Reflector &reflector) const
reads or writes this variant with a reflector.
virtual bool Serialize(bool) = 0
Emits a bool.
bool Serialize(bool)
Writes “true”/”false”.
virtual bool Serialize(const Dynamic *object) = 0
The object is serialized using its Category (see <Category.SerializeDynamic>), or, if the object has been <Reference>d, then the serializer should emit a backreference instead.
bool Serialize(const Dynamic *object)
Writes “#<<obj->GetClass()->GetCategory()->Name()>>” and then defers to obj->GetClass()->GetCategory()->SerializeDynamic(obj, Reflector(*this)).
virtual bool Serialize(double) = 0
Emits a float/double.
bool Serialize(double)
Writes “%#g”.
virtual bool Serialize(long) = 0
Emits an integer.
bool Serialize(long)
Writes “%ld”, e.g., 3 -> “3”
virtual bool Serialize(unsigned long) = 0
Emits an integer, maybe in hex.
bool Serialize(unsigned long)
Writes “0x%lX”, e.g., 32u -> “0x20”
bool SerializeData(const void *data,
unsigned nbytes)
Serializes nbytes of data as hex pairs A3 45 23 8F ...
virtual bool SerializeEnum(int value,
const EnumType *type) = 0
Emits an enum value or string.
bool SerializeEnum(int value,
const EnumType *clazz)
Writes the enum value as a bare string (no quotes).
virtual void SerializeItem(const void *in,
void *out,
unsigned index,
Reflector &reflector) const = 0
Reads/writes a single item to the reflector.
virtual void SerializePointer(const Dynamic *in,
Reflector &reflector) const
void SerializeProperties(const Persistent *,
Reflector &) const
virtual bool SerializeProperty(const void *object,
const Property *prop) = 0
bool SerializeProperty(const void *object,
const Property *prop)
Writes the property by deferring to its Property::Serialize method.
virtual ~Serializer()
virtual bool SerializeText(const char *text,
unsigned nbytes) = 0
Emits a string.
bool SerializeText(const char *text,
unsigned nbytes)
Writes nbytes of text as a string with quotes around it and some standard escapes.
bool Serializing() const
true when this reflector represents a Serializer
bool Set(const Variant &value)
Assigns a value to the variant.
void SetAccessors(int (*)(const void *),
void (*)(void *, int))
void SetBasicOperations(unsigned size,
unsigned alignment,
void *(*construct)(void *),
void *(*destruct)(void *))
Sets the factory function for this class.
void SetExecutionFunction(int (*)(int, char *[]))
void SetName(const char *name)
Sets the name of the type and calls RegisterName to it in a global map.
void SetParent(Type *parent)
Sets the parent (base class) of this Type.
template<typename T> bool SetValue(const &value)
Template version of Set.
static JavaScriptRuntime SharedRuntime()
SharedString()
Constructs an empty shared string.
SharedString(const char *string,
const StringPool *owner)
Constructs a shared string from a character pointer, used by StringPools.
Type *Sibling() const
The next sibling of this class, or itself if there are no siblings.
size_type size() const
same as length, for compatibility with std::string.
size_type size() const
the current length of the string.
virtual unsigned Size(const void *object) const = 0
Gets the current size of the array/vector in the object.
unsigned Size() const
The size of the object represented by this class.
size_type size()
explicit StringPool(const StringPool *parent =  NULL)
Fragment substr(size_type index,  
size_type amount =  npos) const
Makes a substr fragment from this one.
Close