Public Member Functions | Static Public Attributes | Protected Member Functions | Static Private Member Functions | Private Attributes | List of all members
lexy::_detail::pt_node< Reader > Class Template Reference

#include <parse_tree.hpp>

Public Member Functions

auto as_production () noexcept
 
auto as_token () noexcept
 
pt_node< Reader > * next_node () const noexcept
 
unsigned next_role () const noexcept
 
void set_parent (pt_node_production< Reader > *parent) noexcept
 
void set_sibling (pt_node< Reader > *sibling) noexcept
 
unsigned type () const noexcept
 

Static Public Attributes

static constexpr auto role_parent = 0b1u
 
static constexpr auto role_sibling = 0b0u
 
static constexpr auto type_production = 0b1u
 
static constexpr auto type_token = 0b0u
 

Protected Member Functions

 pt_node (unsigned type)
 

Static Private Member Functions

static std::uintptr_t _make_packed_ptr (pt_node< Reader > *ptr, unsigned type, unsigned role)
 

Private Attributes

std::uintptr_t _value
 

Detailed Description

template<typename Reader>
class lexy::_detail::pt_node< Reader >

Definition at line 24 of file parse_tree.hpp.

Constructor & Destructor Documentation

◆ pt_node()

template<typename Reader >
lexy::_detail::pt_node< Reader >::pt_node ( unsigned  type)
inlineexplicitprotected

Definition at line 77 of file parse_tree.hpp.

Member Function Documentation

◆ _make_packed_ptr()

template<typename Reader >
static std::uintptr_t lexy::_detail::pt_node< Reader >::_make_packed_ptr ( pt_node< Reader > *  ptr,
unsigned  type,
unsigned  role 
)
inlinestaticprivate

Definition at line 84 of file parse_tree.hpp.

◆ as_production()

template<typename Reader >
auto lexy::_detail::pt_node< Reader >::as_production ( )
inlinenoexcept

Definition at line 50 of file parse_tree.hpp.

◆ as_token()

template<typename Reader >
auto lexy::_detail::pt_node< Reader >::as_token ( )
inlinenoexcept

Definition at line 46 of file parse_tree.hpp.

◆ next_node()

template<typename Reader >
pt_node<Reader>* lexy::_detail::pt_node< Reader >::next_node ( ) const
inlinenoexcept

Definition at line 70 of file parse_tree.hpp.

◆ next_role()

template<typename Reader >
unsigned lexy::_detail::pt_node< Reader >::next_role ( ) const
inlinenoexcept

Definition at line 65 of file parse_tree.hpp.

◆ set_parent()

template<typename Reader >
void lexy::_detail::pt_node< Reader >::set_parent ( pt_node_production< Reader > *  parent)
inlinenoexcept

Definition at line 60 of file parse_tree.hpp.

◆ set_sibling()

template<typename Reader >
void lexy::_detail::pt_node< Reader >::set_sibling ( pt_node< Reader > *  sibling)
inlinenoexcept

Definition at line 56 of file parse_tree.hpp.

◆ type()

template<typename Reader >
unsigned lexy::_detail::pt_node< Reader >::type ( ) const
inlinenoexcept

Definition at line 41 of file parse_tree.hpp.

Member Data Documentation

◆ _value

template<typename Reader >
std::uintptr_t lexy::_detail::pt_node< Reader >::_value
private

Definition at line 98 of file parse_tree.hpp.

◆ role_parent

template<typename Reader >
constexpr auto lexy::_detail::pt_node< Reader >::role_parent = 0b1u
staticconstexpr

Definition at line 38 of file parse_tree.hpp.

◆ role_sibling

template<typename Reader >
constexpr auto lexy::_detail::pt_node< Reader >::role_sibling = 0b0u
staticconstexpr

Definition at line 37 of file parse_tree.hpp.

◆ type_production

template<typename Reader >
constexpr auto lexy::_detail::pt_node< Reader >::type_production = 0b1u
staticconstexpr

Definition at line 35 of file parse_tree.hpp.

◆ type_token

template<typename Reader >
constexpr auto lexy::_detail::pt_node< Reader >::type_token = 0b0u
staticconstexpr

Definition at line 34 of file parse_tree.hpp.


The documentation for this class was generated from the following file:


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:19