ReactOS 0.4.15-dev-7924-g5949c20
basic_ostream< _CharT, _Traits >::sentry Class Reference

#include <_ostream.h>

Public Member Functions

 sentry (basic_ostream< _CharT, _Traits > &__str)
 
 ~sentry ()
 
 operator bool () const
 

Private Types

typedef sentry _Self
 

Private Member Functions

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

Private Attributes

basic_ostream< _CharT, _Traits > & _M_str
 
bool _M_ok
 

Detailed Description

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

Definition at line 172 of file _ostream.h.

Member Typedef Documentation

◆ _Self

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

Definition at line 173 of file _ostream.h.

Constructor & Destructor Documentation

◆ sentry() [1/2]

template<class _CharT , class _Traits >
basic_ostream< _CharT, _Traits >::sentry::sentry ( basic_ostream< _CharT, _Traits > &  __str)
inlineexplicit

Definition at line 180 of file _ostream.h.

181 : _M_str(__str), /* _M_buf(__str.rdbuf()), */ _M_ok(_STLP_PRIV __init_bostr(__str))
182 {}
#define _STLP_PRIV
Definition: _dm.h:70
_STLP_BEGIN_NAMESPACE _STLP_MOVE_TO_PRIV_NAMESPACE bool __init_bostr(basic_ostream< _CharT, _Traits > &__str)
Definition: _ostream.h:218
basic_ostream< _CharT, _Traits > & _M_str
Definition: _ostream.h:176

◆ ~sentry()

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

Definition at line 184 of file _ostream.h.

184 {
185 if (_M_str.flags() & ios_base::unitbuf)
186#if !defined (_STLP_NO_UNCAUGHT_EXCEPT_SUPPORT)
187 if (!uncaught_exception())
188#endif
189 _M_str.flush();
190 }

◆ sentry() [2/2]

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

Definition at line 195 of file _ostream.h.

195: _M_str(__s._M_str) {}

Member Function Documentation

◆ operator bool()

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

Definition at line 192 of file _ostream.h.

192{ return _M_ok; }

◆ operator=()

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

Definition at line 196 of file _ostream.h.

196{ return *this; }

Member Data Documentation

◆ _M_ok

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

Definition at line 178 of file _ostream.h.

◆ _M_str

template<class _CharT , class _Traits >
basic_ostream<_CharT, _Traits>& basic_ostream< _CharT, _Traits >::sentry::_M_str
private

Definition at line 176 of file _ostream.h.


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