Classes | Public Types | Public Member Functions | Private Attributes | List of all members
lexy::parse_tree< Reader, TokenKind, MemoryResource > Class Template Reference

#include <parse_tree.hpp>

Classes

class  builder
 
class  traverse_range
 

Public Types

using node = _pt_node< Reader, TokenKind >
 
using node_kind = _pt_node_kind< Reader, TokenKind >
 

Public Member Functions

void clear () noexcept
 
std::size_t depth () const noexcept
 
bool empty () const noexcept
 
constexpr parse_tree ()
 
constexpr parse_tree (MemoryResource *resource)
 
lexy::lexeme< Reader > remaining_input () const noexcept
 
node root () const noexcept
 
std::size_t size () const noexcept
 
traverse_range traverse () const noexcept
 
traverse_range traverse (const node &n) const noexcept
 

Private Attributes

_detail::pt_buffer< MemoryResource > _buffer
 
std::size_t _depth
 
_detail::pt_node_production< Reader > * _root
 
std::size_t _size
 

Detailed Description

template<typename Reader, typename TokenKind = void, typename MemoryResource = void>
class lexy::parse_tree< Reader, TokenKind, MemoryResource >

Definition at line 344 of file parse_tree.hpp.

Member Typedef Documentation

◆ node

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
using lexy::parse_tree< Reader, TokenKind, MemoryResource >::node = _pt_node<Reader, TokenKind>

Definition at line 382 of file parse_tree.hpp.

◆ node_kind

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
using lexy::parse_tree< Reader, TokenKind, MemoryResource >::node_kind = _pt_node_kind<Reader, TokenKind>

Definition at line 381 of file parse_tree.hpp.

Constructor & Destructor Documentation

◆ parse_tree() [1/2]

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
constexpr lexy::parse_tree< Reader, TokenKind, MemoryResource >::parse_tree ( )
inlineconstexpr

Definition at line 352 of file parse_tree.hpp.

◆ parse_tree() [2/2]

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
constexpr lexy::parse_tree< Reader, TokenKind, MemoryResource >::parse_tree ( MemoryResource *  resource)
inlineexplicitconstexpr

Definition at line 353 of file parse_tree.hpp.

Member Function Documentation

◆ clear()

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
void lexy::parse_tree< Reader, TokenKind, MemoryResource >::clear ( )
inlinenoexcept

Definition at line 374 of file parse_tree.hpp.

◆ depth()

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
std::size_t lexy::parse_tree< Reader, TokenKind, MemoryResource >::depth ( ) const
inlinenoexcept

Definition at line 368 of file parse_tree.hpp.

◆ empty()

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
bool lexy::parse_tree< Reader, TokenKind, MemoryResource >::empty ( ) const
inlinenoexcept

Definition at line 358 of file parse_tree.hpp.

◆ remaining_input()

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
lexy::lexeme<Reader> lexy::parse_tree< Reader, TokenKind, MemoryResource >::remaining_input ( ) const
inlinenoexcept

Definition at line 406 of file parse_tree.hpp.

◆ root()

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
node lexy::parse_tree< Reader, TokenKind, MemoryResource >::root ( ) const
inlinenoexcept

Definition at line 384 of file parse_tree.hpp.

◆ size()

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
std::size_t lexy::parse_tree< Reader, TokenKind, MemoryResource >::size ( ) const
inlinenoexcept

Definition at line 363 of file parse_tree.hpp.

◆ traverse() [1/2]

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
traverse_range lexy::parse_tree< Reader, TokenKind, MemoryResource >::traverse ( ) const
inlinenoexcept

Definition at line 397 of file parse_tree.hpp.

◆ traverse() [2/2]

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
traverse_range lexy::parse_tree< Reader, TokenKind, MemoryResource >::traverse ( const node n) const
inlinenoexcept

Definition at line 393 of file parse_tree.hpp.

Member Data Documentation

◆ _buffer

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
_detail::pt_buffer<MemoryResource> lexy::parse_tree< Reader, TokenKind, MemoryResource >::_buffer
private

Definition at line 416 of file parse_tree.hpp.

◆ _depth

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
std::size_t lexy::parse_tree< Reader, TokenKind, MemoryResource >::_depth
private

Definition at line 419 of file parse_tree.hpp.

◆ _root

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
_detail::pt_node_production<Reader>* lexy::parse_tree< Reader, TokenKind, MemoryResource >::_root
private

Definition at line 417 of file parse_tree.hpp.

◆ _size

template<typename Reader , typename TokenKind = void, typename MemoryResource = void>
std::size_t lexy::parse_tree< Reader, TokenKind, MemoryResource >::_size
private

Definition at line 418 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