namespace bond More...
Namespaces | |
| namespace | reflection |
Classes | |
| class | blob |
| Memory blob. More... | |
| class | bonded |
| Represents data for a struct T known at compile-time. More... | |
| class | bonded< void, Reader > |
| Untyped specialization of bonded<T>, used for dynamic binding (i.e. schema known at runtime) More... | |
| class | CompactBinaryReader |
| Reader for Compact Binary Protocol. More... | |
| class | CompactBinaryWriter |
| Writer for Compact Binary Protocol. More... | |
| struct | CoreException |
| Exception used to indicate an error during serialization or deserialization. More... | |
| struct | DeserializingTransform |
| Base class for deserializing transforms. More... | |
| class | Exception |
| Base type for all Bond exceptions. More... | |
| class | FastBinaryReader |
| Reader for Fast Binary protocol. More... | |
| class | FastBinaryWriter |
| Writer for Fast Binary protocol. More... | |
| class | InputBuffer |
| Memory backed input stream. More... | |
| class | maybe< T, typename boost::disable_if< detail::has_allocator< T > >::type > |
Type used for fields with default values of nothing. More... | |
| class | maybe< T, typename boost::enable_if< detail::has_allocator< T > >::type > |
Type used for fields with default values of nothing. More... | |
| struct | ModifyingTransform |
| Base class for transforms which modify a Bond type instance. More... | |
| class | nullable< T, typename boost::disable_if< detail::use_value< T > >::type > |
| Nullable type. More... | |
| class | OutputMemoryStream |
| Memory backed output stream. More... | |
| class | RuntimeSchema |
| Represents runtime schema See User's Manual More... | |
| struct | SerializingTransform |
| Base class for serializing transforms. More... | |
| class | SimpleBinaryReader |
| Reader for Simple Binary protocol. More... | |
| class | SimpleBinaryWriter |
| Writer for Simple Binary protocol. More... | |
| class | SimpleJsonReader |
| Reader for Simple JSON. More... | |
| class | SimpleJsonWriter |
| Writer for Simple JSON. More... | |
| class | value< T, Reader, typename boost::enable_if_c< is_basic_type< T >::value &&!is_type_alias< T >::value >::type > |
| Represents value of type T serialized using protocol Reader. More... | |
Typedefs | |
| typedef OutputMemoryStream | OutputBuffer |
| Type alias for memory backed output stream using std::allocator. | |
namespace bond
| typedef OutputMemoryStream bond::OutputBuffer |
Type alias for memory backed output stream using std::allocator.
| bool bond::Apply | ( | const Transform & | transform | ) |
Apply transform to compile-time schema.
| bool bond::Apply | ( | const Transform & | transform, |
| const RuntimeSchema & | schema ) |
Apply transform to runtime schema.
Returns a blob with a copy of the data if the original one does not own the memory (i.e. constructed using raw memory), and the same blob otherwise.
| T bond::Deserialize | ( | Reader | input | ) |
Deserialize an object of type T from a protocol reader.
| T bond::Deserialize | ( | Reader | input, |
| const RuntimeSchema & | schema ) |
Deserialize an object of type T from a protocol reader using runtime schema.
| void bond::Deserialize | ( | Reader | input, |
| T & | obj ) |
Deserialize an object from a protocol reader.
| void bond::Deserialize | ( | Reader | input, |
| T & | obj, | ||
| const RuntimeSchema & | schema ) |
Deserialize an object from a protocol reader using runtime schema.
| const Map & bond::GetEnumNames | ( | ) |
Returns a const reference to a map of names for a user defined enum.
| const Map & bond::GetEnumValues | ( | ) |
Returns a const reference to a map of values for a user defined enum.
| RuntimeSchema bond::GetRuntimeSchema | ( | ) |
Returns an instance of RuntimeSchema for a user defined struct.
| void bond::Marshal | ( | const T & | obj, |
| Writer & | output ) |
Marshal an object using a protocol writer.
| void bond::Merge | ( | const T & | obj, |
| Reader | input, | ||
| Writer & | output ) |
Merge an object with serialize data and write the result using a protocol writer.
| bool bond::operator== | ( | const Variant & | variant, |
| bool | value ) |
Compares variant for equality against the provided boolean value.
| bool bond::operator== | ( | const Variant & | variant, |
| const char * | value ) |
Compares variant for equality against the provided string value.
| bool bond::operator== | ( | const Variant & | variant, |
| const std::string & | value ) |
Compares variant for equality against the provided string value.
| bool bond::operator== | ( | const Variant & | variant, |
| const std::wstring & | value ) |
Compares variant for equality against the provided wide string value.
| bool bond::operator== | ( | const Variant & | variant, |
| const wchar_t * | value ) |
Compares variant for equality against the provided wide string value.
| bool bond::operator== | ( | const Variant & | variant, |
| double | value ) |
Compares variant for equality against the provided floating point value.
| boost::enable_if< is_signed_int_or_enum< SignedT >, bool >::type bond::operator== | ( | const Variant & | variant, |
| SignedT | value ) |
Compares variant for equality against the provided signed integer or enum value.
| boost::enable_if< std::is_unsigned< UnsignedT >, bool >::type bond::operator== | ( | const Variant & | variant, |
| UnsignedT | value ) |
Compares variant for equality against the provided unsigned integer value.
| void bond::Serialize | ( | const T & | obj, |
| Writer & | output ) |
Serialize an object using a protocol writer.
| void bond::SetDeserializeMaxDepth | ( | uint32_t | value | ) |
Sets the maximum recursion depth permitted for deserialization operations.
| void bond::swap | ( | maybe< T > & | x, |
| maybe< T > & | y ) |
Swap two maybes.
| T bond::Unmarshal | ( | Buffer | input | ) |
Unmarshal an object of type T from data stream.
| void bond::Unmarshal | ( | Buffer | input, |
| bonded< T > & | obj ) |
Initialize a bonded<T> from data stream contained marshaled object.
| void bond::Unmarshal | ( | Buffer | input, |
| bonded< T > & | obj, | ||
| const RuntimeSchema & | schema ) |
Initialize a bonded<T> from data stream contained marshaled object using a runtime schema.
| T bond::Unmarshal | ( | Buffer | input, |
| const RuntimeSchema & | schema ) |
Unmarshal an object of type T from data stream using a runtime schema.
| void bond::Unmarshal | ( | Buffer | input, |
| T & | obj ) |
Unmarshal an object from data stream.
| void bond::Unmarshal | ( | Buffer | input, |
| T & | obj, | ||
| const RuntimeSchema & | schema ) |
Unmarshal an object from data stream using a runtime schema.
| bool bond::Validate | ( | const bonded< SchemaDef > & | src, |
| const RuntimeSchema & | dst ) |
Validate compatibility of schemas.
| src | Serialized source SchemaDef |
| dst | Destination schema |
| SchemaValidateException | if payload in source schema is incompatible with destination schema or the schema of source SchemaDef is unknown. |
| bool bond::Validate | ( | const RuntimeSchema & | src, |
| const bonded< SchemaDef > & | dst ) |
Validate compatibility of schemas.
| src | Source schema |
| dst | Serialized destination SchemaDef |
| SchemaValidateException | if payload in source schema is incompatible with destination schema or the schema of destination SchemaDef is unknown. |
| bool bond::Validate | ( | const RuntimeSchema & | src, |
| const RuntimeSchema & | dst ) |
Validate compatibility of schemas.
| src | Source schema |
| dst | Destination schema |
| SchemaValidateException | if payload in source schema is incompatible with destination schema. |
| bool bond::ValidateTwoWay | ( | const T1 & | s1, |
| const T2 & | s2 ) |
Validate two-way compatibility of schemas.
| s1 | Schema to compare |
| s2 | Schema to compare |
| SchemaValidateException | if payload in any one schema is incompatible with the other schema. |