ReactOS  0.4.14-dev-57-g333b8f1
_ostream.h File Reference
#include <stl/_ios.h>
#include <stl/_ostreambuf_iterator.h>
#include <stl/_exception.h>
Include dependency graph for _ostream.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Functions

template<class _CharT , class _Traits >
_STLP_BEGIN_NAMESPACE _STLP_MOVE_TO_PRIV_NAMESPACE bool __init_bostr (basic_ostream< _CharT, _Traits > &__str)
 
template<class _CharT , class _Traits >
_STLP_MOVE_TO_PRIV_NAMESPACE bool __init_bostr (basic_ostream< _CharT, _Traits > &__str)
 
template<class _CharT , class _Traits >
basic_streambuf< _CharT, _Traits > *_STLP_CALL __get_ostreambuf (basic_ostream< _CharT, _Traits > &__St)
 
template<class _CharT , class _Traits >
_STLP_MOVE_TO_STD_NAMESPACE basic_ostream< _CharT, _Traits > &_STLP_CALL operator<< (basic_ostream< _CharT, _Traits > &__os, _CharT __c)
 
template<class _CharT , class _Traits >
basic_ostream< _CharT, _Traits > &_STLP_CALL operator<< (basic_ostream< _CharT, _Traits > &__os, const _CharT *__s)
 
template<class _CharT , class _Traits >
basic_ostream< _CharT, _Traits > &_STLP_CALL operator<< (basic_ostream< _CharT, _Traits > &__os, char __c)
 
template<class _Traits >
basic_ostream< char, _Traits > &_STLP_CALL operator<< (basic_ostream< char, _Traits > &__os, char __c)
 
template<class _Traits >
basic_ostream< char, _Traits > &_STLP_CALL operator<< (basic_ostream< char, _Traits > &__os, signed char __c)
 
template<class _Traits >
basic_ostream< char, _Traits > &_STLP_CALL operator<< (basic_ostream< char, _Traits > &__os, unsigned char __c)
 
template<class _CharT , class _Traits >
basic_ostream< _CharT, _Traits > &_STLP_CALL operator<< (basic_ostream< _CharT, _Traits > &__os, const char *__s)
 
template<class _Traits >
basic_ostream< char, _Traits > &_STLP_CALL operator<< (basic_ostream< char, _Traits > &__os, const char *__s)
 
template<class _Traits >
basic_ostream< char, _Traits > &_STLP_CALL operator<< (basic_ostream< char, _Traits > &__os, const signed char *__s)
 
template<class _Traits >
basic_ostream< char, _Traits > & operator<< (basic_ostream< char, _Traits > &__os, const unsigned char *__s)
 
template<class _CharT , class _Traits >
basic_ostream< _CharT, _Traits > &_STLP_CALL endl (basic_ostream< _CharT, _Traits > &__os)
 
template<class _CharT , class _Traits >
basic_ostream< _CharT, _Traits > &_STLP_CALL ends (basic_ostream< _CharT, _Traits > &__os)
 
template<class _CharT , class _Traits >
basic_ostream< _CharT, _Traits > &_STLP_CALL flush (basic_ostream< _CharT, _Traits > &__os)
 

Function Documentation

◆ __get_ostreambuf()

template<class _CharT , class _Traits >
basic_streambuf<_CharT, _Traits>* _STLP_CALL __get_ostreambuf ( basic_ostream< _CharT, _Traits > &  __St)
inline

Definition at line 233 of file _ostream.h.

234 { return __St.rdbuf(); }
basic_streambuf< _CharT, _Traits > * rdbuf() const
Definition: _ios.h:72

◆ __init_bostr() [1/2]

template<class _CharT , class _Traits >
_STLP_BEGIN_NAMESPACE _STLP_MOVE_TO_PRIV_NAMESPACE bool __init_bostr ( basic_ostream< _CharT, _Traits > &  __str)

Definition at line 218 of file _ostream.h.

218  {
219  if (__str.good()) {
220  // boris : check if this is needed !
221  if (!__str.rdbuf())
222  __str.setstate(ios_base::badbit);
223  if (__str.tie())
224  __str.tie()->flush();
225  return __str.good();
226  }
227  else
228  return false;
229 }
basic_streambuf< _CharT, _Traits > * rdbuf() const
Definition: _ios.h:72
void setstate(iostate __state)
Definition: _ios.h:95
bool good() const
Definition: _ios_base.h:172
basic_ostream< _CharT, _Traits > * tie() const
Definition: _ios.h:62

◆ __init_bostr() [2/2]

template<class _CharT , class _Traits >
_STLP_MOVE_TO_PRIV_NAMESPACE bool __init_bostr ( basic_ostream< _CharT, _Traits > &  __str)

Definition at line 218 of file _ostream.h.

218  {
219  if (__str.good()) {
220  // boris : check if this is needed !
221  if (!__str.rdbuf())
222  __str.setstate(ios_base::badbit);
223  if (__str.tie())
224  __str.tie()->flush();
225  return __str.good();
226  }
227  else
228  return false;
229 }
basic_streambuf< _CharT, _Traits > * rdbuf() const
Definition: _ios.h:72
void setstate(iostate __state)
Definition: _ios.h:95
bool good() const
Definition: _ios_base.h:172
basic_ostream< _CharT, _Traits > * tie() const
Definition: _ios.h:62

◆ endl()

◆ ends()

template<class _CharT , class _Traits >
basic_ostream<_CharT, _Traits>& _STLP_CALL ends ( basic_ostream< _CharT, _Traits > &  __os)
inline

Definition at line 365 of file _ostream.h.

365  {
366  __os.put(_STLP_DEFAULT_CONSTRUCTED(_CharT));
367  return __os;
368 }
_Self & put(char_type __c)
Definition: _ostream.c:408
#define _STLP_DEFAULT_CONSTRUCTED(_TTp)
Definition: _construct.h:265

◆ flush()

template<class _CharT , class _Traits >
basic_ostream<_CharT, _Traits>& _STLP_CALL flush ( basic_ostream< _CharT, _Traits > &  __os)
inline

Definition at line 372 of file _ostream.h.

372  {
373  __os.flush();
374  return __os;
375 }
_Self & flush()
Definition: _ostream.h:134

◆ operator<<() [1/10]

template<class _CharT , class _Traits >
_STLP_MOVE_TO_STD_NAMESPACE basic_ostream<_CharT, _Traits>& _STLP_CALL operator<< ( basic_ostream< _CharT, _Traits > &  __os,
_CharT  __c 
)
inline

Definition at line 241 of file _ostream.h.

241  {
242  __os._M_put_char(__c);
243  return __os;
244 }
void _M_put_char(_CharT __c)
Definition: _ostream.c:300
#define __c
Definition: schilyio.h:209

◆ operator<<() [2/10]

template<class _CharT , class _Traits >
basic_ostream<_CharT, _Traits>& _STLP_CALL operator<< ( basic_ostream< _CharT, _Traits > &  __os,
const _CharT *  __s 
)
inline

Definition at line 248 of file _ostream.h.

248  {
249  __os._M_put_nowiden(__s);
250  return __os;
251 }
void _M_put_nowiden(const _CharT *__s)
Definition: _ostream.c:331

◆ operator<<() [3/10]

template<class _CharT , class _Traits >
basic_ostream<_CharT, _Traits>& _STLP_CALL operator<< ( basic_ostream< _CharT, _Traits > &  __os,
char  __c 
)
inline

Definition at line 297 of file _ostream.h.

297  {
298  __os._M_put_char(__os.widen(__c));
299  return __os;
300 }
void _M_put_char(_CharT __c)
Definition: _ostream.c:300
#define __c
Definition: schilyio.h:209
_CharT widen(char) const
Definition: _ios.h:150

◆ operator<<() [4/10]

template<class _Traits >
basic_ostream<char, _Traits>& _STLP_CALL operator<< ( basic_ostream< char, _Traits > &  __os,
char  __c 
)
inline

Definition at line 304 of file _ostream.h.

304  {
305  __os._M_put_char(__c);
306  return __os;
307 }
void _M_put_char(_CharT __c)
Definition: _ostream.c:300
#define __c
Definition: schilyio.h:209

◆ operator<<() [5/10]

template<class _Traits >
basic_ostream<char, _Traits>& _STLP_CALL operator<< ( basic_ostream< char, _Traits > &  __os,
signed char  __c 
)
inline

Definition at line 311 of file _ostream.h.

311  {
312  __os._M_put_char(__c);
313  return __os;
314 }
void _M_put_char(_CharT __c)
Definition: _ostream.c:300
#define __c
Definition: schilyio.h:209

◆ operator<<() [6/10]

template<class _Traits >
basic_ostream<char, _Traits>& _STLP_CALL operator<< ( basic_ostream< char, _Traits > &  __os,
unsigned char  __c 
)
inline

Definition at line 318 of file _ostream.h.

318  {
319  __os._M_put_char(__c);
320  return __os;
321 }
void _M_put_char(_CharT __c)
Definition: _ostream.c:300
#define __c
Definition: schilyio.h:209

◆ operator<<() [7/10]

template<class _CharT , class _Traits >
basic_ostream<_CharT, _Traits>& _STLP_CALL operator<< ( basic_ostream< _CharT, _Traits > &  __os,
const char __s 
)
inline

Definition at line 325 of file _ostream.h.

325  {
326  __os._M_put_widen(__s);
327  return __os;
328 }
void _M_put_widen(const char *__s)
Definition: _ostream.c:363

◆ operator<<() [8/10]

template<class _Traits >
basic_ostream<char, _Traits>& _STLP_CALL operator<< ( basic_ostream< char, _Traits > &  __os,
const char __s 
)
inline

Definition at line 332 of file _ostream.h.

332  {
333  __os._M_put_nowiden(__s);
334  return __os;
335 }
void _M_put_nowiden(const _CharT *__s)
Definition: _ostream.c:331

◆ operator<<() [9/10]

template<class _Traits >
basic_ostream<char, _Traits>& _STLP_CALL operator<< ( basic_ostream< char, _Traits > &  __os,
const signed char __s 
)
inline

Definition at line 339 of file _ostream.h.

339  {
340  __os._M_put_nowiden(__REINTERPRET_CAST(const char*,__s));
341  return __os;
342 }
void _M_put_nowiden(const _CharT *__s)
Definition: _ostream.c:331
#define __REINTERPRET_CAST(__x, __y)
Definition: features.h:586

◆ operator<<() [10/10]

template<class _Traits >
basic_ostream<char, _Traits>& operator<< ( basic_ostream< char, _Traits > &  __os,
const unsigned char __s 
)
inline

Definition at line 346 of file _ostream.h.

346  {
347  __os._M_put_nowiden(__REINTERPRET_CAST(const char*,__s));
348  return __os;
349 }
void _M_put_nowiden(const _CharT *__s)
Definition: _ostream.c:331
#define __REINTERPRET_CAST(__x, __y)
Definition: features.h:586