ReactOS 0.4.16-dev-338-g34e76ad
basic_istream< _CharT, _Traits >::sentry Class Reference

#include <_istream.h>

Public Types

typedef _Traits traits_type
 

Public Member Functions

 sentry (basic_istream< _CharT, _Traits > &__istr, bool __noskipws=false)
 
 sentry (basic_istream< _CharT, _Traits > &__istr, _No_Skip_WS)
 
 ~sentry ()
 
 operator bool () const
 

Private Types

typedef sentry _Self
 

Private Member Functions

 sentry (const _Self &)
 
_Selfoperator= (const _Self &)
 

Private Attributes

const bool _M_ok
 

Detailed Description

template<class _CharT, class _Traits>
class basic_istream< _CharT, _Traits >::sentry

Definition at line 187 of file _istream.h.

Member Typedef Documentation

◆ _Self

template<class _CharT , class _Traits >
typedef sentry basic_istream< _CharT, _Traits >::sentry::_Self
private

Definition at line 188 of file _istream.h.

◆ traits_type

template<class _CharT , class _Traits >
typedef _Traits basic_istream< _CharT, _Traits >::sentry::traits_type

Definition at line 196 of file _istream.h.

Constructor & Destructor Documentation

◆ sentry() [1/3]

template<class _CharT , class _Traits >
basic_istream< _CharT, _Traits >::sentry::sentry ( basic_istream< _CharT, _Traits > &  __istr,
bool  __noskipws = false 
)
inlineexplicit

Definition at line 198 of file _istream.h.

199 :
200 _M_ok((__noskipws || !(__istr.flags() & ios_base::skipws)) ? _M_init_noskip(__istr) : _M_init_skip(__istr) )
201 /* , _M_buf(__istr.rdbuf()) */
202 {}
bool _M_init_noskip(basic_istream< _CharT, _Traits > &__istr)
Definition: _istream.h:310
bool _M_init_skip(basic_istream< _CharT, _Traits > &__istr)
Definition: _istream.h:294
const bool _M_ok
Definition: _istream.h:192
fmtflags flags() const
Definition: _ios_base.h:107

◆ sentry() [2/3]

template<class _CharT , class _Traits >
basic_istream< _CharT, _Traits >::sentry::sentry ( basic_istream< _CharT, _Traits > &  __istr,
_No_Skip_WS   
)
inline

Definition at line 206 of file _istream.h.

206 : /* _M_buf(__istr.rdbuf()), */
207 _M_ok(_M_init_noskip(__istr)) {}

◆ ~sentry()

template<class _CharT , class _Traits >
basic_istream< _CharT, _Traits >::sentry::~sentry ( )
inline

Definition at line 209 of file _istream.h.

209{}

◆ sentry() [3/3]

template<class _CharT , class _Traits >
basic_istream< _CharT, _Traits >::sentry::sentry ( const _Self )
inlineprivate

Definition at line 215 of file _istream.h.

215: _M_ok(false) {}

Member Function Documentation

◆ operator bool()

template<class _CharT , class _Traits >
basic_istream< _CharT, _Traits >::sentry::operator bool ( ) const
inline

Definition at line 211 of file _istream.h.

211{ return _M_ok; }

◆ operator=()

template<class _CharT , class _Traits >
_Self & basic_istream< _CharT, _Traits >::sentry::operator= ( const _Self )
inlineprivate

Definition at line 216 of file _istream.h.

216{ return *this; }

Member Data Documentation

◆ _M_ok

template<class _CharT , class _Traits >
const bool basic_istream< _CharT, _Traits >::sentry::_M_ok
private

Definition at line 192 of file _istream.h.


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