Untyped specialization of bonded<T>, used for dynamic binding (i.e. schema known at runtime) More...
Public Member Functions | |
bonded (Reader data, const RuntimeSchema &schema, bool base=false) | |
Initialize from serialized data and runtime schema. | |
bonded (const bonded &other) | |
Copy constructor. | |
template<typename T, typename ReaderT> | |
bonded (const bonded< T, ReaderT > &other) | |
Explicit cast from bonded<T> | |
bonded (bonded &&other) BOND_NOEXCEPT_IF(&&std | |
Move constructor. | |
template<typename Protocols = BuiltInProtocols, typename Writer> | |
boost::disable_if< uses_marshaled_bonded< typenameWriter::Reader > >::type | Serialize (Writer &output) const |
Serialize bonded using specified protocol writer. | |
template<typename T, typename Protocols = BuiltInProtocols> | |
T | Deserialize () const |
Deserialize an object of type T. | |
template<typename Protocols = BuiltInProtocols, typename T> | |
void | Deserialize (T &var) const |
Deserialize to an object of type T. | |
template<typename Protocols = BuiltInProtocols, typename T> | |
boost::enable_if< uses_marshaled_bonded< Reader, T > >::type | Deserialize (bonded< T > &var) const |
Deserialize to a bonded<T> | |
template<typename Protocols = BuiltInProtocols, typename T> | |
boost::disable_if< uses_marshaled_bonded< Reader, T > >::type | Deserialize (bonded< T > &var) const |
Deserialize to a bonded<T> | |
void | Skip () |
Skip struct data in the underlying payload. | |
bonded () | |
Default constructor. | |
bonded (const bonded &bonded) | |
Copy constructor. | |
bonded (bonded &&bonded) BOND_NOEXCEPT_IF(&&std | |
Move constructor. | |
bonded (const bonded< U, ReaderT > &bonded) | |
Explicit up/down-casting from/to bonded of a derived type. | |
bonded (const U &value) | |
Explicit initialization from an instance of U which is convertible to Reader. | |
bonded (Reader data, bool base=false) | |
Initialize from serialized data. | |
bonded (const bonded< void, ReaderT > &bonded) | |
Explicit cast from bonded<void> | |
operator bonded< U, ReaderT > () const | |
Implicit up-casting to bonded of a base type. | |
operator bonded< void, ReaderT > () const | |
Implicit conversion to bonded<void> | |
void | Serialize (Writer &output) const |
Serialize bonded using specified protocol writer. | |
X | Deserialize () const |
Deserialize an object of type X. | |
void | Deserialize (X &var) const |
Deserialize to an object of type X. | |
boost::enable_if< is_marshaled_bonded< void, Reader, U > >::type | Deserialize (bonded< U > &var) const |
Deserialize to a bonded | |
void | Merge (const X &var) |
Update bonded<T> payload by merging it with an object of type X. | |
void | Skip () |
Skip struct data in the underlying payload. | |
bool | operator== (const bonded &rhs) const |
Compare for equality. | |
Untyped specialization of bonded<T>, used for dynamic binding (i.e. schema known at runtime)
See User's Manual
bond::bonded< void, Reader >::bonded | ( | Reader | data, |
const RuntimeSchema & | schema, | ||
bool | base = false ) |
Initialize from serialized data and runtime schema.
bond::bonded< void, Reader >::bonded | ( | const bonded< void, Reader > & | other | ) |
Copy constructor.
|
explicit |
Explicit cast from bonded<T>
bond::bonded< void, Reader >::bonded | ( | bonded< void, Reader > && | other | ) | && |
Move constructor.
bond::bonded< void, Reader >::bonded | ( | ) |
Default constructor.
bond::bonded< void, Reader >::bonded | ( | const bonded< void, Reader > & | bonded | ) |
Copy constructor.
bond::bonded< void, Reader >::bonded | ( | bonded< void, Reader > && | bonded | ) | && |
Move constructor.
|
explicit |
Explicit up/down-casting from/to bonded of a derived type.
|
explicit |
Explicit initialization from an instance of U which is convertible to Reader.
When Reader
is an instance of ProtocolReader
template, value can be one of:
T
; will store a copy of the objectboost::shared_ptr<U>
to an object convertible to T
; will store an up-casted shared_ptr
boost::reference_wrapper<U>
to an object convertible to T
; will store an up-casted raw pointer to the object
|
explicit |
Initialize from serialized data.
|
explicit |
Explicit cast from bonded<void>
X bond::bonded< void, Reader >::Deserialize | ( | ) | const |
Deserialize an object of type X.
T bond::bonded< void, Reader >::Deserialize | ( | ) | const |
Deserialize an object of type T.
boost::enable_if< uses_marshaled_bonded< Reader, T > >::type bond::bonded< void, Reader >::Deserialize | ( | bonded< T > & | var | ) | const |
Deserialize to a bonded<T>
boost::disable_if< uses_marshaled_bonded< Reader, T > >::type bond::bonded< void, Reader >::Deserialize | ( | bonded< T > & | var | ) | const |
Deserialize to a bonded<T>
boost::enable_if< is_marshaled_bonded< void, Reader, U > >::type bond::bonded< void, Reader >::Deserialize | ( | bonded< U > & | var | ) | const |
Deserialize to a bonded
void bond::bonded< void, Reader >::Deserialize | ( | T & | var | ) | const |
Deserialize to an object of type T.
void bond::bonded< void, Reader >::Deserialize | ( | X & | var | ) | const |
Deserialize to an object of type X.
void bond::bonded< void, Reader >::Merge | ( | const X & | var | ) |
Update bonded<T> payload by merging it with an object of type X.
bond::bonded< void, Reader >::operator bonded< U, ReaderT > | ( | ) | const |
Implicit up-casting to bonded of a base type.
bond::bonded< void, Reader >::operator bonded< void, ReaderT > | ( | ) | const |
Implicit conversion to bonded<void>
bool bond::bonded< void, Reader >::operator== | ( | const bonded< void, Reader > & | rhs | ) | const |
Compare for equality.
Returns true if both bonded
point to the same instance of T
or the same input stream. It does not compare values of objects T
or contents of input streams.
void bond::bonded< void, Reader >::Serialize | ( | Writer & | output | ) | const |
Serialize bonded using specified protocol writer.
boost::disable_if< uses_marshaled_bonded< typenameWriter::Reader > >::type bond::bonded< void, Reader >::Serialize | ( | Writer & | output | ) | const |
Serialize bonded using specified protocol writer.
void bond::bonded< void, Reader >::Skip | ( | ) |
Skip struct data in the underlying payload.
void bond::bonded< void, Reader >::Skip | ( | ) |
Skip struct data in the underlying payload.