|
template<typename STREAM , typename F , typename... ARGS> |
STREAM & | deserializePtr (STREAM &_stream, F _f, ARGS &&..._args) |
| Deserialize a pointer from stream. Functor f must return a pointer which is constructed from a factory with an id. If pointer is not null, it will be deserialized from stream. Otherwise, a serialization exception is thrown. More...
|
|
template<typename STREAM , typename T , typename... ARGS> |
STREAM & | deserialize (STREAM &_stream, T &_t, ARGS &&..._args) |
| Deserialize object of type T from stream with optional additional arguments. More...
|
|
template<typename T , typename STREAM > |
T | deserializeReturn (STREAM &_stream, T const _default=T()) |
| Deserialize object of type T and return its value. More...
|
|
template<typename STREAM , typename T > |
STREAM & | serialize (STREAM &_stream, T const &_t) |
| Serialize object to stream. More...
|
|
Namespace for serialization functionality.
template<typename STREAM , typename F , typename... ARGS>
STREAM& omni::serialization::deserializePtr |
( |
STREAM & |
_stream, |
|
|
F |
_f, |
|
|
ARGS &&... |
_args |
|
) |
| |
Deserialize a pointer from stream. Functor f must return a pointer which is constructed from a factory with an id. If pointer is not null, it will be deserialized from stream. Otherwise, a serialization exception is thrown.
81 return traits::ReadPtr(_args ...)(_stream, _f);