Class ConstNodeRef

Inheritance Relationships

Base Type

Class Documentation

class ConstNodeRef : public c4::yml::detail::RoNodeMethods<ConstNodeRef, ConstNodeRef>

construction

inline ConstNodeRef()
inline ConstNodeRef(Tree const &t)
inline ConstNodeRef(Tree const *t)
inline ConstNodeRef(Tree const *t, size_t id)
inline ConstNodeRef(std::nullptr_t)
ConstNodeRef(ConstNodeRef const&) = default
ConstNodeRef(ConstNodeRef&&) = default
inline ConstNodeRef(NodeRef const&)
inline ConstNodeRef(NodeRef&&)

assignment

inline ConstNodeRef &operator=(std::nullptr_t)
ConstNodeRef &operator=(ConstNodeRef const&) = default
ConstNodeRef &operator=(ConstNodeRef&&) = default
inline ConstNodeRef &operator=(NodeRef const&)
inline ConstNodeRef &operator=(NodeRef&&)

state queries

inline C4_ALWAYS_INLINE C4_PURE bool valid () const noexcept

member getters

inline C4_ALWAYS_INLINE C4_PURE Tree const  * tree () const noexcept
inline C4_ALWAYS_INLINE C4_PURE size_t id () const noexcept

comparisons

inline C4_ALWAYS_INLINE C4_PURE bool operator== (ConstNodeRef const &that) const noexcept
inline C4_ALWAYS_INLINE C4_PURE bool operator!= (ConstNodeRef const &that) const noexcept
inline C4_ALWAYS_INLINE C4_PURE bool operator== (std::nullptr_t) const noexcept
inline C4_ALWAYS_INLINE C4_PURE bool operator!= (std::nullptr_t) const noexcept
inline C4_ALWAYS_INLINE C4_PURE bool operator== (csubstr val) const noexcept
inline C4_ALWAYS_INLINE C4_PURE bool operator!= (csubstr val) const noexcept

Public Types

using tree_type = Tree const

Public Members

Tree const  *C4_RESTRICT m_tree
size_t m_id
friend NodeRef

Friends

friend struct detail::RoNodeMethods< ConstNodeRef, ConstNodeRef >