STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
basic_istream< _Elem, _Traits >::sentry Class Reference
Inheritance diagram for basic_istream< _Elem, _Traits >::sentry:
basic_istream< _Elem, _Traits >::_Sentry_base

Public Member Functions

__CLR_OR_THIS_CALL sentry (_Myt &_Istr, bool _Noskip=false)
 
__CLR_OR_THIS_CALL operator bool () const
 
__CLR_OR_THIS_CALL sentry (const sentry &)=delete
 
sentry &__CLR_OR_THIS_CALL operator= (const sentry &)=delete
 
- Public Member Functions inherited from basic_istream< _Elem, _Traits >::_Sentry_base
__CLR_OR_THIS_CALL _Sentry_base (_Myt &_Istr)
 
__CLR_OR_THIS_CALL ~_Sentry_base () _NOEXCEPT
 

Private Attributes

bool _Ok
 

Additional Inherited Members

- Public Attributes inherited from basic_istream< _Elem, _Traits >::_Sentry_base
_Myt_Myistr
 

Constructor & Destructor Documentation

template<class _Elem, class _Traits>
__CLR_OR_THIS_CALL basic_istream< _Elem, _Traits >::sentry::sentry ( _Myt _Istr,
bool  _Noskip = false 
)
inlineexplicit
115  : _Sentry_base(_Istr)
116  { // construct locking and calling _Ipfx
117  _Ok = this->_Myistr._Ipfx(_Noskip);
118  }
bool _Ok
Definition: istream:129
__CLR_OR_THIS_CALL _Sentry_base(_Myt &_Istr)
Definition: istream:91
_Myt & _Myistr
Definition: istream:104
template<class _Elem, class _Traits>
__CLR_OR_THIS_CALL basic_istream< _Elem, _Traits >::sentry::sentry ( const sentry )
delete

Member Function Documentation

template<class _Elem, class _Traits>
__CLR_OR_THIS_CALL basic_istream< _Elem, _Traits >::sentry::operator bool ( ) const
inlineexplicit
121  { // test if _Ipfx succeeded
122  return (_Ok);
123  }
bool _Ok
Definition: istream:129
template<class _Elem, class _Traits>
sentry& __CLR_OR_THIS_CALL basic_istream< _Elem, _Traits >::sentry::operator= ( const sentry )
delete

Member Data Documentation

template<class _Elem, class _Traits>
bool basic_istream< _Elem, _Traits >::sentry::_Ok
private

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