ReactOS 0.4.16-dev-340-g0540c21
_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_ostream< _CharT, _Traits > * tie() const
Definition: _ios.h:62
void setstate(iostate __state)
Definition: _ios.h:95
bool good() const
Definition: _ios_base.h:172

◆ __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}

◆ 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}
#define _STLP_DEFAULT_CONSTRUCTED(_TTp)
Definition: _construct.h:265

Referenced by ends().

◆ 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}

◆ 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 240 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,
char  __c 
)
inline

Definition at line 296 of file _ostream.h.

297 {
298 __os._M_put_char(__os.widen(__c));
299 return __os;
300}

◆ operator<<() [3/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 247 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<<() [4/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 324 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<<() [5/10]

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

Definition at line 303 of file _ostream.h.

304 {
305 __os._M_put_char(__c);
306 return __os;
307}

◆ operator<<() [6/10]

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

Definition at line 331 of file _ostream.h.

332 {
333 __os._M_put_nowiden(__s);
334 return __os;
335}

◆ operator<<() [7/10]

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

Definition at line 338 of file _ostream.h.

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

◆ operator<<() [8/10]

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

Definition at line 338 of file _ostream.h.

346 {
347 __os._M_put_nowiden(__REINTERPRET_CAST(const char*,__s));
348 return __os;
349}

◆ operator<<() [9/10]

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

Definition at line 310 of file _ostream.h.

311 {
312 __os._M_put_char(__c);
313 return __os;
314}

◆ operator<<() [10/10]

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

Definition at line 317 of file _ostream.h.

318 {
319 __os._M_put_char(__c);
320 return __os;
321}