#include <serializable.hpp>
◆ ~Serializable()
virtual handlegraph::Serializable::~Serializable |
( |
| ) |
|
|
virtualdefault |
◆ deserialize() [1/2]
void handlegraph::Serializable::deserialize |
( |
const std::string & |
filename | ) |
|
|
virtual |
Sets the contents of this object to the contents of a serialized object from a file. The serialized object must be from the same implementation of this interface as is calling deserialize(). Can only be called on an empty object.
Reimplemented in handlegraph::TriviallySerializable.
◆ deserialize() [2/2]
void handlegraph::Serializable::deserialize |
( |
std::istream & |
in | ) |
|
|
virtual |
Sets the contents of this object to the contents of a serialized object from an istream. The serialized object must be from the same implementation of the interface as is calling deserialize(). Can only be called on an empty object.
Reimplemented in handlegraph::TriviallySerializable.
◆ deserialize_members()
virtual void handlegraph::Serializable::deserialize_members |
( |
std::istream & |
in | ) |
|
|
protectedpure virtual |
Underlying implementation to "deserialize" method.
Implemented in xg::XG.
◆ get_magic_number()
virtual uint32_t handlegraph::Serializable::get_magic_number |
( |
| ) |
const |
|
pure virtual |
Returns a number that is specific to the serialized implementation for type checking. Does not depend on the contents of any particular instantiation (i.e. behaves as if static, but cannot be static and virtual).
Implemented in xg::XG.
◆ serialize() [1/4]
void handlegraph::Serializable::serialize |
( |
const std::string & |
filename | ) |
|
|
virtual |
◆ serialize() [2/4]
void handlegraph::Serializable::serialize |
( |
const std::string & |
filename | ) |
const |
|
virtual |
◆ serialize() [3/4]
void handlegraph::Serializable::serialize |
( |
std::ostream & |
out | ) |
|
|
virtual |
◆ serialize() [4/4]
void handlegraph::Serializable::serialize |
( |
std::ostream & |
out | ) |
const |
|
virtual |
◆ serialize_members()
virtual void handlegraph::Serializable::serialize_members |
( |
std::ostream & |
out | ) |
const |
|
protectedpure virtual |
Underlying implementation for "serialize" method.
Implemented in xg::XG.
The documentation for this class was generated from the following files: