Function get

Summary

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

(1) NodeData * get(size_t i)

(2) NodeData const  * get(size_t i) const

Function overload

Synopsis

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

NodeData * get(size_t i)

Description

with the get() method, i can be NONE, in which case a nullptr is returned

Mentioned in

Source

Lines 476-484 in src/c4/yml/tree.hpp.

inline NodeData *get(size_t i)
{
    if(i == NONE)
    {
        return nullptr;
    }
    RYML_ASSERT(i >= 0 && i < m_cap);
    return m_buf + i;
}

Synopsis

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

NodeData const  * get(size_t i) const

Description

No description yet.

Mentioned in

Source

Lines 485-493 in src/c4/yml/tree.hpp.

inline NodeData const *get(size_t i) const
{
    if(i == NONE)
    {
        return nullptr;
    }
    RYML_ASSERT(i >= 0 && i < m_cap);
    return m_buf + i;
}





Add Discussion as Guest

Log in