ios_base Class Reference

#include <_ios_base.h>

Inheritance diagram for ios_base:

basic_ios< _CharT, _Traits > basic_ios< char, char_traits< char > > basic_istream< _CharT, _Traits > basic_ostream< _CharT, _Traits > basic_ostream< char, char_traits< char > > basic_istream< char, char_traits< char > > basic_ifstream< _CharT, _Traits > basic_iostream< _CharT, _Traits > basic_iostream< char, char_traits< char > > basic_istringstream< _CharT, _Traits, _Alloc > basic_iostream< _CharT, _Traits > basic_ofstream< _CharT, _Traits > basic_ostringstream< _CharT, _Traits, _Alloc > ostrstream basic_iostream< char, char_traits< char > > istrstream List of all members.

Public Types

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 Member Functions

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
long & iword (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
const locale::facet_M_ctype_facet () const
const locale::facet_M_numpunct_facet () const
const string_M_grouping () const

Static Public Member Functions

static int _STLP_CALL xalloc ()
static bool _STLP_CALL sync_with_stdio (bool __sync=true)

Static Public Attributes

static const int left = 0x0001
static const int right = 0x0002
static const int internal = 0x0004
static const int dec = 0x0008
static const int hex = 0x0010
static const int oct = 0x0020
static const int fixed = 0x0040
static const int scientific = 0x0080
static const int boolalpha = 0x0100
static const int showbase = 0x0200
static const int showpoint = 0x0400
static const int showpos = 0x0800
static const int skipws = 0x1000
static const int unitbuf = 0x2000
static const int uppercase = 0x4000
static const int adjustfield = left | right | internal
static const int basefield = dec | hex | oct
static const int floatfield = scientific | fixed
static const int goodbit = 0x00
static const int badbit = 0x01
static const int eofbit = 0x02
static const int failbit = 0x04
static const int __default_mode = 0x0
static const int app = 0x01
static const int ate = 0x02
static const int binary = 0x04
static const int in = 0x08
static const int out = 0x10
static const int trunc = 0x20
static const int beg = 0x01
static const int cur = 0x02
static const int end = 0x04

Protected Member Functions

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

static void _STLP_CALL _S_initialize ()
static void _STLP_CALL _S_uninitialize ()

Protected Attributes

string _M_cached_grouping

Static Protected Attributes

static bool _S_was_synced


class Init


class  failure
class  Init

Detailed Description

Definition at line 48 of file _ios_base.h.

Member Typedef Documentation

typedef int ios_base::fmtflags

Definition at line 57 of file _ios_base.h.

typedef int ios_base::iostate

Definition at line 58 of file _ios_base.h.

typedef int ios_base::openmode

Reimplemented in basic_stringstream< _CharT, _Traits, _Alloc >.

Definition at line 59 of file _ios_base.h.

typedef int ios_base::seekdir

Definition at line 60 of file _ios_base.h.

Definition at line 63 of file _ios_base.h.

typedef void(*) ios_base::event_callback(event, ios_base &, int __index)

Definition at line 166 of file _ios_base.h.

Definition at line 277 of file _ios_base.h.

Definition at line 278 of file _ios_base.h.

Definition at line 279 of file _ios_base.h.

Definition at line 280 of file _ios_base.h.

Definition at line 281 of file _ios_base.h.

Member Enumeration Documentation


Definition at line 165 of file _ios_base.h.

Constructor & Destructor Documentation

ios_base::~ios_base (  )  [virtual]

Definition at line 303 of file ios.cpp.

References _M_invoke_callbacks(), and erase_event.

ios_base::ios_base (  )  [protected]

Definition at line 291 of file ios.cpp.

Member Function Documentation

fmtflags ios_base::flags ( fmtflags  __flags  )  [inline]

Definition at line 119 of file _ios_base.h.

fmtflags ios_base::setf ( fmtflags  __flag,
fmtflags  __mask 
) [inline]

Definition at line 130 of file _ios_base.h.

void ios_base::unsetf ( fmtflags  __mask  )  [inline]

streamsize ios_base::precision (  )  const [inline]

Definition at line 138 of file _ios_base.h.

Referenced by __do_put_float(), basic_ios< _CharT, _Traits >::init(), and setprecision().

streamsize ios_base::precision ( streamsize  __newprecision  )  [inline]

Definition at line 139 of file _ios_base.h.

streamsize ios_base::width ( streamsize  __newwidth  )  [inline]

Definition at line 146 of file _ios_base.h.

locale ios_base::imbue ( const locale  ) 

int _STLP_CALL ios_base::xalloc (  )  [static]

Definition at line 136 of file ios.cpp.


long & ios_base::iword ( int  __index  ) 

void *& ios_base::pword ( int  __index  ) 

void ios_base::register_callback ( event_callback  __fn,
int  __index 

bool _STLP_CALL ios_base::sync_with_stdio ( bool  __sync = true  )  [static]

Definition at line 328 of file iostream.cpp.

References _S_was_synced, _STLP_CATCH_ALL, _STLP_PRIV, _STLP_TRY, cerr, cin, clog, cout, in, and out.

ios_base::operator void * (  )  const [inline]

Definition at line 178 of file _ios_base.h.

References __CONST_CAST.

bool ios_base::operator! (  )  const [inline]

Definition at line 179 of file _ios_base.h.

iostate ios_base::rdstate (  )  const [inline]

Definition at line 181 of file _ios_base.h.

Referenced by basic_ios< char, char_traits< char > >::setstate().

bool ios_base::good (  )  const [inline]

Definition at line 183 of file _ios_base.h.

Referenced by __init_bostr(), _M_init_noskip(), and _M_init_skip().

bool ios_base::eof (  )  const [inline]

Definition at line 184 of file _ios_base.h.

Referenced by basic_ios< char, char_traits< char > >::_S_eof(), and ws().

bool ios_base::fail (  )  const [inline]

bool ios_base::bad (  )  const [inline]

Definition at line 186 of file _ios_base.h.

void ios_base::_M_setstate_nothrow ( iostate  __state  )  [inline, protected]

void ios_base::_M_clear_nothrow ( iostate  __state  )  [inline, protected]

iostate ios_base::_M_get_exception_mask (  )  const [inline, protected]

Definition at line 198 of file _ios_base.h.

Referenced by basic_ios< char, char_traits< char > >::exceptions().

void ios_base::_M_set_exception_mask ( iostate  __mask  )  [inline, protected]

void ios_base::_M_check_exception_mask (  )  [inline, protected]

void ios_base::_M_invoke_callbacks ( event   )  [protected]

Definition at line 198 of file ios.cpp.

Referenced by basic_ios< _CharT, _Traits >::copyfmt(), imbue(), and ~ios_base().

void ios_base::_M_throw_failure (  )  [protected]

Definition at line 208 of file ios.cpp.

References __STATIC_CAST, __write_integer(), arg(), and hex.

void _STLP_CALL ios_base::_S_initialize (  )  [static, protected]

Definition at line 204 of file iostream.cpp.

References _S_was_synced, _STLP_CATCH_ALL, _STLP_PRIV, _STLP_TRY, cerr, cin, clog, cout, in, out, unitbuf, wcerr, wcin, wclog, and wcout.

Referenced by ios_base::Init::Init().

void _STLP_CALL ios_base::_S_uninitialize (  )  [static, protected]

Definition at line 277 of file iostream.cpp.

References _Destroy(), cerr, cin, clog, cout, wcerr, wcin, wclog, and wcout.

Referenced by ios_base::Init::~Init().

const locale::facet* ios_base::_M_numpunct_facet (  )  const [inline]

const string& ios_base::_M_grouping (  )  const [inline]

Definition at line 253 of file _ios_base.h.

Referenced by __do_get_integer(), __do_put_float(), __put_integer(), and __read_float().

Friends And Related Function Documentation

friend class Init [friend]

Definition at line 272 of file _ios_base.h.

Member Data Documentation

const ios_base::fmtflags ios_base::right = 0x0002 [static]

Definition at line 74 of file _ios_base.h.

Referenced by __money_do_put(), num_put< _CharT, _OutputIter >::do_put(), and right().

const ios_base::fmtflags ios_base::oct = 0x0020 [static]

Definition at line 78 of file _ios_base.h.

Referenced by __get_base_or_zero(), __put_integer(), __write_integer_backward(), oct(), and setbase().

const ios_base::fmtflags ios_base::fixed = 0x0040 [static]

Definition at line 79 of file _ios_base.h.

Referenced by __write_float(), and fixed().

const ios_base::fmtflags ios_base::scientific = 0x0080 [static]

Definition at line 80 of file _ios_base.h.

Referenced by __write_float(), and scientific().

const ios_base::fmtflags ios_base::showpoint = 0x0400 [static]

Definition at line 83 of file _ios_base.h.

Referenced by noshowpoint(), and showpoint().

const ios_base::fmtflags ios_base::showpos = 0x0800 [static]

Definition at line 84 of file _ios_base.h.

Referenced by __write_decimal_backward(), __write_integer_backward(), noshowpos(), and showpos().

const ios_base::fmtflags ios_base::skipws = 0x1000 [static]

Definition at line 85 of file _ios_base.h.

Referenced by basic_ios< _CharT, _Traits >::init(), noskipws(), and skipws().

const ios_base::fmtflags ios_base::uppercase = 0x4000 [static]

Definition at line 87 of file _ios_base.h.

Referenced by __write_integer_backward(), nouppercase(), and uppercase().

Definition at line 90 of file _ios_base.h.

Referenced by fixed(), and scientific().

const int ios_base::__default_mode = 0x0 [static]

Definition at line 99 of file _ios_base.h.

Referenced by _Filebuf_base::_M_open().

const ios_base::openmode ios_base::app = 0x01 [static]

Definition at line 100 of file _ios_base.h.

Referenced by _Filebuf_base::_M_open(), and _Filebuf_base::_M_write().

const ios_base::openmode ios_base::ate = 0x02 [static]

Definition at line 101 of file _ios_base.h.

Referenced by _Filebuf_base::_M_open().

const ios_base::openmode ios_base::trunc = 0x20 [static]

Definition at line 105 of file _ios_base.h.

Referenced by _Filebuf_base::_M_open().

bool ios_base::_S_was_synced [static, protected]

Definition at line 213 of file _ios_base.h.

Referenced by _S_initialize(), and sync_with_stdio().

Definition at line 248 of file _ios_base.h.

Referenced by basic_ios< _CharT, _Traits >::imbue().

The documentation for this class was generated from the following files:
  • /home/ntakagi/work/STLport-5.1.5/stlport/stl/_ios_base.h
  • /home/ntakagi/work/STLport-5.1.5/src/ios.cpp
  • /home/ntakagi/work/STLport-5.1.5/src/iostream.cpp

Generated on Mon Mar 10 15:33:00 2008 by  doxygen 1.5.1