Skip to content

Class Ase::WritNode

ClassList > Ase > WritNode

One entry in a Writ serialization document.

  • #include <serialize.hh>

Public Functions

Type Name
WritNode (Writ & writ, ValueP vp=std::make_shared< Value >(Value::empty_value))
double as_double () const
int64 as_int () const
String as_string () const
size_t count () const
WritNode front (const String & fieldname)
bool has (const String & key) const
bool in_load () const
Return true during deserialization.
bool in_save () const
Return true during serialization.
Value::Type index () const
StringS keys () const
bool loadable (const String & key) const
True if in_load() && has (key) .
bool operator& (T & v)
Serialization operator.
bool operator& (const WritLink & l)
Write an object link during saving, queue a deferred pointer during loading.
bool operator<< (const T & v)
bool operator>> (T & v)
WritNode operator[] (const String & fieldname)
void purge_value ()
Clean up defaults in Value .
WritNode push ()
Append new WritNode for serializing arrays duringin_save() .
String repr () const
bool serialize (T & typval, const String & fieldname="", const StringS & typedata=StringS())
bool serialize (std::vector< T > & vec, const String & fieldname="", const StringS & typedata=StringS())
bool serialize (ValueS & vec, const String & fieldname="", const StringS & typedata=StringS())
bool serialize (ValueR & rec, const String & fieldname="", const StringS & typedata=StringS())
bool serialize (Value & val, const String & fieldname="", const StringS & typedata=StringS())
bool serialize (Serializable & sobj)
bool serialize (std::tuple< T... > & tup, const String & fieldname="", const StringS & typedata=StringS())
bool serialize (String & string, const String & fieldname, const StringS & typedata)
bool skip_emptystring () const
Omit empty strings during in_save() __
bool skip_zero () const
Omit zero integers or floats during in_save() __
WritNodeS to_nodes ()
Create std::vector< WritNode > for serialized arrays duringin_load() .
Value & value ()
Access the Value of this node.
Writ & writ ()
Access the Writ of this node.

Public Functions Documentation

function WritNode

Ase::WritNode::WritNode (
    Writ & writ,
    ValueP vp=std::make_shared< Value >(Value::empty_value)
) 

function as_double

inline double Ase::WritNode::as_double () const

function as_int

inline int64 Ase::WritNode::as_int () const

function as_string

inline String Ase::WritNode::as_string () const

function count

inline size_t Ase::WritNode::count () const

function front

inline WritNode Ase::WritNode::front (
    const String & fieldname
) 

function has

inline bool Ase::WritNode::has (
    const String & key
) const

function in_load

inline bool Ase::WritNode::in_load () const

function in_save

inline bool Ase::WritNode::in_save () const

function index

inline Value::Type Ase::WritNode::index () const

function keys

inline StringS Ase::WritNode::keys () const

function loadable

inline bool Ase::WritNode::loadable (
    const String & key
) const

function operator&

template<typename T>
inline bool Ase::WritNode::operator& (
    T & v
) 

function operator&

bool Ase::WritNode::operator& (
    const WritLink & l
) 

function operator<<

template<typename T>
inline bool Ase::WritNode::operator<< (
    const T & v
) 

function operator>>

template<typename T>
inline bool Ase::WritNode::operator>> (
    T & v
) 

function operator[]

inline WritNode Ase::WritNode::operator[] (
    const String & fieldname
) 

function purge_value

void Ase::WritNode::purge_value () 

function push

WritNode Ase::WritNode::push () 

function repr

inline String Ase::WritNode::repr () const

function serialize [1/8]

template<class T, class E>
inline bool Ase::WritNode::serialize (
    T & typval,
    const String & fieldname="",
    const StringS & typedata=StringS ()
) 

function serialize [2/8]

template<class T>
inline bool Ase::WritNode::serialize (
    std::vector< T > & vec,
    const String & fieldname="",
    const StringS & typedata=StringS ()
) 

function serialize [3/8]

inline bool Ase::WritNode::serialize (
    ValueS & vec,
    const String & fieldname="",
    const StringS & typedata=StringS ()
) 

function serialize [4/8]

inline bool Ase::WritNode::serialize (
    ValueR & rec,
    const String & fieldname="",
    const StringS & typedata=StringS ()
) 

function serialize [5/8]

inline bool Ase::WritNode::serialize (
    Value & val,
    const String & fieldname="",
    const StringS & typedata=StringS ()
) 

function serialize [6/8]

bool Ase::WritNode::serialize (
    Serializable & sobj
) 

function serialize [7/8]

template<class ... T>
inline bool Ase::WritNode::serialize (
    std::tuple< T... > & tup,
    const String & fieldname="",
    const StringS & typedata=StringS ()
) 

function serialize [8/8]

template<>
inline bool Ase::WritNode::serialize (
    String & string,
    const String & fieldname,
    const StringS & typedata
) 

function skip_emptystring

inline bool Ase::WritNode::skip_emptystring () const

function skip_zero

inline bool Ase::WritNode::skip_zero () const

function to_nodes

WritNodeS Ase::WritNode::to_nodes () 

function value

inline Value & Ase::WritNode::value () 

function writ

inline Writ & Ase::WritNode::writ () 


The documentation for this class was generated from the following file /__w/anklang/anklang/ase/serialize.hh