Unravel Engine C++ Reference
Loading...
Searching...
No Matches
cereal_optional_nvp.h File Reference
#include <ser20/ser20.hpp>
#include <ser20/details/traits.hpp>

Go to the source code of this file.

Namespaces

namespace  ser20
 

Macros

#define EXPAND(x)
 
#define GET_CEREAL_OPTIONAL_NVP_MACRO(_1, _2, _3, NAME, ...)
 
#define CEREAL_OPTIONAL_NVP(...)
 
#define CEREAL_OPTIONAL_NVP_2(ar, T)
 
#define CEREAL_OPTIONAL_NVP_3(ar, T, P)
 

Functions

template<class Archive , class T >
std::enable_if_t< traits::is_same_archive_v< Archive, JSONInputArchive >||traits::is_same_archive_v< Archive, XMLInputArchive >||traits::is_same_archive_v< Archive, YAMLInputArchive >, bool > ser20::make_optional_nvp (Archive &ar, const char *name, T &&value)
 
template<class Archive , class T >
void ser20::make_optional_nvp (OutputArchive< Archive > &ar, const char *name, T &&value)
 
template<class Archive , class T , class Predicate >
void ser20::make_optional_nvp (OutputArchive< Archive > &ar, const char *name, T &&value, Predicate predicate)
 
template<class Archive , class T , class Predicate >
std::enable_if_t< traits::is_same_archive_v< Archive, JSONInputArchive >||traits::is_same_archive_v< Archive, XMLInputArchive >||traits::is_same_archive_v< Archive, YAMLInputArchive >, bool > ser20::make_optional_nvp (Archive &ar, const char *name, T &&value, Predicate predicate)
 

Macro Definition Documentation

◆ CEREAL_OPTIONAL_NVP

#define CEREAL_OPTIONAL_NVP ( ...)
Value:
#define GET_CEREAL_OPTIONAL_NVP_MACRO(_1, _2, _3, NAME,...)
#define CEREAL_OPTIONAL_NVP_2(ar, T)
#define EXPAND(x)
#define CEREAL_OPTIONAL_NVP_3(ar, T, P)

Definition at line 87 of file cereal_optional_nvp.h.

◆ CEREAL_OPTIONAL_NVP_2

#define CEREAL_OPTIONAL_NVP_2 ( ar,
T )
Value:
std::enable_if_t< traits::is_same_archive_v< Archive, JSONInputArchive >||traits::is_same_archive_v< Archive, XMLInputArchive >||traits::is_same_archive_v< Archive, YAMLInputArchive >, bool > make_optional_nvp(Archive &ar, const char *name, T &&value)

Definition at line 90 of file cereal_optional_nvp.h.

◆ CEREAL_OPTIONAL_NVP_3

#define CEREAL_OPTIONAL_NVP_3 ( ar,
T,
P )
Value:

Definition at line 91 of file cereal_optional_nvp.h.

◆ EXPAND

#define EXPAND ( x)
Value:
float x

Definition at line 85 of file cereal_optional_nvp.h.

◆ GET_CEREAL_OPTIONAL_NVP_MACRO

#define GET_CEREAL_OPTIONAL_NVP_MACRO ( _1,
_2,
_3,
NAME,
... )
Value:
NAME

Definition at line 86 of file cereal_optional_nvp.h.