Function rootref

Summary

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

(1) NodeRef rootref()

(2) NodeRef const rootref() const

Function overload

Synopsis

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

NodeRef rootref()

Description

Get the root as a NodeRef.

Mentioned in

Source

Lines 130-133 in src/c4/yml/tree.cpp. Line 509 in src/c4/yml/tree.hpp.

NodeRef Tree::rootref()
{
    return NodeRef(this, root_id());
}

Synopsis

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

NodeRef const rootref() const

Description

Get the root as a NodeRef.

Mentioned in

Source

Lines 135-138 in src/c4/yml/tree.cpp. Line 511 in src/c4/yml/tree.hpp.

NodeRef const Tree::rootref() const
{
    return NodeRef(const_cast< Tree* >(this), root_id());
}





Add Discussion as Guest

Log in