STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Private Attributes | List of all members
ostrstream Class Reference
Inheritance diagram for ostrstream:
basic_ostream< _Elem, _Traits > basic_ios< _Elem, _Traits > ios_base _Iosb< int >

Public Types

typedef ostrstream _Myt
 
typedef ostream _Mybase
 
typedef strstreambuf _Mysb
 
- Public Types inherited from basic_ostream< _Elem, _Traits >
typedef basic_ostream< _Elem, _Traits > _Myt
 
typedef basic_ios< _Elem, _Traits > _Myios
 
typedef basic_streambuf< _Elem, _Traits > _Mysb
 
typedef ostreambuf_iterator< _Elem, _Traits > _Iter
 
typedef num_put< _Elem, _Iter_Nput
 
typedef _Traits::int_type int_type
 
typedef _Traits::pos_type pos_type
 
typedef _Traits::off_type off_type
 
- Public Types inherited from basic_ios< _Elem, _Traits >
typedef basic_ios< _Elem, _Traits > _Myt
 
typedef basic_ostream< _Elem, _Traits > _Myos
 
typedef basic_streambuf< _Elem, _Traits > _Mysb
 
typedef ctype< _Elem > _Ctype
 
typedef _Elem char_type
 
typedef _Traits traits_type
 
typedef _Traits::int_type int_type
 
typedef _Traits::pos_type pos_type
 
typedef _Traits::off_type off_type
 
- Public Types inherited from ios_base
enum  event { erase_event, imbue_event, copyfmt_event }
 
typedef _STD streamoff streamoff
 
typedef _STD streampos streampos
 
typedef void(__CLRCALL_OR_CDECLevent_callback) (event, ios_base &, int)
 
typedef unsigned int io_state
 
typedef unsigned int open_mode
 
typedef unsigned int seek_dir
 
- Public Types inherited from _Iosb< int >
enum  _Dummy_enum
 
enum  _Fmtflags
 
enum  _Iostate
 
enum  _Openmode
 
enum  _Seekdir
 
enum  
 

Public Member Functions

__CLR_OR_THIS_CALL ostrstream ()
 
__CLR_OR_THIS_CALL ostrstream (char *_Ptr, streamsize _Count, ios_base::openmode _Mode=ios_base::out)
 
__CLR_OR_THIS_CALL ostrstream (_Myt &&_Right)
 
_Myt &__CLR_OR_THIS_CALL operator= (_Myt &&_Right)
 
void __CLR_OR_THIS_CALL _Assign_rv (_Myt &&_Right)
 
void __CLR_OR_THIS_CALL swap (_Myt &_Right)
 
virtual __CLR_OR_THIS_CALL ~ostrstream () _NOEXCEPT
 
_Mysb *__CLR_OR_THIS_CALL rdbuf () const
 
void __CLR_OR_THIS_CALL freeze (bool _Freezeit=true)
 
char *__CLR_OR_THIS_CALL str ()
 
streamsize __CLR_OR_THIS_CALL pcount () const
 
- Public Member Functions inherited from basic_ostream< _Elem, _Traits >
__CLR_OR_THIS_CALL basic_ostream (basic_streambuf< _Elem, _Traits > *_Strbuf, bool _Isstd=false)
 
__CLR_OR_THIS_CALL basic_ostream (_Uninitialized, bool _Addit=true)
 
__CLR_OR_THIS_CALL basic_ostream (const _Myt &)=delete
 
_Myt &__CLR_OR_THIS_CALL operator= (const _Myt &)=delete
 
virtual __CLR_OR_THIS_CALL ~basic_ostream () _NOEXCEPT
 
bool __CLR_OR_THIS_CALL opfx ()
 
void __CLR_OR_THIS_CALL osfx ()
 
void __CLR_OR_THIS_CALL _Osfx ()
 
_Myt &__CLR_OR_THIS_CALL operator<< (_Myt &(__cdecl *_Pfn)(_Myt &))
 
_Myt &__CLR_OR_THIS_CALL operator<< (_Myios &(__cdecl *_Pfn)(_Myios &))
 
_Myt &__CLR_OR_THIS_CALL operator<< (ios_base &(__cdecl *_Pfn)(ios_base &))
 
_Myt &__CLR_OR_THIS_CALL operator<< (_Bool _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (short _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (unsigned short _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (int _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (unsigned int _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (long _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (unsigned long _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (float _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (double _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (long double _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (const void *_Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (_Mysb *_Strbuf)
 
_Myt &__CLR_OR_THIS_CALL put (_Elem _Ch)
 
_Myt &__CLR_OR_THIS_CALL write (const _Elem *_Str, streamsize _Count)
 
_Myt &__CLR_OR_THIS_CALL flush ()
 
_Myt &__CLR_OR_THIS_CALL seekp (pos_type _Pos)
 
_Myt &__CLR_OR_THIS_CALL seekp (off_type _Off, ios_base::seekdir _Way)
 
pos_type __CLR_OR_THIS_CALL tellp ()
 
template<>
basic_ostream< unsigned short, char_traits< unsigned short > > &__CLR_OR_THIS_CALL operator<< (unsigned short _Ch)
 
- Public Member Functions inherited from basic_ios< _Elem, _Traits >
__CLR_OR_THIS_CALL basic_ios (_Mysb *_Strbuf)
 
virtual __CLR_OR_THIS_CALL ~basic_ios () _NOEXCEPT
 
void __CLR_OR_THIS_CALL clear (iostate _State=goodbit, bool _Reraise=false)
 
void __CLR_OR_THIS_CALL clear (io_state _State)
 
void __CLR_OR_THIS_CALL setstate (iostate _State, bool _Reraise=false)
 
void __CLR_OR_THIS_CALL setstate (io_state _State)
 
_Myt &__CLR_OR_THIS_CALL copyfmt (const _Myt &_Right)
 
_Myos *__CLR_OR_THIS_CALL tie () const
 
_Myos *__CLR_OR_THIS_CALL tie (_Myos *_Newtie)
 
_Mysb *__CLR_OR_THIS_CALL rdbuf () const
 
_Mysb *__CLR_OR_THIS_CALL rdbuf (_Mysb *_Strbuf)
 
locale __CLR_OR_THIS_CALL imbue (const locale &_Loc)
 
_Elem __CLR_OR_THIS_CALL fill () const
 
_Elem __CLR_OR_THIS_CALL fill (_Elem _Newfill)
 
char __CLR_OR_THIS_CALL narrow (_Elem _Ch, char _Dflt= '\0') const
 
_Elem __CLR_OR_THIS_CALL widen (char _Byte) const
 
void __CLR_OR_THIS_CALL move (_Myt &_Right)
 
void __CLR_OR_THIS_CALL move (_Myt &&_Right)
 
void __CLR_OR_THIS_CALL swap (_Myt &_Right) _NOEXCEPT
 
void __CLR_OR_THIS_CALL set_rdbuf (_Mysb *_Strbuf)
 
__CLR_OR_THIS_CALL basic_ios (const _Myt &)=delete
 
_Myt &__CLR_OR_THIS_CALL operator= (const _Myt &)=delete
 
- Public Member Functions inherited from ios_base
 _BITMASK (_Fmtflags, fmtflags)
 
 _BITMASK (_Iostate, iostate)
 
 _BITMASK (_Openmode, openmode)
 
 _BITMASK (_Seekdir, seekdir)
 
__CLR_OR_THIS_CALL operator bool () const
 
bool __CLR_OR_THIS_CALL operator! () const
 
void __CLR_OR_THIS_CALL clear (iostate _State, bool _Reraise)
 
void __CLR_OR_THIS_CALL clear (iostate _State=goodbit)
 
void __CLR_OR_THIS_CALL clear (io_state _State)
 
iostate __CLR_OR_THIS_CALL rdstate () const
 
void __CLR_OR_THIS_CALL setstate (iostate _State, bool _Exreraise)
 
void __CLR_OR_THIS_CALL setstate (iostate _State)
 
void __CLR_OR_THIS_CALL setstate (io_state _State)
 
bool __CLR_OR_THIS_CALL good () const
 
bool __CLR_OR_THIS_CALL eof () const
 
bool __CLR_OR_THIS_CALL fail () const
 
bool __CLR_OR_THIS_CALL bad () const
 
iostate __CLR_OR_THIS_CALL exceptions () const
 
void __CLR_OR_THIS_CALL exceptions (iostate _Newexcept)
 
void __CLR_OR_THIS_CALL exceptions (io_state _State)
 
fmtflags __CLR_OR_THIS_CALL flags () const
 
fmtflags __CLR_OR_THIS_CALL flags (fmtflags _Newfmtflags)
 
fmtflags __CLR_OR_THIS_CALL setf (fmtflags _Newfmtflags)
 
fmtflags __CLR_OR_THIS_CALL setf (fmtflags _Newfmtflags, fmtflags _Mask)
 
void __CLR_OR_THIS_CALL unsetf (fmtflags _Mask)
 
streamsize __CLR_OR_THIS_CALL precision () const
 
streamsize __CLR_OR_THIS_CALL precision (streamsize _Newprecision)
 
streamsize __CLR_OR_THIS_CALL width () const
 
streamsize __CLR_OR_THIS_CALL width (streamsize _Newwidth)
 
locale __CLR_OR_THIS_CALL getloc () const
 
locale __CLR_OR_THIS_CALL imbue (const locale &_Loc)
 
long &__CLR_OR_THIS_CALL iword (int _Idx)
 
void *&__CLR_OR_THIS_CALL pword (int _Idx)
 
void __CLR_OR_THIS_CALL register_callback (event_callback _Pfn, int _Idx)
 
ios_base &__CLR_OR_THIS_CALL copyfmt (const ios_base &_Other)
 
void __CLR_OR_THIS_CALL swap (ios_base &_Right)
 
virtual __CLR_OR_THIS_CALL ~ios_base () _NOEXCEPT
 
 ios_base (const ios_base &)=delete
 
ios_baseoperator= (const ios_base &)=delete
 

Private Attributes

_Mysb _Strbuffer
 

Additional Inherited Members

- Static Public Member Functions inherited from ios_base
static int __CLRCALL_OR_CDECL xalloc ()
 
static bool __CLRCALL_OR_CDECL sync_with_stdio (bool _Newsync=true)
 
static _MRTIMP2_PURE_NPURE void __CLRCALL_PURE_OR_CDECL _Addstd (ios_base *)
 
- Public Attributes inherited from ios_base
size_t _Stdstr
 
- Static Public Attributes inherited from _Iosb< int >
static const _Fmtflags skipws
 
static const _Fmtflags unitbuf
 
static const _Fmtflags uppercase
 
static const _Fmtflags showbase
 
static const _Fmtflags showpoint
 
static const _Fmtflags showpos
 
static const _Fmtflags left
 
static const _Fmtflags right
 
static const _Fmtflags internal
 
static const _Fmtflags dec
 
static const _Fmtflags oct
 
static const _Fmtflags hex
 
static const _Fmtflags scientific
 
static const _Fmtflags fixed
 
static const _Fmtflags hexfloat
 
static const _Fmtflags boolalpha
 
static const _Fmtflags _Stdio
 
static const _Fmtflags adjustfield
 
static const _Fmtflags basefield
 
static const _Fmtflags floatfield
 
static const _Iostate goodbit
 
static const _Iostate eofbit
 
static const _Iostate failbit
 
static const _Iostate badbit
 
static const _Iostate _Hardfail
 
static const _Openmode in
 
static const _Openmode out
 
static const _Openmode ate
 
static const _Openmode app
 
static const _Openmode trunc
 
static const _Openmode _Nocreate
 
static const _Openmode _Noreplace
 
static const _Openmode binary
 
static const _Seekdir beg
 
static const _Seekdir cur
 
static const _Seekdir end
 
- Protected Member Functions inherited from basic_ostream< _Elem, _Traits >
__CLR_OR_THIS_CALL basic_ostream (_Myt &&_Right)
 
_Myt &__CLR_OR_THIS_CALL operator= (_Myt &&_Right)
 
void __CLR_OR_THIS_CALL swap (_Myt &_Right)
 
- Protected Member Functions inherited from basic_ios< _Elem, _Traits >
void __CLR_OR_THIS_CALL init (_Mysb *_Strbuf=0, bool _Isstd=false)
 
__CLR_OR_THIS_CALL basic_ios ()
 
- Protected Member Functions inherited from ios_base
__CLR_OR_THIS_CALL ios_base ()
 
void __CLR_OR_THIS_CALL _Init ()
 

Member Typedef Documentation

Constructor & Destructor Documentation

__CLR_OR_THIS_CALL ostrstream::ostrstream ( )
inline
495  { // construct with empty character array
496  }
_Mysb _Strbuffer
Definition: strstream:564
basic_ostream< char, char_traits< char > > ostream
Definition: iosfwd:678
__CLR_OR_THIS_CALL ostrstream::ostrstream ( char *  _Ptr,
streamsize  _Count,
ios_base::openmode  _Mode = ios_base::out 
)
inline
502  : ostream(&_Strbuffer),
503  _Strbuffer(_Ptr, _Count,
504  _Ptr == 0 || (_Mode & ios_base::app) == 0
505  ? _Ptr : _Ptr + _CSTD strlen(_Ptr))
506  { // construct with [_Ptr, _Ptr + _Count)
507  }
_Check_return_ _In_ int _Mode
Definition: io.h:338
_Mysb _Strbuffer
Definition: strstream:564
basic_ostream< char, char_traits< char > > ostream
Definition: iosfwd:678
_Diff _Count
Definition: algorithm:1941
#define _CSTD
Definition: yvals.h:559
static const _Openmode app
Definition: xiosbase:100
_Check_return_ size_t __cdecl strlen(_In_z_ const char *_Str)
__CLR_OR_THIS_CALL ostrstream::ostrstream ( _Myt &&  _Right)
inline
510  : _Mybase(&_Strbuffer)
511  { // construct by moving _Right
512  _Assign_rv(_STD forward<_Myt>(_Right));
513  }
_Mysb _Strbuffer
Definition: strstream:564
ostream _Mybase
Definition: strstream:490
void __CLR_OR_THIS_CALL _Assign_rv(_Myt &&_Right)
Definition: strstream:521
const _Ty & _Right
Definition: algorithm:4087
virtual __CLR_OR_THIS_CALL ostrstream::~ostrstream ( )
inlinevirtual
540  { // destroy an ostrstream
541  }

Member Function Documentation

void __CLR_OR_THIS_CALL ostrstream::_Assign_rv ( _Myt &&  _Right)
inline
522  { // move from _Right
523  if (this != &_Right)
524  { // different, swap base and buffer
525  _Strbuffer.clear();
526  this->swap(_Right);
527  }
528  }
void clear()
Definition: strstream:152
_Mysb _Strbuffer
Definition: strstream:564
void __CLR_OR_THIS_CALL swap(_Myt &_Right)
Definition: strstream:530
const _Ty & _Right
Definition: algorithm:4087
void __CLR_OR_THIS_CALL ostrstream::freeze ( bool  _Freezeit = true)
inline
549  { // freeze or unfreeze writing
550  _Strbuffer.freeze(_Freezeit);
551  }
_Mysb _Strbuffer
Definition: strstream:564
void __CLR_OR_THIS_CALL freeze(bool _Freezeit=true)
Definition: strstream:113
_Myt& __CLR_OR_THIS_CALL ostrstream::operator= ( _Myt &&  _Right)
inline
516  { // move from _Right
517  _Assign_rv(_STD forward<_Myt>(_Right));
518  return (*this);
519  }
void __CLR_OR_THIS_CALL _Assign_rv(_Myt &&_Right)
Definition: strstream:521
const _Ty & _Right
Definition: algorithm:4087
streamsize __CLR_OR_THIS_CALL ostrstream::pcount ( ) const
inline
559  { // return size of writable character array
560  return (_Strbuffer.pcount());
561  }
_Mysb _Strbuffer
Definition: strstream:564
streamsize __CLR_OR_THIS_CALL pcount() const
Definition: strstream:134
_Mysb* __CLR_OR_THIS_CALL ostrstream::rdbuf ( ) const
inline
544  { // return pointer to character array buffer
545  return ((_Mysb *)&_Strbuffer);
546  }
_Mysb _Strbuffer
Definition: strstream:564
strstreambuf _Mysb
Definition: strstream:491
char* __CLR_OR_THIS_CALL ostrstream::str ( )
inline
554  { // freeze and return pointer to character array
555  return (_Strbuffer.str());
556  }
_Mysb _Strbuffer
Definition: strstream:564
char *__CLR_OR_THIS_CALL str()
Definition: strstream:128
void __CLR_OR_THIS_CALL ostrstream::swap ( _Myt _Right)
inline
531  { // swap with _Right
532  if (this != &_Right)
533  { // different, swap base and buffer
535  _Strbuffer.swap(_Right._Strbuffer);
536  }
537  }
_Mysb _Strbuffer
Definition: strstream:564
void __CLR_OR_THIS_CALL swap(_Myt &_Right)
Definition: strstream:94
void __CLR_OR_THIS_CALL swap(_Myt &_Right)
Definition: ostream:77
const _Ty & _Right
Definition: algorithm:4087

Member Data Documentation

_Mysb ostrstream::_Strbuffer
private

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