ReactOS 0.4.15-dev-7906-g1b85a5f
strstream Class Reference

#include <_strstream.h>

Inheritance diagram for strstream:
Collaboration diagram for strstream:

Public Types

typedef char char_type
 
typedef char_traits< char >::int_type int_type
 
typedef char_traits< char >::pos_type pos_type
 
typedef char_traits< char >::off_type off_type
 
- Public Types inherited from basic_iostream< char, char_traits< char > >
typedef basic_ios< char, char_traits< char > > _Basic_ios
 
- Public Types inherited from basic_istream< _CharT, _Traits >
typedef _CharT char_type
 
typedef _Traits::int_type int_type
 
typedef _Traits::pos_type pos_type
 
typedef _Traits::off_type off_type
 
typedef _Traits traits_type
 
typedef basic_ios< _CharT, _Traits > _Basic_ios
 
typedef basic_ios< _CharT, _Traits > &(_STLP_CALL__ios_fn) (basic_ios< _CharT, _Traits > &)
 
typedef ios_base &(_STLP_CALL__ios_base_fn) (ios_base &)
 
typedef _Self &(_STLP_CALL__istream_fn) (_Self &)
 
- Public Types inherited from basic_ios< _CharT, _Traits >
typedef _CharT char_type
 
typedef _Traits::int_type int_type
 
typedef _Traits::pos_type pos_type
 
typedef _Traits::off_type off_type
 
typedef _Traits traits_type
 
- Public Types inherited from ios_base
enum  event { erase_event , imbue_event , copyfmt_event }
 
typedef int fmtflags
 
typedef int iostate
 
typedef int openmode
 
typedef int seekdir
 
typedef fmtflags fmt_flags
 
typedef void(* event_callback) (event, ios_base &, int __index)
 
typedef iostate io_state
 
typedef openmode open_mode
 
typedef seekdir seek_dir
 
typedef _STLP_STD::streamoff streamoff
 
typedef _STLP_STD::streampos streampos
 
- Public Types inherited from basic_ostream< _CharT, _Traits >
typedef _CharT char_type
 
typedef _Traits::int_type int_type
 
typedef _Traits::pos_type pos_type
 
typedef _Traits::off_type off_type
 
typedef _Traits traits_type
 
typedef basic_ios< _CharT, _Traits > _Basic_ios
 
typedef basic_ios< _CharT, _Traits > &(_STLP_CALL__ios_fn) (basic_ios< _CharT, _Traits > &)
 
typedef ios_base &(_STLP_CALL__ios_base_fn) (ios_base &)
 
typedef _Self &(_STLP_CALL__ostream_fn) (_Self &)
 

Public Member Functions

 strstream ()
 
 strstream (char *, int, ios_base::openmode=ios_base::in|ios_base::out)
 
virtual ~strstream ()
 
strstreambufrdbuf () const
 
void freeze (bool=true)
 
int pcount () const
 
charstr ()
 
- Public Member Functions inherited from basic_iostream< char, char_traits< char > >
 basic_iostream (basic_streambuf< char, char_traits< char > > *__buf)
 
virtual ~basic_iostream ()
 
- Public Member Functions inherited from basic_istream< _CharT, _Traits >
 basic_istream (basic_streambuf< _CharT, _Traits > *__buf)
 
 ~basic_istream ()
 
_Selfoperator>> (__istream_fn __f)
 
_Selfoperator>> (__ios_fn __f)
 
_Selfoperator>> (__ios_base_fn __f)
 
_Selfoperator>> (short &__val)
 
_Selfoperator>> (int &__val)
 
_Selfoperator>> (unsigned short &__val)
 
_Selfoperator>> (unsigned int &__val)
 
_Selfoperator>> (long &__val)
 
_Selfoperator>> (unsigned long &__val)
 
_Selfoperator>> (float &__val)
 
_Selfoperator>> (double &__val)
 
_Selfoperator>> (long double &__val)
 
_Selfoperator>> (bool &__val)
 
_Selfoperator>> (void *&__val)
 
_Selfoperator>> (basic_streambuf< _CharT, _Traits > *)
 
streamsize gcount () const
 
int_type peek ()
 
int_type get ()
 
_Selfget (char_type &__c)
 
_Selfget (char_type *__s, streamsize __n, char_type __delim)
 
_Selfget (char_type *__s, streamsize __n)
 
_Selfget (basic_streambuf< _CharT, _Traits > &__buf, char_type __delim)
 
_Selfget (basic_streambuf< _CharT, _Traits > &__buf)
 
_Selfgetline (char_type *__s, streamsize __n, char_type delim)
 
_Selfgetline (char_type *__s, streamsize __n)
 
_Selfignore ()
 
_Selfignore (streamsize __n)
 
_Selfignore (streamsize __n, int_type __delim)
 
_Selfread (char_type *__s, streamsize __n)
 
streamsize readsome (char_type *__s, streamsize __n)
 
_Selfputback (char_type __c)
 
_Selfunget ()
 
int sync ()
 
pos_type tellg ()
 
_Selfseekg (pos_type __pos)
 
_Selfseekg (off_type, ios_base::seekdir)
 
void _M_formatted_get (_CharT &__c)
 
void _M_formatted_get (_CharT *__s)
 
void _M_skip_whitespace (bool __set_failbit)
 
- Public Member Functions inherited from basic_ios< _CharT, _Traits >
 basic_ios (basic_streambuf< _CharT, _Traits > *__streambuf)
 
virtual ~basic_ios ()
 
basic_ostream< _CharT, _Traits > * tie () const
 
basic_ostream< _CharT, _Traits > * tie (basic_ostream< char_type, traits_type > *__new_tied_ostream)
 
basic_streambuf< _CharT, _Traits > * rdbuf () const
 
basic_streambuf< _CharT, _Traits > * rdbuf (basic_streambuf< char_type, traits_type > *)
 
basic_ios< _CharT, _Traits > & copyfmt (const basic_ios< _CharT, _Traits > &__x)
 
char_type fill () const
 
char_type fill (char_type __fill)
 
void clear (iostate __state=goodbit)
 
void setstate (iostate __state)
 
iostate exceptions () const
 
void exceptions (iostate __mask)
 
locale imbue (const locale &)
 
char narrow (_CharT, char) const
 
_CharT widen (char) const
 
const ctype< char_type > * _M_ctype_facet () const
 
void _M_handle_exception (ios_base::iostate __flag)
 
- Public Member Functions inherited from ios_base
 _STLP_STATIC_CONSTANT (int, left=0x0001)
 
 _STLP_STATIC_CONSTANT (int, right=0x0002)
 
 _STLP_STATIC_CONSTANT (int, internal=0x0004)
 
 _STLP_STATIC_CONSTANT (int, dec=0x0008)
 
 _STLP_STATIC_CONSTANT (int, hex=0x0010)
 
 _STLP_STATIC_CONSTANT (int, oct=0x0020)
 
 _STLP_STATIC_CONSTANT (int, fixed=0x0040)
 
 _STLP_STATIC_CONSTANT (int, scientific=0x0080)
 
 _STLP_STATIC_CONSTANT (int, boolalpha=0x0100)
 
 _STLP_STATIC_CONSTANT (int, showbase=0x0200)
 
 _STLP_STATIC_CONSTANT (int, showpoint=0x0400)
 
 _STLP_STATIC_CONSTANT (int, showpos=0x0800)
 
 _STLP_STATIC_CONSTANT (int, skipws=0x1000)
 
 _STLP_STATIC_CONSTANT (int, unitbuf=0x2000)
 
 _STLP_STATIC_CONSTANT (int, uppercase=0x4000)
 
 _STLP_STATIC_CONSTANT (int, adjustfield=left|right|internal)
 
 _STLP_STATIC_CONSTANT (int, basefield=dec|hex|oct)
 
 _STLP_STATIC_CONSTANT (int, floatfield=scientific|fixed)
 
 _STLP_STATIC_CONSTANT (int, goodbit=0x00)
 
 _STLP_STATIC_CONSTANT (int, badbit=0x01)
 
 _STLP_STATIC_CONSTANT (int, eofbit=0x02)
 
 _STLP_STATIC_CONSTANT (int, failbit=0x04)
 
 _STLP_STATIC_CONSTANT (int, __default_mode=0x0)
 
 _STLP_STATIC_CONSTANT (int, app=0x01)
 
 _STLP_STATIC_CONSTANT (int, ate=0x02)
 
 _STLP_STATIC_CONSTANT (int, binary=0x04)
 
 _STLP_STATIC_CONSTANT (int, in=0x08)
 
 _STLP_STATIC_CONSTANT (int, out=0x10)
 
 _STLP_STATIC_CONSTANT (int, trunc=0x20)
 
 _STLP_STATIC_CONSTANT (int, beg=0x01)
 
 _STLP_STATIC_CONSTANT (int, cur=0x02)
 
 _STLP_STATIC_CONSTANT (int, end=0x04)
 
fmtflags flags () const
 
fmtflags flags (fmtflags __flags)
 
fmtflags setf (fmtflags __flag)
 
fmtflags setf (fmtflags __flag, fmtflags __mask)
 
void unsetf (fmtflags __mask)
 
streamsize precision () const
 
streamsize precision (streamsize __newprecision)
 
streamsize width () const
 
streamsize width (streamsize __newwidth)
 
locale imbue (const locale &)
 
locale getloc () const
 
longiword (int __index)
 
void *& pword (int __index)
 
virtual ~ios_base ()
 
void register_callback (event_callback __fn, int __index)
 
 operator void * () const
 
bool operator! () const
 
iostate rdstate () const
 
bool good () const
 
bool eof () const
 
bool fail () const
 
bool bad () const
 
- Public Member Functions inherited from basic_ostream< _CharT, _Traits >
 basic_ostream (basic_streambuf< _CharT, _Traits > *__buf)
 
 ~basic_ostream ()
 
_Selfoperator<< (__ostream_fn __f)
 
_Selfoperator<< (__ios_base_fn __f)
 
_Selfoperator<< (__ios_fn __ff)
 
void _M_put_char (_CharT __c)
 
void _M_put_nowiden (const _CharT *__s)
 
void _M_put_widen (const char *__s)
 
bool _M_put_widen_aux (const char *__s, streamsize __n)
 
_Selfput (char_type __c)
 
_Selfwrite (const char_type *__s, streamsize __n)
 
_Selfoperator<< (basic_streambuf< _CharT, _Traits > *__buf)
 
_Selfoperator<< (unsigned char __x)
 
_Selfoperator<< (short __x)
 
_Selfoperator<< (unsigned short __x)
 
_Selfoperator<< (int __x)
 
_Selfoperator<< (unsigned int __x)
 
_Selfoperator<< (long __x)
 
_Selfoperator<< (unsigned long __x)
 
_Selfoperator<< (float __x)
 
_Selfoperator<< (double __x)
 
_Selfoperator<< (long double __x)
 
_Selfoperator<< (const void *__x)
 
_Selfoperator<< (bool __x)
 
_Selfflush ()
 
pos_type tellp ()
 
_Selfseekp (pos_type __pos)
 
_Selfseekp (off_type __off, ios_base::seekdir __dir)
 

Private Member Functions

 strstream (strstream const &)
 
strstreamoperator= (strstream const &)
 

Private Attributes

strstreambuf _M_buf
 

Additional Inherited Members

- Static Public Member Functions inherited from basic_ios< _CharT, _Traits >
static bool _STLP_CALL _S_eof (int_type __c)
 
- Static Public Member Functions inherited from ios_base
static int _STLP_CALL xalloc ()
 
static bool _STLP_CALL sync_with_stdio (bool __sync=true)
 
- Protected Member Functions inherited from basic_ios< _CharT, _Traits >
 basic_ios ()
 
void init (basic_streambuf< _CharT, _Traits > *__streambuf)
 
- Protected Member Functions inherited from ios_base
void _M_copy_state (const ios_base &__x)
 
void _M_setstate_nothrow (iostate __state)
 
void _M_clear_nothrow (iostate __state)
 
iostate _M_get_exception_mask () const
 
void _M_set_exception_mask (iostate __mask)
 
void _M_check_exception_mask ()
 
void _M_invoke_callbacks (event)
 
void _STLP_FUNCTION_THROWS _M_throw_failure ()
 
 ios_base ()
 
- Static Protected Member Functions inherited from ios_base
static void _STLP_CALL _S_initialize ()
 
static void _STLP_CALL _S_uninitialize ()
 
- Protected Attributes inherited from basic_ios< _CharT, _Traits >
const ctype< char_type > * _M_cached_ctype
 
- Static Protected Attributes inherited from ios_base
static bool _S_is_synced = true
 

Detailed Description

Definition at line 139 of file _strstream.h.

Member Typedef Documentation

◆ char_type

Definition at line 141 of file _strstream.h.

◆ int_type

typedef char_traits<char>::int_type strstream::int_type

Definition at line 142 of file _strstream.h.

◆ off_type

typedef char_traits<char>::off_type strstream::off_type

Definition at line 144 of file _strstream.h.

◆ pos_type

typedef char_traits<char>::pos_type strstream::pos_type

Definition at line 143 of file _strstream.h.

Constructor & Destructor Documentation

◆ strstream() [1/3]

strstream::strstream ( )

Definition at line 358 of file strstream.cpp.

361}
Definition: _ios.h:48
strstreambuf _M_buf
Definition: _strstream.h:156
static int init
Definition: wintirpc.c:33

◆ strstream() [2/3]

strstream::strstream ( char s,
int  n,
ios_base::openmode  mode = ios_base::in | ios_base::out 
)

Definition at line 363 of file strstream.cpp.

365 _M_buf(s, n, mode & ios_base::app ? s + strlen(s) : s) {
367}
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
GLdouble s
Definition: gl.h:2039
GLdouble n
Definition: glext.h:7729
GLenum mode
Definition: glext.h:6217

◆ ~strstream()

strstream::~strstream ( )
virtual

Definition at line 369 of file strstream.cpp.

369{}

◆ strstream() [3/3]

strstream::strstream ( strstream const )
private

Member Function Documentation

◆ freeze()

void strstream::freeze ( bool  freezeflag = true)

Definition at line 375 of file strstream.cpp.

375 {
376 _M_buf.freeze(freezeflag);
377}
void freeze(bool=true)
Definition: strstream.cpp:102

◆ operator=()

strstream & strstream::operator= ( strstream const )
private

◆ pcount()

int strstream::pcount ( ) const

Definition at line 379 of file strstream.cpp.

379 {
380 return _M_buf.pcount();
381}
int pcount() const
Definition: strstream.cpp:112

◆ rdbuf()

strstreambuf * strstream::rdbuf ( ) const

Definition at line 371 of file strstream.cpp.

371 {
372 return __CONST_CAST(strstreambuf*,&_M_buf);
373}
#define __CONST_CAST(__x, __y)
Definition: features.h:584

◆ str()

char * strstream::str ( )

Definition at line 383 of file strstream.cpp.

383 {
384 return _M_buf.str();
385}
char * str()
Definition: strstream.cpp:107

Member Data Documentation

◆ _M_buf

strstreambuf strstream::_M_buf
private

Definition at line 156 of file _strstream.h.

Referenced by freeze(), pcount(), rdbuf(), str(), and strstream().


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