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

Public Types

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 void(__CLRCALL_OR_CDECLevent_callback) (event, ios_base &, int)
 
- 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 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 setstate (iostate _State, bool _Reraise=false)
 
_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
 _IOS_BITMASK (_Fmtflags, fmtflags)
 
 _IOS_BITMASK (_Iostate, iostate)
 
 _IOS_BITMASK (_Openmode, openmode)
 
 _IOS_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)
 
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)
 
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)
 
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
 

Protected Member Functions

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 ()
 

Private Attributes

_Mysb_Mystrbuf
 
_Myos_Tiestr
 
_Elem _Fillch
 

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 constexpr _Fmtflags skipws
 
static constexpr _Fmtflags unitbuf
 
static constexpr _Fmtflags uppercase
 
static constexpr _Fmtflags showbase
 
static constexpr _Fmtflags showpoint
 
static constexpr _Fmtflags showpos
 
static constexpr _Fmtflags left
 
static constexpr _Fmtflags right
 
static constexpr _Fmtflags internal
 
static constexpr _Fmtflags dec
 
static constexpr _Fmtflags oct
 
static constexpr _Fmtflags hex
 
static constexpr _Fmtflags scientific
 
static constexpr _Fmtflags fixed
 
static constexpr _Fmtflags hexfloat
 
static constexpr _Fmtflags boolalpha
 
static constexpr _Fmtflags _Stdio
 
static constexpr _Fmtflags adjustfield
 
static constexpr _Fmtflags basefield
 
static constexpr _Fmtflags floatfield
 
static constexpr _Iostate goodbit
 
static constexpr _Iostate eofbit
 
static constexpr _Iostate failbit
 
static constexpr _Iostate badbit
 
static constexpr _Openmode in
 
static constexpr _Openmode out
 
static constexpr _Openmode ate
 
static constexpr _Openmode app
 
static constexpr _Openmode trunc
 
static constexpr _Openmode _Nocreate
 
static constexpr _Openmode _Noreplace
 
static constexpr _Openmode binary
 
static constexpr _Seekdir beg
 
static constexpr _Seekdir cur
 
static constexpr _Seekdir end
 

Member Typedef Documentation

template<class _Elem , class _Traits >
typedef ctype<_Elem> basic_ios< _Elem, _Traits >::_Ctype
template<class _Elem , class _Traits >
typedef basic_ostream<_Elem, _Traits> basic_ios< _Elem, _Traits >::_Myos
template<class _Elem , class _Traits >
typedef basic_streambuf<_Elem, _Traits> basic_ios< _Elem, _Traits >::_Mysb
template<class _Elem , class _Traits >
typedef basic_ios<_Elem, _Traits> basic_ios< _Elem, _Traits >::_Myt
template<class _Elem , class _Traits >
typedef _Elem basic_ios< _Elem, _Traits >::char_type
template<class _Elem , class _Traits >
typedef _Traits::int_type basic_ios< _Elem, _Traits >::int_type
template<class _Elem , class _Traits >
typedef _Traits::off_type basic_ios< _Elem, _Traits >::off_type
template<class _Elem , class _Traits >
typedef _Traits::pos_type basic_ios< _Elem, _Traits >::pos_type
template<class _Elem , class _Traits >
typedef _Traits basic_ios< _Elem, _Traits >::traits_type

Constructor & Destructor Documentation

template<class _Elem , class _Traits >
__CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::basic_ios ( _Mysb _Strbuf)
inlineexplicit
33  { // construct from stream buffer pointer
34  init(_Strbuf);
35  }
void __CLR_OR_THIS_CALL init(_Mysb *_Strbuf=0, bool _Isstd=false)
Definition: ios:167
template<class _Elem , class _Traits >
virtual __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::~basic_ios ( )
inlinevirtual
38  { // destroy the object
39  }
template<class _Elem , class _Traits >
__CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::basic_ios ( )
inlineprotected
183  { // default constructor, do nothing
184  }
template<class _Elem , class _Traits >
__CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::basic_ios ( const _Myt )
delete

Member Function Documentation

template<class _Elem , class _Traits >
void __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::clear ( iostate  _State = goodbit,
bool  _Reraise = false 
)
inline
43  { // set state, possibly reraise exception
44  ios_base::clear((iostate)(_Mystrbuf == 0
45  ? (int)_State | (int)badbit : (int)_State), _Reraise);
46  }
void __CLR_OR_THIS_CALL clear(iostate _State, bool _Reraise)
Definition: xiosbase:285
_Mysb * _Mystrbuf
Definition: ios:187
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _Inout_ mbstate_t * _State
Definition: wchar.h:78
static constexpr _Iostate badbit
Definition: xiosbase:89
template<class _Elem , class _Traits >
_Myt& __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::copyfmt ( const _Myt _Right)
inline
70  { // copy format parameters
71  _Tiestr = _Right.tie();
72  _Fillch = _Right.fill();
74  return (*this);
75  }
_Myos * _Tiestr
Definition: ios:188
ios_base &__CLR_OR_THIS_CALL copyfmt(const ios_base &_Other)
Definition: xiosbase:468
_Elem _Fillch
Definition: ios:189
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Elem , class _Traits >
_Elem __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::fill ( ) const
inline
111  { // return fill character
112  return (_Fillch);
113  }
_Elem _Fillch
Definition: ios:189
template<class _Elem , class _Traits >
_Elem __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::fill ( _Elem  _Newfill)
inline
116  { // set fill character
117  _Elem _Oldfill = _Fillch;
118  _Fillch = _Newfill;
119  return (_Oldfill);
120  }
_Elem _Fillch
Definition: ios:189
template<class _Elem , class _Traits >
locale __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::imbue ( const locale _Loc)
inline
103  { // set locale to argument
104  locale _Oldlocale = ios_base::imbue(_Loc);
105  if (rdbuf() != 0)
106  rdbuf()->pubimbue(_Loc);
107  return (_Oldlocale);
108  }
locale __CLR_OR_THIS_CALL imbue(const locale &_Loc)
Definition: xiosbase:437
Definition: xlocale:97
_Mysb *__CLR_OR_THIS_CALL rdbuf() const
Definition: ios:89
locale __CLR_OR_THIS_CALL pubimbue(const locale &_Newlocale)
Definition: streambuf:123
template<class _Elem , class _Traits >
void __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::init ( _Mysb _Strbuf = 0,
bool  _Isstd = false 
)
inlineprotected
169  { // initialize with stream buffer pointer
170  _Init(); // initialize ios_base
171  _Mystrbuf = _Strbuf;
172  _Tiestr = 0;
173  _Fillch = widen(' ');
174 
175  if (_Mystrbuf == 0)
176  setstate(badbit);
177 
178  if (_Isstd)
179  _Addstd(this); // special handling for standard streams
180  }
_Mysb * _Mystrbuf
Definition: ios:187
void __CLR_OR_THIS_CALL _Init()
Definition: xiosbase:536
_Elem __CLR_OR_THIS_CALL widen(char _Byte) const
Definition: ios:128
static _MRTIMP2_PURE_NPURE void __CLRCALL_PURE_OR_CDECL _Addstd(ios_base *)
_Myos * _Tiestr
Definition: ios:188
_Elem _Fillch
Definition: ios:189
static constexpr _Iostate badbit
Definition: xiosbase:89
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:55
template<class _Elem , class _Traits >
void __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::move ( _Myt _Right)
inline
135  { // assign by moving _Right
136  if (this != _STD addressof(_Right))
137  { // different, do the move
138  _Mystrbuf = 0;
139  _Tiestr = 0;
140  this->swap(_Right);
141  }
142  }
_STD_BEGIN constexpr _Ty * addressof(_Ty &_Val) _NOEXCEPT
Definition: xstddef:628
_Mysb * _Mystrbuf
Definition: ios:187
_Myos * _Tiestr
Definition: ios:188
void __CLR_OR_THIS_CALL swap(_Myt &_Right) _NOEXCEPT
Definition: ios:154
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Elem , class _Traits >
void __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::move ( _Myt &&  _Right)
inline
145  { // assign by moving _Right
146  if (this != _STD addressof(_Right))
147  { // different, do the move
148  _Mystrbuf = 0;
149  _Tiestr = 0;
150  this->swap(_Right);
151  }
152  }
_STD_BEGIN constexpr _Ty * addressof(_Ty &_Val) _NOEXCEPT
Definition: xstddef:628
_Mysb * _Mystrbuf
Definition: ios:187
_Myos * _Tiestr
Definition: ios:188
void __CLR_OR_THIS_CALL swap(_Myt &_Right) _NOEXCEPT
Definition: ios:154
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Elem , class _Traits >
char __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::narrow ( _Elem  _Ch,
char  _Dflt = '\0' 
) const
inline
123  { // convert _Ch to byte using imbued locale
124  const _Ctype& _Ctype_fac = _USE(getloc(), _Ctype);
125  return (_Ctype_fac.narrow(_Ch, _Dflt));
126  }
ctype< _Elem > _Ctype
Definition: ios:25
#define _USE(loc, fac)
Definition: xlocale:499
locale __CLR_OR_THIS_CALL getloc() const
Definition: xiosbase:432
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
template<class _Elem , class _Traits >
_Myt& __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::operator= ( const _Myt )
delete
template<class _Elem , class _Traits >
_Mysb* __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::rdbuf ( ) const
inline
90  { // return stream buffer pointer
91  return (_Mystrbuf);
92  }
_Mysb * _Mystrbuf
Definition: ios:187
template<class _Elem , class _Traits >
_Mysb* __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::rdbuf ( _Mysb _Strbuf)
inline
95  { // set stream buffer pointer
96  _Mysb *_Oldstrbuf = _Mystrbuf;
97  _Mystrbuf = _Strbuf;
98  clear();
99  return (_Oldstrbuf);
100  }
_Mysb * _Mystrbuf
Definition: ios:187
void __CLR_OR_THIS_CALL clear(iostate _State=goodbit, bool _Reraise=false)
Definition: ios:41
basic_streambuf< _Elem, _Traits > _Mysb
Definition: ios:24
template<class _Elem , class _Traits >
void __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::set_rdbuf ( _Mysb _Strbuf)
inline
162  { // set stream buffer pointer without changing state
163  _Mystrbuf = _Strbuf;
164  }
_Mysb * _Mystrbuf
Definition: ios:187
template<class _Elem , class _Traits >
void __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::setstate ( iostate  _State,
bool  _Reraise = false 
)
inline
57  { // merge _State into state, possibly reraise exception
58  if (_State != goodbit)
59  clear((iostate)((int)rdstate() | (int)_State), _Reraise);
60  }
iostate __CLR_OR_THIS_CALL rdstate() const
Definition: xiosbase:312
void __CLR_OR_THIS_CALL clear(iostate _State=goodbit, bool _Reraise=false)
Definition: ios:41
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _Inout_ mbstate_t * _State
Definition: wchar.h:78
static constexpr _Iostate goodbit
Definition: xiosbase:86
template<class _Elem , class _Traits >
void __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::swap ( _Myt _Right)
inline
155  { // swap all but rdbuf() with right
157  _STD swap(_Fillch, _Right._Fillch);
158  _STD swap(_Tiestr, _Right._Tiestr);
159  }
_Myos * _Tiestr
Definition: ios:188
_Elem _Fillch
Definition: ios:189
void __CLR_OR_THIS_CALL swap(_Myt &_Right) _NOEXCEPT
Definition: ios:154
constexpr const _Ty &() _Right
Definition: algorithm:3723
void __CLR_OR_THIS_CALL swap(ios_base &_Right)
Definition: xiosbase:505
template<class _Elem , class _Traits >
_Myos* __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::tie ( ) const
inline
78  { // return tie pointer
79  return (_Tiestr);
80  }
_Myos * _Tiestr
Definition: ios:188
template<class _Elem , class _Traits >
_Myos* __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::tie ( _Myos _Newtie)
inline
83  { // set tie pointer
84  _Myos *_Oldtie = _Tiestr;
85  _Tiestr = _Newtie;
86  return (_Oldtie);
87  }
basic_ostream< _Elem, _Traits > _Myos
Definition: ios:23
_Myos * _Tiestr
Definition: ios:188
template<class _Elem , class _Traits >
_Elem __CLR_OR_THIS_CALL basic_ios< _Elem, _Traits >::widen ( char  _Byte) const
inline
129  { // convert _Byte to character using imbued locale
130  const _Ctype& _Ctype_fac = _USE(getloc(), _Ctype);
131  return (_Ctype_fac.widen(_Byte));
132  }
ctype< _Elem > _Ctype
Definition: ios:25
#define _USE(loc, fac)
Definition: xlocale:499
locale __CLR_OR_THIS_CALL getloc() const
Definition: xiosbase:432

Member Data Documentation

template<class _Elem , class _Traits >
_Elem basic_ios< _Elem, _Traits >::_Fillch
private
template<class _Elem , class _Traits >
_Mysb* basic_ios< _Elem, _Traits >::_Mystrbuf
private
template<class _Elem , class _Traits >
_Myos* basic_ios< _Elem, _Traits >::_Tiestr
private

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