Electroneum
binary_archive_base< Stream, IsSaving > Struct Template Reference

base for the binary archive type More...

#include <binary_archive.h>

Public Types

typedef Stream stream_type
 
typedef binary_archive_base< Stream, IsSaving > base_type
 
typedef boost::mpl::bool_< IsSaving > is_saving
 
typedef uint8_t variant_tag_type
 

Public Member Functions

 binary_archive_base (stream_type &s)
 
void tag (const char *)
 
void begin_object ()
 
void end_object ()
 
void begin_variant ()
 
void end_variant ()
 
stream_typestream ()
 

Protected Attributes

stream_typestream_
 

Detailed Description

template<class Stream, bool IsSaving>
struct binary_archive_base< Stream, IsSaving >

base for the binary archive type

It isn't used outside of this file, which its only purpse is to define the functions used for the binary_archive. Its a header, basically. I think it was declared simply to save typing...

Definition at line 59 of file binary_archive.h.

Member Typedef Documentation

◆ base_type

template<class Stream, bool IsSaving>
typedef binary_archive_base<Stream, IsSaving> binary_archive_base< Stream, IsSaving >::base_type

Definition at line 62 of file binary_archive.h.

◆ is_saving

template<class Stream, bool IsSaving>
typedef boost::mpl::bool_<IsSaving> binary_archive_base< Stream, IsSaving >::is_saving

Definition at line 63 of file binary_archive.h.

◆ stream_type

template<class Stream, bool IsSaving>
typedef Stream binary_archive_base< Stream, IsSaving >::stream_type

Definition at line 61 of file binary_archive.h.

◆ variant_tag_type

template<class Stream, bool IsSaving>
typedef uint8_t binary_archive_base< Stream, IsSaving >::variant_tag_type

Definition at line 65 of file binary_archive.h.

Constructor & Destructor Documentation

◆ binary_archive_base()

template<class Stream, bool IsSaving>
binary_archive_base< Stream, IsSaving >::binary_archive_base ( stream_type s)
inlineexplicit

Definition at line 67 of file binary_archive.h.

67 : stream_(s) { }
stream_type & stream_

Member Function Documentation

◆ begin_object()

template<class Stream, bool IsSaving>
void binary_archive_base< Stream, IsSaving >::begin_object ( )
inline

Definition at line 71 of file binary_archive.h.

71 { }

◆ begin_variant()

template<class Stream, bool IsSaving>
void binary_archive_base< Stream, IsSaving >::begin_variant ( )
inline

Definition at line 73 of file binary_archive.h.

73 { }

◆ end_object()

template<class Stream, bool IsSaving>
void binary_archive_base< Stream, IsSaving >::end_object ( )
inline

Definition at line 72 of file binary_archive.h.

72 { }

◆ end_variant()

template<class Stream, bool IsSaving>
void binary_archive_base< Stream, IsSaving >::end_variant ( )
inline

Definition at line 74 of file binary_archive.h.

74 { }

◆ stream()

template<class Stream, bool IsSaving>
stream_type& binary_archive_base< Stream, IsSaving >::stream ( void  )
inline

Definition at line 77 of file binary_archive.h.

77 { return stream_; }
stream_type & stream_
Here is the caller graph for this function:

◆ tag()

template<class Stream, bool IsSaving>
void binary_archive_base< Stream, IsSaving >::tag ( const char *  )
inline

Definition at line 70 of file binary_archive.h.

70 { }

Member Data Documentation

◆ stream_

template<class Stream, bool IsSaving>
stream_type& binary_archive_base< Stream, IsSaving >::stream_
protected

Definition at line 80 of file binary_archive.h.


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