NDDEM
Public Member Functions | Private Attributes | List of all members
cereal::BinaryInputArchive Class Reference

An input archive designed to load data saved using BinaryOutputArchive. More...

#include <binary.hpp>

+ Inheritance diagram for cereal::BinaryInputArchive:

Public Member Functions

 BinaryInputArchive (std::istream &stream)
 Construct, loading from the provided stream. More...
 
 ~BinaryInputArchive () CEREAL_NOEXCEPT=default
 
void loadBinary (void *const data, std::streamsize size)
 Reads size bytes of data from the input stream. More...
 
- Public Member Functions inherited from cereal::InputArchive< BinaryInputArchive, AllowEmptyClassElision >
 InputArchive (BinaryInputArchive *const derived)
 Construct the output archive. More...
 
InputArchiveoperator= (InputArchive const &)=delete
 
BinaryInputArchiveoperator() (Types &&... args)
 Serializes all passed in data. More...
 
void serializeDeferments ()
 Serializes any data marked for deferment using defer. More...
 
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...
 
BinaryInputArchiveoperator& (T &&arg)
 Serializes passed in data. More...
 
BinaryInputArchiveoperator>> (T &&arg)
 Serializes passed in data. More...
 
- Public Member Functions inherited from cereal::detail::InputArchiveBase
 InputArchiveBase ()=default
 
 InputArchiveBase (InputArchiveBase &&) CEREAL_NOEXCEPT
 
InputArchiveBaseoperator= (InputArchiveBase &&) CEREAL_NOEXCEPT
 
virtual ~InputArchiveBase () CEREAL_NOEXCEPT=default
 

Private Attributes

std::istream & itsStream
 

Additional Inherited Members

- Public Types inherited from cereal::InputArchive< BinaryInputArchive, AllowEmptyClassElision >
using is_loading = std::true_type
 Indicates this archive is intended for loading. More...
 
using is_saving = std::false_type
 Indicates this archive is not intended for saving. More...
 

Detailed Description

An input archive designed to load data saved using BinaryOutputArchive.

Constructor & Destructor Documentation

◆ BinaryInputArchive()

cereal::BinaryInputArchive::BinaryInputArchive ( std::istream &  stream)
inline

Construct, loading from the provided stream.

◆ ~BinaryInputArchive()

cereal::BinaryInputArchive::~BinaryInputArchive ( )
default

Member Function Documentation

◆ loadBinary()

void cereal::BinaryInputArchive::loadBinary ( void *const  data,
std::streamsize  size 
)
inline

Reads size bytes of data from the input stream.

Member Data Documentation

◆ itsStream

std::istream& cereal::BinaryInputArchive::itsStream
private

The documentation for this class was generated from the following file: