spdlog
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
compile_parse_context< Char, ErrorHandler > Class Template Reference

Detailed Description

template<typename Char, typename ErrorHandler = error_handler>
class compile_parse_context< Char, ErrorHandler >

Definition at line 2453 of file core.h.

#include <core.h>

Inheritance diagram for compile_parse_context< Char, ErrorHandler >:
[legend]

Public Types

using char_type = Char
 
using iterator = typename basic_string_view< Char >::iterator
 

Public Member Functions

FMT_CONSTEXPR compile_parse_context (basic_string_view< Char > format_str, int num_args=(std::numeric_limits< int >::max)(), ErrorHandler eh={})
 
FMT_CONSTEXPR auto next_arg_id () -> int
 
FMT_CONSTEXPR void check_arg_id (int id)
 
constexpr auto begin () const FMT_NOEXCEPT -> iterator
 
constexpr auto end () const FMT_NOEXCEPT -> iterator
 
FMT_CONSTEXPR void advance_to (iterator it)
 
FMT_CONSTEXPR void check_arg_id (basic_string_view< Char >)
 
FMT_CONSTEXPR void on_error (const char *message)
 
constexpr auto error_handler () const -> ErrorHandler
 

Private Types

using base = basic_format_parse_context< Char, ErrorHandler >
 

Private Attributes

int num_args_
 
basic_string_view< Char > format_str_
 
int next_arg_id_
 

Member Typedef Documentation

◆ base

template<typename Char , typename ErrorHandler = error_handler>
using compile_parse_context< Char, ErrorHandler >::base = basic_format_parse_context<Char, ErrorHandler>
private

Definition at line 2457 of file core.h.

◆ char_type

template<typename Char , typename ErrorHandler = detail::error_handler>
using basic_format_parse_context< Char, ErrorHandler >::char_type = Char
inherited

Definition at line 626 of file core.h.

◆ iterator

template<typename Char , typename ErrorHandler = detail::error_handler>
using basic_format_parse_context< Char, ErrorHandler >::iterator = typename basic_string_view<Char>::iterator
inherited

Definition at line 627 of file core.h.

Constructor & Destructor Documentation

◆ compile_parse_context()

template<typename Char , typename ErrorHandler = error_handler>
FMT_CONSTEXPR compile_parse_context< Char, ErrorHandler >::compile_parse_context ( basic_string_view< Char >  format_str,
int  num_args = (std::numeric_limits<int>::max)(),
ErrorHandler  eh = {} 
)
inlineexplicit

Definition at line 2460 of file core.h.

Member Function Documentation

◆ advance_to()

template<typename Char , typename ErrorHandler = detail::error_handler>
FMT_CONSTEXPR void basic_format_parse_context< Char, ErrorHandler >::advance_to ( iterator  it)
inlineinherited

Advances the begin iterator to it.

Definition at line 650 of file core.h.

◆ begin()

template<typename Char , typename ErrorHandler = detail::error_handler>
constexpr auto basic_format_parse_context< Char, ErrorHandler >::begin ( ) const -> iterator
inlineconstexprinherited

Returns an iterator to the beginning of the format string range being parsed.

Definition at line 638 of file core.h.

◆ check_arg_id() [1/2]

template<typename Char , typename ErrorHandler = detail::error_handler>
FMT_CONSTEXPR void basic_format_parse_context< Char, ErrorHandler >::check_arg_id ( basic_string_view< Char >  )
inlineinherited

Definition at line 677 of file core.h.

◆ check_arg_id() [2/2]

template<typename Char , typename ErrorHandler = error_handler>
FMT_CONSTEXPR void compile_parse_context< Char, ErrorHandler >::check_arg_id ( int  id)
inline

Definition at line 2471 of file core.h.

◆ end()

template<typename Char , typename ErrorHandler = detail::error_handler>
constexpr auto basic_format_parse_context< Char, ErrorHandler >::end ( ) const -> iterator
inlineconstexprinherited

Returns an iterator past the end of the format string range being parsed.

Definition at line 645 of file core.h.

◆ error_handler()

template<typename Char , typename ErrorHandler = detail::error_handler>
constexpr auto basic_format_parse_context< Char, ErrorHandler >::error_handler ( ) const -> ErrorHandler
inlineconstexprinherited

Definition at line 683 of file core.h.

◆ next_arg_id()

template<typename Char , typename ErrorHandler = error_handler>
FMT_CONSTEXPR auto compile_parse_context< Char, ErrorHandler >::next_arg_id ( ) -> int
inline

Definition at line 2465 of file core.h.

◆ on_error()

template<typename Char , typename ErrorHandler = detail::error_handler>
FMT_CONSTEXPR void basic_format_parse_context< Char, ErrorHandler >::on_error ( const char message)
inlineinherited

Definition at line 679 of file core.h.

Member Data Documentation

◆ format_str_

template<typename Char , typename ErrorHandler = detail::error_handler>
basic_string_view<Char> basic_format_parse_context< Char, ErrorHandler >::format_str_
privateinherited

Definition at line 622 of file core.h.

◆ next_arg_id_

template<typename Char , typename ErrorHandler = detail::error_handler>
int basic_format_parse_context< Char, ErrorHandler >::next_arg_id_
privateinherited

Definition at line 623 of file core.h.

◆ num_args_

template<typename Char , typename ErrorHandler = error_handler>
int compile_parse_context< Char, ErrorHandler >::num_args_
private

Definition at line 2456 of file core.h.


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