Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
lexy::_detail::pt_buffer< MemoryResource > Class Template Reference

#include <parse_tree.hpp>

Classes

struct  block
 

Public Member Functions

template<typename T , typename... Args>
T * allocate (Args &&... args)
 
pt_bufferoperator= (pt_buffer &&other) noexcept
 
constexpr pt_buffer (MemoryResource *resource) noexcept
 
 pt_buffer (pt_buffer &&other) noexcept
 
void reserve (std::size_t size)
 
void reset ()
 
void * top ()
 
void unwind (void *marker) noexcept
 
 ~pt_buffer () noexcept
 

Private Types

using resource_ptr = _detail::memory_resource_ptr< MemoryResource >
 

Private Member Functions

std::size_t remaining_capacity () const noexcept
 

Private Attributes

block_cur_block
 
unsigned char * _cur_pos
 
block_head
 
LEXY_EMPTY_MEMBER resource_ptr _resource
 

Static Private Attributes

static constexpr std::size_t block_size = 4096 - sizeof(void*)
 

Detailed Description

template<typename MemoryResource>
class lexy::_detail::pt_buffer< MemoryResource >

Definition at line 196 of file parse_tree.hpp.

Member Typedef Documentation

◆ resource_ptr

template<typename MemoryResource >
using lexy::_detail::pt_buffer< MemoryResource >::resource_ptr = _detail::memory_resource_ptr<MemoryResource>
private

Definition at line 198 of file parse_tree.hpp.

Constructor & Destructor Documentation

◆ pt_buffer() [1/2]

template<typename MemoryResource >
constexpr lexy::_detail::pt_buffer< MemoryResource >::pt_buffer ( MemoryResource *  resource)
inlineexplicitconstexprnoexcept

Definition at line 230 of file parse_tree.hpp.

◆ pt_buffer() [2/2]

template<typename MemoryResource >
lexy::_detail::pt_buffer< MemoryResource >::pt_buffer ( pt_buffer< MemoryResource > &&  other)
inlinenoexcept

Definition at line 234 of file parse_tree.hpp.

◆ ~pt_buffer()

template<typename MemoryResource >
lexy::_detail::pt_buffer< MemoryResource >::~pt_buffer ( )
inlinenoexcept

Definition at line 242 of file parse_tree.hpp.

Member Function Documentation

◆ allocate()

template<typename MemoryResource >
template<typename T , typename... Args>
T* lexy::_detail::pt_buffer< MemoryResource >::allocate ( Args &&...  args)
inline

Definition at line 285 of file parse_tree.hpp.

◆ operator=()

template<typename MemoryResource >
pt_buffer& lexy::_detail::pt_buffer< MemoryResource >::operator= ( pt_buffer< MemoryResource > &&  other)
inlinenoexcept

Definition at line 249 of file parse_tree.hpp.

◆ remaining_capacity()

template<typename MemoryResource >
std::size_t lexy::_detail::pt_buffer< MemoryResource >::remaining_capacity ( ) const
inlineprivatenoexcept

Definition at line 322 of file parse_tree.hpp.

◆ reserve()

template<typename MemoryResource >
void lexy::_detail::pt_buffer< MemoryResource >::reserve ( std::size_t  size)
inline

Definition at line 273 of file parse_tree.hpp.

◆ reset()

template<typename MemoryResource >
void lexy::_detail::pt_buffer< MemoryResource >::reset ( )
inline

Definition at line 264 of file parse_tree.hpp.

◆ top()

template<typename MemoryResource >
void* lexy::_detail::pt_buffer< MemoryResource >::top ( )
inline

Definition at line 298 of file parse_tree.hpp.

◆ unwind()

template<typename MemoryResource >
void lexy::_detail::pt_buffer< MemoryResource >::unwind ( void *  marker)
inlinenoexcept

Definition at line 303 of file parse_tree.hpp.

Member Data Documentation

◆ _cur_block

template<typename MemoryResource >
block* lexy::_detail::pt_buffer< MemoryResource >::_cur_block
private

Definition at line 330 of file parse_tree.hpp.

◆ _cur_pos

template<typename MemoryResource >
unsigned char* lexy::_detail::pt_buffer< MemoryResource >::_cur_pos
private

Definition at line 331 of file parse_tree.hpp.

◆ _head

template<typename MemoryResource >
block* lexy::_detail::pt_buffer< MemoryResource >::_head
private

Definition at line 328 of file parse_tree.hpp.

◆ _resource

template<typename MemoryResource >
LEXY_EMPTY_MEMBER resource_ptr lexy::_detail::pt_buffer< MemoryResource >::_resource
private

Definition at line 327 of file parse_tree.hpp.

◆ block_size

template<typename MemoryResource >
constexpr std::size_t lexy::_detail::pt_buffer< MemoryResource >::block_size = 4096 - sizeof(void*)
staticconstexprprivate

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