Vince's CSV Parser
Loading...
Searching...
No Matches
csv::internals::memory::CSVFieldScalarList Class Reference

Stable sidecar storage for parser-time CSVFieldScalar values. More...

#include <field_scalar_list.hpp>

Public Member Functions

 CSVFieldScalarList (size_t single_buffer_capacity=(size_t)(internals::PAGE_SIZE/sizeof(CSVFieldScalar)))
 
 CSVFieldScalarList (const CSVFieldScalarList &)=delete
 
 CSVFieldScalarList (CSVFieldScalarList &&other) noexcept
 
void emplace_back (const CSVFieldScalar &scalar)
 
size_t size () const noexcept
 
bool empty () const noexcept
 
void reserve_for_source_size (size_t source_size)
 
const CSVFieldScalar & operator[] (size_t n) const
 

Detailed Description

Stable sidecar storage for parser-time CSVFieldScalar values.

This intentionally mirrors RawCSVFieldList allocation semantics: scalar values are stored in fixed-size blocks whose addresses stay stable while the parser appends later fields from the same chunk. Cross-thread visibility is provided by the row queue mutex plus atomic size/block publication, matching RawCSVFieldList.

Definition at line 28 of file field_scalar_list.hpp.

Constructor & Destructor Documentation

◆ CSVFieldScalarList() [1/2]

csv::internals::memory::CSVFieldScalarList::CSVFieldScalarList ( size_t  single_buffer_capacity = (size_t)(internals::PAGE_SIZE / sizeof(CSVFieldScalar)))
inline

Definition at line 30 of file field_scalar_list.hpp.

◆ CSVFieldScalarList() [2/2]

csv::internals::memory::CSVFieldScalarList::CSVFieldScalarList ( CSVFieldScalarList &&  other)
inlinenoexcept

Definition at line 40 of file field_scalar_list.hpp.

Member Function Documentation

◆ emplace_back()

void csv::internals::memory::CSVFieldScalarList::emplace_back ( const CSVFieldScalar &  scalar)
inline

Definition at line 49 of file field_scalar_list.hpp.

◆ empty()

bool csv::internals::memory::CSVFieldScalarList::empty ( ) const
inlinenoexcept

Definition at line 66 of file field_scalar_list.hpp.

◆ operator[]()

const CSVFieldScalar & csv::internals::memory::CSVFieldScalarList::operator[] ( size_t  n) const
inline

Definition at line 78 of file field_scalar_list.hpp.

◆ reserve_for_source_size()

void csv::internals::memory::CSVFieldScalarList::reserve_for_source_size ( size_t  source_size)
inline

Definition at line 70 of file field_scalar_list.hpp.

◆ size()

size_t csv::internals::memory::CSVFieldScalarList::size ( ) const
inlinenoexcept

Definition at line 62 of file field_scalar_list.hpp.


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