STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
utf8_reader< T > Class Template Referencefinal

#include <toml.hpp>

Inheritance diagram for utf8_reader< T >:
[legend]
Collaboration diagram for utf8_reader< T >:
[legend]

Classes

struct  currently_decoding_t
struct  codepoints_t

Public Member Functions

template<typename U, typename String = std::string_view>
TOML_NODISCARD_CTOR utf8_reader (U &&source, String &&source_path={}) noexcept(std::is_nothrow_constructible_v< utf8_byte_stream< T >, U && >)
TOML_PURE_INLINE_GETTER const source_path_ptr & source_path () const noexcept final
TOML_NODISCARD const utf8_codepoint * read_next () noexcept(!TOML_COMPILER_HAS_EXCEPTIONS) final
TOML_NODISCARD bool peek_eof () const noexcept(!TOML_COMPILER_HAS_EXCEPTIONS) final
TOML_NODISCARD optional< parse_error > && error () noexcept final
Public Member Functions inherited from utf8_reader_interface
virtual ~utf8_reader_interface () noexcept=default

Private Member Functions

bool read_next_block () noexcept(!TOML_COMPILER_HAS_EXCEPTIONS)

Private Attributes

utf8_byte_stream< T > stream_
source_position next_pos_ = { 1, 1 }
impl::utf8_decoder decoder_
struct utf8_reader::currently_decoding_t currently_decoding_
struct utf8_reader::codepoints_t codepoints_
source_path_ptr source_path_
optional< parse_error > err_

Static Private Attributes

static constexpr size_t block_capacity = 32

Detailed Description

template<typename T>
class utf8_reader< T >

Definition at line 12682 of file toml.hpp.

Constructor & Destructor Documentation

◆ utf8_reader()

template<typename T>
template<typename U, typename String = std::string_view>
TOML_NODISCARD_CTOR utf8_reader< T >::utf8_reader ( U && source,
String && source_path = {} )
inlineexplicitnoexcept

Definition at line 12867 of file toml.hpp.

References source_path().

Member Function Documentation

◆ error()

template<typename T>
TOML_NODISCARD optional< parse_error > && utf8_reader< T >::error ( )
inlinefinalvirtualnoexcept

Implements utf8_reader_interface.

Definition at line 12914 of file toml.hpp.

References err_.

◆ peek_eof()

template<typename T>
TOML_NODISCARD bool utf8_reader< T >::peek_eof ( ) const
inlinefinalvirtualnoexcept

Implements utf8_reader_interface.

Definition at line 12906 of file toml.hpp.

References stream_, and TOML_COMPILER_HAS_EXCEPTIONS.

◆ read_next()

template<typename T>
TOML_NODISCARD const utf8_codepoint * utf8_reader< T >::read_next ( )
inlinefinalvirtualnoexcept

◆ read_next_block()

◆ source_path()

template<typename T>
TOML_PURE_INLINE_GETTER const source_path_ptr & utf8_reader< T >::source_path ( ) const
inlinefinalvirtualnoexcept

Implements utf8_reader_interface.

Definition at line 12881 of file toml.hpp.

References source_path_.

Referenced by utf8_reader().

Member Data Documentation

◆ block_capacity

template<typename T>
size_t utf8_reader< T >::block_capacity = 32
staticconstexprprivate

Definition at line 12685 of file toml.hpp.

Referenced by read_next(), and read_next_block().

◆ codepoints_

template<typename T>
struct utf8_reader::codepoints_t utf8_reader< T >::codepoints_
private

Referenced by read_next(), and read_next_block().

◆ currently_decoding_

template<typename T>
struct utf8_reader::currently_decoding_t utf8_reader< T >::currently_decoding_
private

Referenced by read_next_block().

◆ decoder_

template<typename T>
impl::utf8_decoder utf8_reader< T >::decoder_
private

Definition at line 12689 of file toml.hpp.

Referenced by read_next_block().

◆ err_

template<typename T>
optional<parse_error> utf8_reader< T >::err_
private

Definition at line 12706 of file toml.hpp.

Referenced by error().

◆ next_pos_

template<typename T>
source_position utf8_reader< T >::next_pos_ = { 1, 1 }
private

Definition at line 12687 of file toml.hpp.

Referenced by read_next_block().

◆ source_path_

template<typename T>
source_path_ptr utf8_reader< T >::source_path_
private

Definition at line 12703 of file toml.hpp.

Referenced by read_next_block(), and source_path().

◆ stream_

template<typename T>
utf8_byte_stream<T> utf8_reader< T >::stream_
private

Definition at line 12686 of file toml.hpp.

Referenced by peek_eof(), read_next(), and read_next_block().


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