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_ostream< _Elem, _Traits >::_Sentry_base Class Reference
Inheritance diagram for basic_ostream< _Elem, _Traits >::_Sentry_base:
basic_ostream< _Elem, _Traits >::sentry

Public Member Functions

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

Public Attributes

_Myt_Myostr
 

Private Member Functions

_Sentry_baseoperator= (const _Sentry_base &)
 

Constructor & Destructor Documentation

template<class _Elem, class _Traits>
__CLR_OR_THIS_CALL basic_ostream< _Elem, _Traits >::_Sentry_base::_Sentry_base ( _Myt _Ostr)
inline
98  : _Myostr(_Ostr)
99  { // lock the stream buffer, if there
100  if (_Myostr.rdbuf() != 0)
101  _Myostr.rdbuf()->_Lock();
102  }
virtual void __CLR_OR_THIS_CALL _Lock()
Definition: streambuf:210
_Mysb *__CLR_OR_THIS_CALL rdbuf() const
Definition: ios:89
_Myt & _Myostr
Definition: ostream:110
template<class _Elem, class _Traits>
__CLR_OR_THIS_CALL basic_ostream< _Elem, _Traits >::_Sentry_base::~_Sentry_base ( )
inline
105  { // destroy after unlocking
106  if (_Myostr.rdbuf() != 0)
107  _Myostr.rdbuf()->_Unlock();
108  }
virtual void __CLR_OR_THIS_CALL _Unlock()
Definition: streambuf:214
_Mysb *__CLR_OR_THIS_CALL rdbuf() const
Definition: ios:89
_Myt & _Myostr
Definition: ostream:110

Member Function Documentation

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

Member Data Documentation

template<class _Elem, class _Traits>
_Myt& basic_ostream< _Elem, _Traits >::_Sentry_base::_Myostr

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