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

Public Member Functions

__CLR_OR_THIS_CALL _Sentry_base (_Myt &_Istr)
 
__CLR_OR_THIS_CALL ~_Sentry_base () _NOEXCEPT
 

Public Attributes

_Myt_Myistr
 

Private Member Functions

_Sentry_baseoperator= (const _Sentry_base &)
 

Constructor & Destructor Documentation

template<class _Elem, class _Traits>
__CLR_OR_THIS_CALL basic_istream< _Elem, _Traits >::_Sentry_base::_Sentry_base ( _Myt _Istr)
inline
93  : _Myistr(_Istr)
94  { // lock the stream buffer, if there
95  if (_Myistr.rdbuf() != 0)
96  _Myistr.rdbuf()->_Lock();
97  }
virtual void __CLR_OR_THIS_CALL _Lock()
Definition: streambuf:211
_Mysb *__CLR_OR_THIS_CALL rdbuf() const
Definition: ios:90
_Myt & _Myistr
Definition: istream:105
template<class _Elem, class _Traits>
__CLR_OR_THIS_CALL basic_istream< _Elem, _Traits >::_Sentry_base::~_Sentry_base ( )
inline
100  { // destroy after unlocking
101  if (_Myistr.rdbuf() != 0)
102  _Myistr.rdbuf()->_Unlock();
103  }
virtual void __CLR_OR_THIS_CALL _Unlock()
Definition: streambuf:215
_Mysb *__CLR_OR_THIS_CALL rdbuf() const
Definition: ios:90
_Myt & _Myistr
Definition: istream:105

Member Function Documentation

template<class _Elem, class _Traits>
_Sentry_base& basic_istream< _Elem, _Traits >::_Sentry_base::operator= ( const _Sentry_base )
private

Member Data Documentation

template<class _Elem, class _Traits>
_Myt& basic_istream< _Elem, _Traits >::_Sentry_base::_Myistr

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