STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
utf8_buffered_reader Class Reference

#include <toml.hpp>

Collaboration diagram for utf8_buffered_reader:
[legend]

Public Member Functions

TOML_NODISCARD_CTOR utf8_buffered_reader (utf8_reader_interface &reader) noexcept
TOML_PURE_INLINE_GETTER const source_path_ptr & source_path () const noexcept
TOML_NODISCARD const utf8_codepoint * read_next () noexcept(!TOML_COMPILER_HAS_EXCEPTIONS)
TOML_NODISCARD const utf8_codepoint * step_back (size_t count) noexcept
TOML_NODISCARD bool peek_eof () const noexcept(!TOML_COMPILER_HAS_EXCEPTIONS)
TOML_NODISCARD optional< parse_error > && error () noexcept

Static Public Attributes

static constexpr size_t max_history_length = 128

Private Attributes

utf8_reader_interface & reader_
struct { 
   utf8_codepoint   buffer [history_buffer_size] 
   size_t   count 
   size_t   first 
} history_ = {}
const utf8_codepoint * head_ = {}
size_t negative_offset_ = {}

Static Private Attributes

static constexpr size_t history_buffer_size = max_history_length - 1

Detailed Description

Definition at line 12944 of file toml.hpp.

Constructor & Destructor Documentation

◆ utf8_buffered_reader()

TOML_NODISCARD_CTOR utf8_buffered_reader::utf8_buffered_reader ( utf8_reader_interface & reader)
inlineexplicitnoexcept

Definition at line 12962 of file toml.hpp.

References reader_.

Member Function Documentation

◆ error()

TOML_NODISCARD optional< parse_error > && utf8_buffered_reader::error ( )
inlinenoexcept

Definition at line 13035 of file toml.hpp.

References reader_.

◆ peek_eof()

TOML_NODISCARD bool utf8_buffered_reader::peek_eof ( ) const
inlinenoexcept

Definition at line 13027 of file toml.hpp.

References reader_, and TOML_COMPILER_HAS_EXCEPTIONS.

◆ read_next()

TOML_NODISCARD const utf8_codepoint * utf8_buffered_reader::read_next ( )
inlinenoexcept

◆ source_path()

TOML_PURE_INLINE_GETTER const source_path_ptr & utf8_buffered_reader::source_path ( ) const
inlinenoexcept

Definition at line 12967 of file toml.hpp.

References reader_.

◆ step_back()

TOML_NODISCARD const utf8_codepoint * utf8_buffered_reader::step_back ( size_t count)
inlinenoexcept

Member Data Documentation

◆ buffer

utf8_codepoint utf8_buffered_reader::buffer[history_buffer_size]

Definition at line 12954 of file toml.hpp.

◆ count

size_t utf8_buffered_reader::count

Definition at line 12955 of file toml.hpp.

Referenced by step_back().

◆ first

size_t utf8_buffered_reader::first

Definition at line 12955 of file toml.hpp.

◆ head_

const utf8_codepoint* utf8_buffered_reader::head_ = {}
private

Definition at line 12957 of file toml.hpp.

Referenced by read_next(), and step_back().

◆ [struct]

struct { ... } utf8_buffered_reader::history_

Referenced by read_next(), and step_back().

◆ history_buffer_size

size_t utf8_buffered_reader::history_buffer_size = max_history_length - 1
staticconstexprprivate

Definition at line 12950 of file toml.hpp.

Referenced by read_next(), and step_back().

◆ max_history_length

size_t utf8_buffered_reader::max_history_length = 128
staticconstexpr

Definition at line 12947 of file toml.hpp.

Referenced by parser::parse_float(), parser::parse_integer(), and parser::parse_value().

◆ negative_offset_

size_t utf8_buffered_reader::negative_offset_ = {}
private

Definition at line 12958 of file toml.hpp.

Referenced by read_next(), and step_back().

◆ reader_

utf8_reader_interface& utf8_buffered_reader::reader_
private

Definition at line 12951 of file toml.hpp.

Referenced by error(), peek_eof(), read_next(), source_path(), and utf8_buffered_reader().


The documentation for this class was generated from the following file:
  • daq-server/diablo_server/lib/include/toml++/toml.hpp