Function NodeInit

Summary

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

(1) NodeInit()

(2) NodeInit(NodeType_e t)

(3) NodeInit(NodeScalar const &v)

(4) NodeInit(NodeScalar const &k, NodeScalar const &v)

(5) NodeInit(NodeType_e t, NodeScalar const &k, NodeScalar const &v)

(6) NodeInit(NodeType_e t, NodeScalar const &k)

Function overload

Synopsis

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

NodeInit()

Description

initialize as an empty node

Source

Lines 347-347 in src/c4/yml/tree.hpp.

NodeInit() : type(NOTYPE), key(), val() {}

Synopsis

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

NodeInit(NodeType_e t)

Description

initialize as a typed node

Source

Lines 349-349 in src/c4/yml/tree.hpp.

NodeInit(NodeType_e t) : type(t), key(), val() {}

Synopsis

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

NodeInit(NodeScalar const &v)

Description

initialize as a sequence member

Source

Lines 351-351 in src/c4/yml/tree.hpp.

NodeInit(NodeScalar const& v) : type(VAL), key(), val(v) { _add_flags(); }

Synopsis

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

NodeInit(NodeScalar const &k, NodeScalar const &v)

Description

initialize as a mapping member

Source

Lines 353-353 in src/c4/yml/tree.hpp.

NodeInit(              NodeScalar const& k, NodeScalar const& v) : type(KEYVAL), key(k.tag, k.scalar), val(v.tag, v.scalar) { _add_flags(); }

Synopsis

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

NodeInit(NodeType_e t, NodeScalar const &k, NodeScalar const &v)

Description

initialize as a mapping member with explicit type

Source

Lines 355-355 in src/c4/yml/tree.hpp.

NodeInit(NodeType_e t, NodeScalar const& k, NodeScalar const& v) : type(t     ), key(k.tag, k.scalar), val(v.tag, v.scalar) { _add_flags(); }

Synopsis

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

NodeInit(NodeType_e t, NodeScalar const &k)

Description

initialize as a mapping member with explicit type (eg SEQ or MAP)

Source

Lines 357-357 in src/c4/yml/tree.hpp.

NodeInit(NodeType_e t, NodeScalar const& k                     ) : type(t     ), key(k.tag, k.scalar), val(               ) { _add_flags(KEY); }





Add Discussion as Guest

Log in