scnlib  0.1.2
FormattedinputformodernC++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
scn::erased_sized_stream< CharT > Class Template Reference

#include <erased_stream.h>

Inheritance diagram for scn::erased_sized_stream< CharT >:
scn::erased_stream< CharT > scn::stream_base

Public Types

using char_type = CharT
 
using is_sized_stream = std::true_type
 
- Public Types inherited from scn::erased_stream< CharT >
using char_type = CharT
 
- Public Types inherited from scn::stream_base
using is_sized_stream = std::false_type
 

Public Member Functions

template<typename Stream >
 erased_sized_stream (Stream s)
 
void read_sized (span< char_type > s)
 
void putback_n (size_t n)
 
size_t chars_to_read () const
 
void skip (size_t n)
 
void skip_all ()
 
detail::erased_sized_stream_base
< CharT > & 
get_sized ()
 
const
detail::erased_sized_stream_base
< CharT > & 
get_sized () const
 
- Public Member Functions inherited from scn::erased_stream< CharT >
template<typename Stream >
 erased_stream (Stream s)
 
expected< char_typeread_char ()
 
error putback (char_type ch)
 
error set_roll_back ()
 
error roll_back ()
 
detail::erased_stream_base
< CharT > & 
get ()
 
const
detail::erased_stream_base
< CharT > & 
get () const
 
template<typename Stream >
detail::erased_stream_impl
< Stream > & 
get_as ()
 
template<typename Stream >
const
detail::erased_stream_impl
< Stream > & 
get_as () const
 
- Public Member Functions inherited from scn::stream_base
SCN_CONSTEXPR14 void _set_bad () noexcept
 
SCN_CONSTEXPR bool bad () const noexcept
 
SCN_CONSTEXPR operator bool () const noexcept
 

Detailed Description

template<typename CharT>
class scn::erased_sized_stream< CharT >

Definition at line 227 of file erased_stream.h.

Member Typedef Documentation

template<typename CharT >
using scn::erased_sized_stream< CharT >::char_type = CharT

Definition at line 231 of file erased_stream.h.

template<typename CharT >
using scn::erased_sized_stream< CharT >::is_sized_stream = std::true_type

Definition at line 232 of file erased_stream.h.

Constructor & Destructor Documentation

template<typename CharT >
template<typename Stream >
scn::erased_sized_stream< CharT >::erased_sized_stream ( Stream  s)
inline

Definition at line 235 of file erased_stream.h.

Member Function Documentation

template<typename CharT >
size_t scn::erased_sized_stream< CharT >::chars_to_read ( ) const
inline

Definition at line 253 of file erased_stream.h.

template<typename CharT >
detail::erased_sized_stream_base<CharT>& scn::erased_sized_stream< CharT >::get_sized ( )
inline

Definition at line 267 of file erased_stream.h.

template<typename CharT >
const detail::erased_sized_stream_base<CharT>& scn::erased_sized_stream< CharT >::get_sized ( ) const
inline

Definition at line 271 of file erased_stream.h.

template<typename CharT >
void scn::erased_sized_stream< CharT >::putback_n ( size_t  n)
inline

Definition at line 248 of file erased_stream.h.

template<typename CharT >
void scn::erased_sized_stream< CharT >::read_sized ( span< char_type s)
inline

Definition at line 243 of file erased_stream.h.

template<typename CharT >
void scn::erased_sized_stream< CharT >::skip ( size_t  n)
inline

Definition at line 258 of file erased_stream.h.

template<typename CharT >
void scn::erased_sized_stream< CharT >::skip_all ( )
inline

Definition at line 262 of file erased_stream.h.


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