Vince's CSV Parser
Loading...
Searching...
No Matches
csv::internals::memory::RawCSVBlockArena< T > Class Template Reference

Variable-size block arena used for quote realization bytes. More...

#include <block_arena.hpp>

Classes

struct  Allocation
 

Public Member Functions

 RawCSVBlockArena (size_t default_block_capacity, bool grow_blocks=true)
 
 RawCSVBlockArena (const RawCSVBlockArena &)=delete
 
RawCSVBlockArena & operator= (const RawCSVBlockArena &)=delete
 
 RawCSVBlockArena (RawCSVBlockArena &&other) noexcept
 
RawCSVBlockArena & operator= (RawCSVBlockArena &&other) noexcept
 
template<class... Args>
T & emplace_back (Args &&... args)
 
Allocation allocate_contiguous (size_t count)
 
T & operator[] (size_t n) const
 
size_t size () const noexcept
 
csv::string_view view (size_t offset, size_t length) const
 
void reserve_blocks (size_t count)
 

Detailed Description

template<typename T>
class csv::internals::memory::RawCSVBlockArena< T >

Variable-size block arena used for quote realization bytes.

Quote fields can be larger than the default page and blocks may grow, so this arena carries per-block metadata and resolves logical offsets by binary search.

Definition at line 26 of file block_arena.hpp.

Constructor & Destructor Documentation

◆ RawCSVBlockArena() [1/2]

template<typename T >
csv::internals::memory::RawCSVBlockArena< T >::RawCSVBlockArena ( size_t  default_block_capacity,
bool  grow_blocks = true 
)
inlineexplicit

Definition at line 37 of file block_arena.hpp.

◆ RawCSVBlockArena() [2/2]

template<typename T >
csv::internals::memory::RawCSVBlockArena< T >::RawCSVBlockArena ( RawCSVBlockArena< T > &&  other)
inlinenoexcept

Definition at line 46 of file block_arena.hpp.

Member Function Documentation

◆ allocate_contiguous()

template<typename T >
Allocation csv::internals::memory::RawCSVBlockArena< T >::allocate_contiguous ( size_t  count)
inline

Definition at line 80 of file block_arena.hpp.

◆ emplace_back()

template<typename T >
template<class... Args>
T & csv::internals::memory::RawCSVBlockArena< T >::emplace_back ( Args &&...  args)
inline

Definition at line 74 of file block_arena.hpp.

◆ operator=()

template<typename T >
RawCSVBlockArena & csv::internals::memory::RawCSVBlockArena< T >::operator= ( RawCSVBlockArena< T > &&  other)
inlinenoexcept

Definition at line 57 of file block_arena.hpp.

◆ operator[]()

template<typename T >
T & csv::internals::memory::RawCSVBlockArena< T >::operator[] ( size_t  n) const
inline

Definition at line 101 of file block_arena.hpp.

◆ reserve_blocks()

template<typename T >
void csv::internals::memory::RawCSVBlockArena< T >::reserve_blocks ( size_t  count)
inline

Definition at line 122 of file block_arena.hpp.

◆ size()

template<typename T >
size_t csv::internals::memory::RawCSVBlockArena< T >::size ( ) const
inlinenoexcept

Definition at line 107 of file block_arena.hpp.

◆ view()

template<typename T >
csv::string_view csv::internals::memory::RawCSVBlockArena< T >::view ( size_t  offset,
size_t  length 
) const
inline

Definition at line 111 of file block_arena.hpp.


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