Represents data for a struct T known at compile-time. More...
Public Member Functions | |
| bonded () | |
| Default constructor. | |
| bonded (const bonded &bonded) | |
| Copy constructor. | |
| bonded (bonded &&bonded) BOND_NOEXCEPT_IF(&&std | |
| Move constructor. | |
| template<typename U, typename ReaderT> | |
| bonded (const bonded< U, ReaderT > &bonded) | |
| Explicit up/down-casting from/to bonded of a derived type. | |
| template<typename U> | |
| 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. | |
| template<typename ReaderT> | |
| bonded (const bonded< void, ReaderT > &bonded) | |
Explicit cast from bonded<void> | |
| template<typename U, typename ReaderT> | |
| operator bonded< U, ReaderT > () const | |
| Implicit up-casting to bonded of a base type. | |
| template<typename ReaderT> | |
| operator bonded< void, ReaderT > () const | |
Implicit conversion to bonded<void> | |
| template<typename Protocols = BuiltInProtocols, typename Writer> | |
| void | Serialize (Writer &output) const |
| Serialize bonded using specified protocol writer. | |
| template<typename X = T, typename Protocols = BuiltInProtocols> | |
| X | Deserialize () const |
| Deserialize an object of type X. | |
| template<typename Protocols = BuiltInProtocols, typename X> | |
| void | Deserialize (X &var) const |
| Deserialize to an object of type X. | |
| template<typename Protocols = BuiltInProtocols, typename U> | |
| boost::enable_if< is_marshaled_bonded< T, Reader, U > >::type | Deserialize (bonded< U > &var) const |
| Deserialize to a bonded | |
| template<typename Protocols = BuiltInProtocols, typename X> | |
| 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. | |
Represents data for a struct T known at compile-time.
See User's Manual
| bond::bonded< T, Reader >::bonded | ( | ) |
Default constructor.
| bond::bonded< T, Reader >::bonded | ( | const bonded< T, Reader > & | bonded | ) |
Copy constructor.
| bond::bonded< T, Reader >::bonded | ( | bonded< T, 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_ptrboost::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< T, Reader >::Deserialize | ( | ) | const |
Deserialize an object of type X.
| boost::enable_if< is_marshaled_bonded< T, Reader, U > >::type bond::bonded< T, Reader >::Deserialize | ( | bonded< U > & | var | ) | const |
Deserialize to a bonded
| void bond::bonded< T, Reader >::Deserialize | ( | X & | var | ) | const |
Deserialize to an object of type X.
| void bond::bonded< T, Reader >::Merge | ( | const X & | var | ) |
Update bonded<T> payload by merging it with an object of type X.
| bond::bonded< T, Reader >::operator bonded< U, ReaderT > | ( | ) | const |
Implicit up-casting to bonded of a base type.
| bond::bonded< T, Reader >::operator bonded< void, ReaderT > | ( | ) | const |
Implicit conversion to bonded<void>
| bool bond::bonded< T, Reader >::operator== | ( | const bonded< T, 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< T, Reader >::Serialize | ( | Writer & | output | ) | const |
Serialize bonded using specified protocol writer.
| void bond::bonded< T, Reader >::Skip | ( | ) |
Skip struct data in the underlying payload.