|
| | InputArchive (ArchiveType *const self) |
| | Construct the output archive. More...
|
| |
|
template<class... Types> |
| ArchiveType & | operator() (Types &&...args) |
| | Serializes all passed in data.
|
| |
| std::shared_ptr< void > | getSharedPointer (std::uint32_t const id) |
| | Retrieves a shared pointer given a unique key for it. More...
|
| |
| void | registerSharedPointer (std::uint32_t const id, std::shared_ptr< void > ptr) |
| | Registers a shared pointer to its unique identifier. More...
|
| |
| std::string | getPolymorphicName (std::uint32_t const id) |
| | Retrieves the string for a polymorphic type given a unique key for it. More...
|
| |
| void | registerPolymorphicName (std::uint32_t const id, std::string const &name) |
| | Registers a polymorphic name string to its unique identifier. More...
|
| |
template<class ArchiveType, std::uint32_t Flags = 0>
class cereal::InputArchive< ArchiveType, Flags >
The base input archive class.
This is the base input archive for all input archives. If you create a custom archive class, it should derive from this, passing itself as a template parameter for the ArchiveType.
The base class provides all of the functionality necessary to properly forward data to the correct serialization functions.
Individual archives should use a combination of prologue and epilogue functions together with specializations of serialize, save, and load to alter the functionality of their serialization.
- Template Parameters
-
| ArchiveType | The archive type that derives from InputArchive |
| Flags | Flags to control advanced functionality. See the Flags enum for more information. |