Function operator>>

Summary

#include <src/c4/yml/node.hpp>

(1) template <class T>
    NodeRef const  & operator>>(T &v) const

(2) template <class T>
    NodeRef const  & operator>>(Key< T > v) const

(3) NodeRef const  & operator>>(Key< fmt::base64_wrapper > w) const

(4) NodeRef const  & operator>>(fmt::base64_wrapper w) const

Function overload

Synopsis

#include <src/c4/yml/node.hpp>

template <class T>
NodeRef const  & operator>>(T &v) const

Description

No description yet.

Source

Lines 480-491 in src/c4/yml/node.hpp.

template<class T>
inline NodeRef const& operator>> (T &v) const
{
    RYML_ASSERT( ! is_seed());
    RYML_ASSERT(valid());
    RYML_ASSERT(get() != nullptr);
    if( ! read(*this, &v))
    {
        c4::yml::error("could not deserialize value");
    }
    return *this;
}

Synopsis

#include <src/c4/yml/node.hpp>

template <class T>
NodeRef const  & operator>>(Key< T > v) const

Description

deserialize the node's key to the given variable

Source

Lines 514-522 in src/c4/yml/node.hpp.

template<class T>
inline NodeRef const& operator>> (Key<T> v) const
{
    RYML_ASSERT( ! is_seed());
    RYML_ASSERT(valid());
    RYML_ASSERT(get() != nullptr);
    from_chars(key(), &v.k);
    return *this;
}

Synopsis

#include <src/c4/yml/node.hpp>

NodeRef const  & operator>>(Key< fmt::base64_wrapper > w) const

Description

No description yet.

Source

Lines 538-542 in src/c4/yml/node.hpp.

NodeRef const& operator>> (Key<fmt::base64_wrapper> w) const
{
    deserialize_key(w.wrapper);
    return *this;
}

Synopsis

#include <src/c4/yml/node.hpp>

NodeRef const  & operator>>(fmt::base64_wrapper w) const

Description

No description yet.

Source

Lines 544-548 in src/c4/yml/node.hpp.

NodeRef const& operator>> (fmt::base64_wrapper w) const
{
    deserialize_val(w);
    return *this;
}





Add Discussion as Guest

Log in