scnlib  0.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scn::basic_parse_context< Locale > Class Template Reference

#include <parse_context.h>

Inheritance diagram for scn::basic_parse_context< Locale >:
scn::detail::basic_parse_context_base< Locale::char_type > scn::detail::parse_context_base

Public Types

using locale_type = Locale
 
using char_type = typename Locale::char_type
 
using string_view_type = basic_string_view< char_type >
 
using iterator = typename string_view_type::iterator
 

Public Member Functions

constexpr basic_parse_context (basic_string_view< char_type > f, locale_type &loc)
 
bool should_skip_ws ()
 
bool should_read_literal ()
 
constexpr bool check_literal (char_type ch) const
 
constexpr bool good () const
 
constexpr operator bool () const
 
SCN_CONSTEXPR14 void advance (std::ptrdiff_t n=1) noexcept
 
constexpr char_type next () const
 
constexpr bool check_arg_begin () const
 
constexpr bool check_arg_end () const
 
SCN_CONSTEXPR14 void arg_begin () const noexcept
 
SCN_CONSTEXPR14 void arg_end () const noexcept
 
SCN_CONSTEXPR14 void arg_handled () const noexcept
 
template<typename Scanner >
error parse (Scanner &s)
 
bool has_arg_id ()
 
expected< string_view_typeparse_arg_id ()
 
- Public Member Functions inherited from scn::detail::basic_parse_context_base< Locale::char_type >
SCN_CONSTEXPR14 void check_arg_id (basic_string_view< Locale::char_type >)
 
- Public Member Functions inherited from scn::detail::parse_context_base
SCN_CONSTEXPR14 std::ptrdiff_t next_arg_id ()
 
SCN_CONSTEXPR14 bool check_arg_id (std::ptrdiff_t)
 

Additional Inherited Members

- Protected Member Functions inherited from scn::detail::parse_context_base
 parse_context_base ()=default
 
- Protected Attributes inherited from scn::detail::parse_context_base
std::ptrdiff_t m_next_arg_id {0}
 

Detailed Description

template<typename Locale>
class scn::basic_parse_context< Locale >

Definition at line 60 of file parse_context.h.

Member Typedef Documentation

template<typename Locale >
using scn::basic_parse_context< Locale >::char_type = typename Locale::char_type

Definition at line 64 of file parse_context.h.

template<typename Locale >
using scn::basic_parse_context< Locale >::iterator = typename string_view_type::iterator

Definition at line 66 of file parse_context.h.

template<typename Locale >
using scn::basic_parse_context< Locale >::locale_type = Locale

Definition at line 63 of file parse_context.h.

template<typename Locale >
using scn::basic_parse_context< Locale >::string_view_type = basic_string_view<char_type>

Definition at line 65 of file parse_context.h.

Constructor & Destructor Documentation

template<typename Locale >
constexpr scn::basic_parse_context< Locale >::basic_parse_context ( basic_string_view< char_type f,
locale_type loc 
)
inlineexplicit

Definition at line 68 of file parse_context.h.

Member Function Documentation

template<typename Locale >
SCN_CONSTEXPR14 void scn::basic_parse_context< Locale >::advance ( std::ptrdiff_t  n = 1)
inlinenoexcept

Definition at line 113 of file parse_context.h.

template<typename Locale >
SCN_CONSTEXPR14 void scn::basic_parse_context< Locale >::arg_begin ( ) const
inlinenoexcept

Definition at line 132 of file parse_context.h.

template<typename Locale >
SCN_CONSTEXPR14 void scn::basic_parse_context< Locale >::arg_end ( ) const
inlinenoexcept

Definition at line 133 of file parse_context.h.

template<typename Locale >
SCN_CONSTEXPR14 void scn::basic_parse_context< Locale >::arg_handled ( ) const
inlinenoexcept

Definition at line 135 of file parse_context.h.

template<typename Locale >
constexpr bool scn::basic_parse_context< Locale >::check_arg_begin ( ) const
inline

Definition at line 123 of file parse_context.h.

template<typename Locale >
constexpr bool scn::basic_parse_context< Locale >::check_arg_end ( ) const
inline

Definition at line 127 of file parse_context.h.

template<typename Locale >
constexpr bool scn::basic_parse_context< Locale >::check_literal ( char_type  ch) const
inline

Definition at line 99 of file parse_context.h.

template<typename Locale >
constexpr bool scn::basic_parse_context< Locale >::good ( ) const
inline

Definition at line 104 of file parse_context.h.

template<typename Locale >
bool scn::basic_parse_context< Locale >::has_arg_id ( )
inline

Definition at line 143 of file parse_context.h.

template<typename Locale >
constexpr char_type scn::basic_parse_context< Locale >::next ( ) const
inline

Definition at line 118 of file parse_context.h.

template<typename Locale >
constexpr scn::basic_parse_context< Locale >::operator bool ( ) const
inlineexplicit

Definition at line 108 of file parse_context.h.

template<typename Locale >
template<typename Scanner >
error scn::basic_parse_context< Locale >::parse ( Scanner &  s)
inline

Definition at line 138 of file parse_context.h.

template<typename Locale >
expected<string_view_type> scn::basic_parse_context< Locale >::parse_arg_id ( )
inline

Definition at line 159 of file parse_context.h.

template<typename Locale >
bool scn::basic_parse_context< Locale >::should_read_literal ( )
inline

Definition at line 83 of file parse_context.h.

template<typename Locale >
bool scn::basic_parse_context< Locale >::should_skip_ws ( )
inline

Definition at line 74 of file parse_context.h.


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