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
99  : _Myostr(_Ostr)
100  { // lock the stream buffer, if there
101  if (_Myostr.rdbuf() != 0)
102  _Myostr.rdbuf()->_Lock();
103  }
virtual void __CLR_OR_THIS_CALL _Lock()
Definition: streambuf:211
_Mysb *__CLR_OR_THIS_CALL rdbuf() const
Definition: ios:90
_Myt & _Myostr
Definition: ostream:111
template<class _Elem, class _Traits>
__CLR_OR_THIS_CALL basic_ostream< _Elem, _Traits >::_Sentry_base::~_Sentry_base ( )
inline
106  { // destroy after unlocking
107  if (_Myostr.rdbuf() != 0)
108  _Myostr.rdbuf()->_Unlock();
109  }
virtual void __CLR_OR_THIS_CALL _Unlock()
Definition: streambuf:215
_Mysb *__CLR_OR_THIS_CALL rdbuf() const
Definition: ios:90
_Myt & _Myostr
Definition: ostream:111

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: