DNA Calib 1.1
Project brief
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
terse::JSONInputArchive< TStream, TSize, TOffset > Class Template Reference

#include <InputArchive.h>

Inheritance diagram for terse::JSONInputArchive< TStream, TSize, TOffset >:
Inheritance graph
Collaboration diagram for terse::JSONInputArchive< TStream, TSize, TOffset >:
Collaboration graph

Public Member Functions

 JSONInputArchive (TStream *stream_)
 
- Public Member Functions inherited from terse::ExtendableJSONInputArchive< JSONInputArchive< TStream, std::uint32_t, std::uint32_t >, TStream, std::uint32_t, std::uint32_t >
 ExtendableJSONInputArchive (JSONInputArchive< TStream, std::uint32_t, std::uint32_t > *extender, TStream *stream_)
 
bool isOk () const
 
void sync ()
 
void label (const char *value)
 
- Public Member Functions inherited from terse::Archive< JSONInputArchive< TStream, std::uint32_t, std::uint32_t > >
 Archive (JSONInputArchive< TStream, std::uint32_t, std::uint32_t > *impl_)
 
bool isOk ()
 
void sync ()
 
void label (const char *value)
 
void operator() (Args &&... args)
 
JSONInputArchive< TStream, std::uint32_t, std::uint32_t > & operator<< (TSerializable &source)
 
JSONInputArchive< TStream, std::uint32_t, std::uint32_t > & operator>> (TSerializable &dest)
 
void * getUserData () const
 
void setUserData (void *data)
 

Private Types

using BaseArchive = ExtendableJSONInputArchive< JSONInputArchive, TStream, TSize, TOffset >
 

Private Member Functions

template<typename T >
void process (T &&dest)
 

Private Attributes

friend Archive< JSONInputArchive >
 

Additional Inherited Members

- Public Types inherited from terse::ExtendableJSONInputArchive< JSONInputArchive< TStream, std::uint32_t, std::uint32_t >, TStream, std::uint32_t, std::uint32_t >
using SizeType = std::uint32_t
 
using OffsetType = std::uint32_t
 
- Protected Member Functions inherited from terse::ExtendableJSONInputArchive< JSONInputArchive< TStream, std::uint32_t, std::uint32_t >, TStream, std::uint32_t, std::uint32_t >
void process (Transparent< T > &&dest)
 
void process (Anchor< OffsetType > &)
 
void process (ArchiveOffset< OffsetType > &dest)
 
void process (typename ArchiveOffset< OffsetType >::Proxy &)
 
void process (typename ArchiveOffset< OffsetType >::Proxy &&)
 
void process (ArchiveSize< SizeType, OffsetType > &dest)
 
void process (typename ArchiveSize< SizeType, OffsetType >::Proxy &)
 
void process (typename ArchiveSize< SizeType, OffsetType >::Proxy &&)
 
void process (Blob< T, Args... > &dest)
 
std::enable_if< traits::has_load_member< T >::value, void >::type process (T &dest)
 
std::enable_if< traits::has_serialize_member< T >::value, void >::type process (T &dest)
 
std::enable_if< traits::has_load_function< T >::value, void >::type process (T &dest)
 
std::enable_if< traits::has_serialize_function< T >::value, void >::type process (T &dest)
 
std::enable_if<!traits::has_load_member< T >::value &&!traits::has_serialize_member< T >::value &&!traits::has_load_function< T >::value &&!traits::has_serialize_function< T >::value, void >::type process (T &dest)
 
void process (char &dest)
 
void process (std::uint8_t &dest)
 
void process (std::int8_t &dest)
 
void process (std::array< T, N > &dest)
 
void process (std::vector< T, Args... > &dest)
 
void process (DynArray< T, Args... > &dest)
 
void process (std::basic_string< T, Args... > &dest)
 
void process (std::pair< K, V > &dest)
 
void process (std::tuple< K, V > &dest)
 
- Protected Member Functions inherited from terse::Archive< JSONInputArchive< TStream, std::uint32_t, std::uint32_t > >
void dispatch (Head &&head)
 
void dispatch (Head &&head, Tail &&... tail)
 

Member Typedef Documentation

◆ BaseArchive

template<class TStream , typename TSize = std::uint32_t, typename TOffset = TSize>
using terse::JSONInputArchive< TStream, TSize, TOffset >::BaseArchive = ExtendableJSONInputArchive<JSONInputArchive, TStream, TSize, TOffset>
private

Constructor & Destructor Documentation

◆ JSONInputArchive()

template<class TStream , typename TSize = std::uint32_t, typename TOffset = TSize>
terse::JSONInputArchive< TStream, TSize, TOffset >::JSONInputArchive ( TStream *  stream_)
inlineexplicit
541 : BaseArchive{this, stream_} {
542 }
ExtendableJSONInputArchive< JSONInputArchive, TStream, TSize, TOffset > BaseArchive
Definition: json/InputArchive.h:537

Member Function Documentation

◆ process()

template<class TStream , typename TSize = std::uint32_t, typename TOffset = TSize>
template<typename T >
void terse::JSONInputArchive< TStream, TSize, TOffset >::process ( T &&  dest)
inlineprivate
546 {
547 BaseArchive::process(std::forward<T>(dest));
548 }
void process(Transparent< T > &&dest)
Definition: json/InputArchive.h:102

References terse::ExtendableJSONInputArchive< TExtender, TStream, TSize, TOffset >::process().

Member Data Documentation

◆ Archive< JSONInputArchive >

template<class TStream , typename TSize = std::uint32_t, typename TOffset = TSize>
friend terse::JSONInputArchive< TStream, TSize, TOffset >::Archive< JSONInputArchive >
private

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