Electroneum
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
json_archive< true > Struct Reference

#include <json_archive.h>

Inheritance diagram for json_archive< true >:
Inheritance graph
[legend]
Collaboration diagram for json_archive< true >:
Collaboration graph
[legend]

Public Member Functions

 json_archive (stream_type &s, bool indent=false)
 
template<class T >
void serialize_int (T v)
 
void serialize_blob (void *buf, size_t len, const char *delimiter="\"")
 
template<class T >
void serialize_varint (T &v)
 
void begin_string (const char *delimiter="\"")
 
void end_string (const char *delimiter="\"")
 
void begin_array (size_t s=0)
 
void delimit_array ()
 
void end_array ()
 
void write_variant_tag (const char *t)
 
- Public Member Functions inherited from json_archive_base< std::ostream, true >
 json_archive_base (stream_type &s, bool indent=false)
 
void tag (const char *tag)
 
void begin_object ()
 
void end_object ()
 
void begin_variant ()
 
void end_variant ()
 
std::ostream & stream ()
 

Static Public Member Functions

template<typename T >
static auto promote_to_printable_integer_type (T v) -> decltype(+v)
 

Private Attributes

size_t inner_array_size_
 

Additional Inherited Members

- Public Types inherited from json_archive_base< std::ostream, true >
typedef std::ostream stream_type
 
typedef json_archive_base< std::ostream, IsSaving > base_type
 
typedef boost::mpl::bool_< IsSaving > is_saving
 
typedef const char * variant_tag_type
 
- Protected Member Functions inherited from json_archive_base< std::ostream, true >
void make_indent ()
 
- Protected Attributes inherited from json_archive_base< std::ostream, true >
stream_typestream_
 
bool indent_
 
bool object_begin
 
size_t depth_
 

Constructor & Destructor Documentation

◆ json_archive()

json_archive< true >::json_archive ( stream_type s,
bool  indent = false 
)
inline

Member Function Documentation

◆ begin_array()

void json_archive< true >::begin_array ( size_t  s = 0)
inline

◆ begin_string()

void json_archive< true >::begin_string ( const char *  delimiter = "\"")
inline

◆ delimit_array()

void json_archive< true >::delimit_array ( )
inline

◆ end_array()

void json_archive< true >::end_array ( )
inline

◆ end_string()

void json_archive< true >::end_string ( const char *  delimiter = "\"")
inline

◆ promote_to_printable_integer_type()

template<typename T >
static auto json_archive< true >::promote_to_printable_integer_type ( T  v) -> decltype(+v)
inlinestatic

◆ serialize_blob()

void json_archive< true >::serialize_blob ( void *  buf,
size_t  len,
const char *  delimiter = "\"" 
)
inline

◆ serialize_int()

template<class T >
void json_archive< true >::serialize_int ( T  v)
inline

◆ serialize_varint()

template<class T >
void json_archive< true >::serialize_varint ( T v)
inline

◆ write_variant_tag()

void json_archive< true >::write_variant_tag ( const char *  t)
inline

Member Data Documentation

◆ inner_array_size_

size_t json_archive< true >::inner_array_size_
private

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