scnlib  0.1.2
FormattedinputformodernC++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
scn::basic_context< Stream, Locale, Options > Class Template Reference

#include <context.h>

Inheritance diagram for scn::basic_context< Stream, Locale, Options >:
scn::detail::arg_context_base< Stream, basic_parse_context< Stream::char_type >, Locale, Options > scn::detail::context_base< Stream, Stream::char_type, basic_parse_context< Stream::char_type >, Options, Locale > scn::detail::context_locale_base< Locale > scn::detail::context_parse_context_base< basic_parse_context< Stream::char_type > > scn::detail::context_options_base< Options >

Public Types

using stream_type = typename base::stream_type
 
using char_type = typename base::char_type
 
using args_type = typename base::args_type
 
using options_type = typename base::options_type
 
using parse_context_type = typename base::parse_context_type
 
- Public Types inherited from scn::detail::arg_context_base< Stream, basic_parse_context< Stream::char_type >, Locale, Options >
using stream_type = Stream
 
using char_type = typename stream_type::char_type
 
using format_string_type = basic_string_view< char_type >
 
using args_type = basic_args< arg_context_base >
 
using parse_context_type = basic_parse_context< Stream::char_type >
 
using locale_type = Locale
 
using options_type = typename base::options_type
 
using arg_type = basic_arg< arg_context_base >
 
using arg_store_type = arg_store< arg_context_base, Args...>
 
using scanner_type = scanner< char_type, T >
 
- Public Types inherited from scn::detail::context_base< Stream, Stream::char_type, basic_parse_context< Stream::char_type >, Options, Locale >
using stream_type = Stream
 
using char_type = typename stream_type::char_type
 
using format_string_char_type = Stream::char_type
 
using parse_context_type = basic_parse_context< Stream::char_type >
 
using options_type = Options
 
using locale_type = Locale
 
using scanner_type = scanner< char_type, T >
 

Public Member Functions

 basic_context (stream_type &s, basic_string_view< char_type > f, args_type args)
 
 basic_context (stream_type &s, basic_string_view< char_type > f, args_type args, options_type opt)
 
- Public Member Functions inherited from scn::detail::arg_context_base< Stream, basic_parse_context< Stream::char_type >, Locale, Options >
 arg_context_base (stream_type &s, parse_context_type p, args_type args)
 
 arg_context_base (stream_type &s, parse_context_type p, args_type args, options_type opt)
 
expected< arg_typenext_arg ()
 
expected< arg_typearg (size_t id)
 
expected< arg_typearg (basic_string_view< char_type >)
 
- Public Member Functions inherited from scn::detail::context_base< Stream, Stream::char_type, basic_parse_context< Stream::char_type >, Options, Locale >
SCN_CONSTEXPR14 stream_typestream () noexcept
 
- Public Member Functions inherited from scn::detail::context_locale_base< Locale >
 context_locale_base (Localeloc)
 
SCN_CONSTEXPR14 Locale & locale () noexcept
 
SCN_CONSTEXPR const Locale & locale () const noexcept
 
- Public Member Functions inherited from scn::detail::context_parse_context_base< basic_parse_context< Stream::char_type > >
 context_parse_context_base (basic_parse_context< Stream::char_type >pctx)
 
SCN_CONSTEXPR14
basic_parse_context
< Stream::char_type > & 
parse_context () noexcept
 
SCN_CONSTEXPR const
basic_parse_context
< Stream::char_type > & 
parse_context () const noexcept
 
- Public Member Functions inherited from scn::detail::context_options_base< Options >
 context_options_base (Options opt)
 
SCN_CONSTEXPR14 Options & get_options () noexcept
 
SCN_CONSTEXPR const Options & get_options () const noexcept
 
SCN_CONSTEXPR method int_method () const noexcept
 
SCN_CONSTEXPR method float_method () const noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from scn::detail::context_base< Stream, Stream::char_type, basic_parse_context< Stream::char_type >, Options, Locale >
SCN_CLANG_PUSH_IGNORE_UNDEFINED_TEMPLATE context_base (stream_type &s, parse_context_type pctx, locale_type loc, options_type opt)
 

Detailed Description

template<typename Stream, typename Locale = basic_default_locale_ref<typename Stream::char_type>, typename Options = default_options>
class scn::basic_context< Stream, Locale, Options >

Definition at line 224 of file context.h.

Member Typedef Documentation

template<typename Stream, typename Locale = basic_default_locale_ref<typename Stream::char_type>, typename Options = default_options>
using scn::basic_context< Stream, Locale, Options >::args_type = typename base::args_type

Definition at line 238 of file context.h.

template<typename Stream, typename Locale = basic_default_locale_ref<typename Stream::char_type>, typename Options = default_options>
using scn::basic_context< Stream, Locale, Options >::char_type = typename base::char_type

Definition at line 237 of file context.h.

template<typename Stream, typename Locale = basic_default_locale_ref<typename Stream::char_type>, typename Options = default_options>
using scn::basic_context< Stream, Locale, Options >::options_type = typename base::options_type

Definition at line 239 of file context.h.

template<typename Stream, typename Locale = basic_default_locale_ref<typename Stream::char_type>, typename Options = default_options>
using scn::basic_context< Stream, Locale, Options >::parse_context_type = typename base::parse_context_type

Definition at line 240 of file context.h.

template<typename Stream, typename Locale = basic_default_locale_ref<typename Stream::char_type>, typename Options = default_options>
using scn::basic_context< Stream, Locale, Options >::stream_type = typename base::stream_type

Definition at line 236 of file context.h.

Constructor & Destructor Documentation

template<typename Stream, typename Locale = basic_default_locale_ref<typename Stream::char_type>, typename Options = default_options>
scn::basic_context< Stream, Locale, Options >::basic_context ( stream_type s,
basic_string_view< char_type f,
args_type  args 
)
inline

Definition at line 242 of file context.h.

template<typename Stream, typename Locale = basic_default_locale_ref<typename Stream::char_type>, typename Options = default_options>
scn::basic_context< Stream, Locale, Options >::basic_context ( stream_type s,
basic_string_view< char_type f,
args_type  args,
options_type  opt 
)
inline

Definition at line 248 of file context.h.


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