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

#include <erased_stream.h>

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

Public Types

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_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_stream< CharT >

Definition at line 173 of file erased_stream.h.

Member Typedef Documentation

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

Definition at line 175 of file erased_stream.h.

Constructor & Destructor Documentation

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

Definition at line 177 of file erased_stream.h.

Member Function Documentation

template<typename CharT >
detail::erased_stream_base<CharT>& scn::erased_stream< CharT >::get ( )
inline

Definition at line 201 of file erased_stream.h.

template<typename CharT >
const detail::erased_stream_base<CharT>& scn::erased_stream< CharT >::get ( ) const
inline

Definition at line 205 of file erased_stream.h.

template<typename CharT >
template<typename Stream >
detail::erased_stream_impl<Stream>& scn::erased_stream< CharT >::get_as ( )
inline

Definition at line 211 of file erased_stream.h.

template<typename CharT >
template<typename Stream >
const detail::erased_stream_impl<Stream>& scn::erased_stream< CharT >::get_as ( ) const
inline

Definition at line 216 of file erased_stream.h.

template<typename CharT >
error scn::erased_stream< CharT >::putback ( char_type  ch)
inline

Definition at line 187 of file erased_stream.h.

template<typename CharT >
expected<char_type> scn::erased_stream< CharT >::read_char ( )
inline

Definition at line 183 of file erased_stream.h.

template<typename CharT >
error scn::erased_stream< CharT >::roll_back ( )
inline

Definition at line 196 of file erased_stream.h.

template<typename CharT >
error scn::erased_stream< CharT >::set_roll_back ( )
inline

Definition at line 192 of file erased_stream.h.


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