Whole document tree
    

Whole document tree

std::ios_base class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::ios_base Class Reference

#include <ios_base.h>

Inheritance diagram for std::ios_base:

Inheritance graph
[legend]
Collaboration diagram for std::ios_base:

Collaboration graph
[legend]
List of all members.

Public Types

typedef _Ios_Fmtflags fmtflags
typedef _Ios_Iostate iostate
typedef _Ios_Openmode openmode
typedef _Ios_Seekdir seekdir
typedef void(* event_callback )(event, ios_base &, int)
enum  event { erase_event, imbue_event, copyfmt_event }

Public Methods

void register_callback (event_callback __fn, int __index)
fmtflags flags () const
fmtflags flags (fmtflags __fmtfl)
fmtflags setf (fmtflags __fmtfl)
fmtflags setf (fmtflags __fmtfl, fmtflags __mask)
void unsetf (fmtflags __mask)
streamsize precision () const
streamsize precision (streamsize __prec)
streamsize width () const
streamsize width (streamsize __wide)
locale imbue (const locale &__loc)
locale getloc () const
long & iword (int __ix)
void *& pword (int __ix)
 ~ios_base ()

Static Public Methods

bool sync_with_stdio (bool __sync=true)
int xalloc () throw ()

Static Public Attributes

const fmtflags boolalpha = fmtflags(__ios_flags::_S_boolalpha)
const fmtflags dec = fmtflags(__ios_flags::_S_dec)
const fmtflags fixed = fmtflags(__ios_flags::_S_fixed)
const fmtflags hex = fmtflags(__ios_flags::_S_hex)
const fmtflags internal = fmtflags(__ios_flags::_S_internal)
const fmtflags left = fmtflags(__ios_flags::_S_left)
const fmtflags oct = fmtflags(__ios_flags::_S_oct)
const fmtflags right = fmtflags(__ios_flags::_S_right)
const fmtflags scientific = fmtflags(__ios_flags::_S_scientific)
const fmtflags showbase = fmtflags(__ios_flags::_S_showbase)
const fmtflags showpoint = fmtflags(__ios_flags::_S_showpoint)
const fmtflags showpos = fmtflags(__ios_flags::_S_showpos)
const fmtflags skipws = fmtflags(__ios_flags::_S_skipws)
const fmtflags unitbuf = fmtflags(__ios_flags::_S_unitbuf)
const fmtflags uppercase = fmtflags(__ios_flags::_S_uppercase)
const fmtflags adjustfield = fmtflags(__ios_flags::_S_adjustfield)
const fmtflags basefield = fmtflags(__ios_flags::_S_basefield)
const fmtflags floatfield = fmtflags(__ios_flags::_S_floatfield)
const iostate badbit = iostate(__ios_flags::_S_badbit)
const iostate eofbit = iostate(__ios_flags::_S_eofbit)
const iostate failbit = iostate(__ios_flags::_S_failbit)
const iostate goodbit = iostate(0)
const openmode app = openmode(__ios_flags::_S_app)
const openmode ate = openmode(__ios_flags::_S_ate)
const openmode binary = openmode(__ios_flags::_S_bin)
const openmode in = openmode(__ios_flags::_S_in)
const openmode out = openmode(__ios_flags::_S_out)
const openmode trunc = openmode(__ios_flags::_S_trunc)
const seekdir beg = seekdir(0)
const seekdir cur = seekdir(SEEK_CUR)
const seekdir end = seekdir(SEEK_END)

Protected Methods

void _M_call_callbacks (event __ev) throw ()
void _M_dispose_callbacks (void)
_Words_M_grow_words (int __index)
void _M_init ()
 ios_base ()

Protected Attributes

streamsize _M_precision
streamsize _M_width
fmtflags _M_flags
_Callback_list_M_callbacks
_Words _M_word_array [_S_local_words]
_Words _M_dummy
_Words_M_words
int _M_word_limit
locale _M_ios_locale

Static Protected Attributes

const int _S_local_words = 8

Member Typedef Documentation

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

Definition at line 223 of file ios_base.h.

typedef _Ios_Fmtflags std::ios_base::fmtflags
 

Definition at line 166 of file ios_base.h.

Referenced by flags(), setf(), and unsetf().

typedef _Ios_Iostate std::ios_base::iostate
 

Definition at line 188 of file ios_base.h.

Referenced by std::basic_ios< _CharT, _Traits >::clear(), std::basic_ios< _CharT, _Traits >::exceptions(), and std::basic_ios< _CharT, _Traits >::setstate().

typedef _Ios_Openmode std::ios_base::openmode
 

Definition at line 195 of file ios_base.h.

typedef _Ios_Seekdir std::ios_base::seekdir
 

Definition at line 204 of file ios_base.h.


Member Enumeration Documentation

enum std::ios_base::event
 

Enumeration values:
erase_event 
imbue_event 
copyfmt_event 

Definition at line 216 of file ios_base.h.


Constructor & Destructor Documentation

std::ios_base::~ios_base  
 

Definition at line 293 of file ios.cc.

References _M_call_callbacks(), _M_dispose_callbacks(), _M_word_array, _M_words, and erase_event.

std::ios_base::ios_base   [protected]
 

Definition at line 287 of file ios.cc.


Member Function Documentation

void std::ios_base::_M_call_callbacks event    __ev throw () [protected]
 

Definition at line 307 of file ios.cc.

References std::ios_base::_Callback_list::_M_fn, std::ios_base::_Callback_list::_M_index, and std::ios_base::_Callback_list::_M_next.

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

void std::ios_base::_M_dispose_callbacks void    [protected]
 

Definition at line 320 of file ios.cc.

References _M_callbacks, std::ios_base::_Callback_list::_M_next, and std::ios_base::_Callback_list::_M_remove_reference().

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

ios_base::_Words & std::ios_base::_M_grow_words int    __index [protected]
 

Definition at line 225 of file ios.cc.

References _M_dummy, _M_word_array, _M_word_limit, _M_words, and _S_local_words.

Referenced by iword(), and pword().

void std::ios_base::_M_init   [protected]
 

Definition at line 258 of file ios.cc.

References _M_callbacks, _M_flags, _M_ios_locale, _M_precision, _M_width, _M_word_limit, _M_words, dec, and skipws.

fmtflags std::ios_base::flags fmtflags    __fmtfl [inline]
 

Definition at line 314 of file ios_base.h.

References _M_flags, and fmtflags.

fmtflags std::ios_base::flags   const [inline]
 

Definition at line 311 of file ios_base.h.

References _M_flags.

Referenced by std::__build_float_format(), std::__output_float(), std::__output_integer(), std::basic_ios< _CharT, _Traits >::copyfmt(), std::num_get< _CharT, _InIter >::do_get(), std::num_put< _CharT, _OutIter >::do_put(), std::basic_ostream< _CharT, _Traits >::operator<<(), std::operator<<(), std::basic_istream< _CharT, _Traits >::sentry::sentry(), and std::basic_ostream< _CharT, _Traits >::sentry::~sentry().

locale std::ios_base::getloc   const [inline]
 

Definition at line 371 of file ios_base.h.

Referenced by std::__output_float(), std::_Format_cache< _CharT >::_M_populate(), and std::operator<<().

locale std::ios_base::imbue const locale   __loc
 

Reimplemented in std::basic_ios< _CharT, _Traits >.

Definition at line 273 of file ios.cc.

References _M_call_callbacks(), _M_ios_locale, and imbue_event.

long& std::ios_base::iword int    __ix [inline]
 

Definition at line 378 of file ios_base.h.

References _M_grow_words(), std::ios_base::_Words::_M_iword, and _M_word_limit.

streamsize std::ios_base::precision streamsize    __prec [inline]
 

Definition at line 345 of file ios_base.h.

References _M_precision.

streamsize std::ios_base::precision   const [inline]
 

Definition at line 342 of file ios_base.h.

References _M_precision.

Referenced by std::basic_ios< _CharT, _Traits >::copyfmt(), std::num_put< _CharT, _OutIter >::do_put(), std::operator<<(), and std::operator>>().

void*& std::ios_base::pword int    __ix [inline]
 

Definition at line 386 of file ios_base.h.

References _M_grow_words(), std::ios_base::_Words::_M_pword, and _M_word_limit.

Referenced by std::_Format_cache< _CharT >::_S_get().

void std::ios_base::register_callback event_callback    __fn,
int    __index
 

Definition at line 303 of file ios.cc.

References _M_callbacks.

Referenced by std::_Format_cache< _CharT >::_S_get().

fmtflags std::ios_base::setf fmtflags    __fmtfl,
fmtflags    __mask
[inline]
 

Definition at line 330 of file ios_base.h.

References _M_flags, and fmtflags.

fmtflags std::ios_base::setf fmtflags    __fmtfl [inline]
 

Definition at line 322 of file ios_base.h.

References _M_flags, and fmtflags.

Referenced by std::boolalpha(), std::dec(), std::fixed(), std::hex(), std::internal(), std::left(), std::oct(), std::operator<<(), std::operator>>(), std::right(), std::scientific(), std::showbase(), std::showpoint(), std::showpos(), std::skipws(), std::unitbuf(), and std::uppercase().

bool std::ios_base::sync_with_stdio bool    __sync = true [static]
 

Definition at line 333 of file ios.cc.

void std::ios_base::unsetf fmtflags    __mask [inline]
 

Definition at line 339 of file ios_base.h.

References _M_flags, and fmtflags.

Referenced by std::noboolalpha(), std::noshowbase(), std::noshowpoint(), std::noshowpos(), std::noskipws(), std::nounitbuf(), and std::nouppercase().

streamsize std::ios_base::width streamsize    __wide [inline]
 

Definition at line 356 of file ios_base.h.

References _M_width.

streamsize std::ios_base::width   const [inline]
 

Definition at line 353 of file ios_base.h.

References _M_width.

Referenced by std::__output_float(), std::__output_integer(), std::basic_ios< _CharT, _Traits >::copyfmt(), std::operator<<(), and std::operator>>().

int std::ios_base::xalloc   throw () [static]
 

Definition at line 215 of file ios.cc.


Member Data Documentation

_Callback_list* std::ios_base::_M_callbacks [protected]
 

Definition at line 255 of file ios_base.h.

Referenced by _M_dispose_callbacks(), _M_init(), std::basic_ios< _CharT, _Traits >::copyfmt(), and register_callback().

_Words std::ios_base::_M_dummy [protected]
 

Definition at line 272 of file ios_base.h.

Referenced by _M_grow_words().

fmtflags std::ios_base::_M_flags [protected]
 

Definition at line 232 of file ios_base.h.

Referenced by _M_init(), flags(), setf(), and unsetf().

locale std::ios_base::_M_ios_locale [protected]
 

Definition at line 280 of file ios_base.h.

Referenced by _M_init(), imbue(), and std::basic_ios< _CharT, _Traits >::init().

streamsize std::ios_base::_M_precision [protected]
 

Definition at line 230 of file ios_base.h.

Referenced by _M_init(), and precision().

streamsize std::ios_base::_M_width [protected]
 

Definition at line 231 of file ios_base.h.

Referenced by _M_init(), and width().

_Words std::ios_base::_M_word_array[_S_local_words] [protected]
 

Definition at line 271 of file ios_base.h.

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

int std::ios_base::_M_word_limit [protected]
 

Definition at line 274 of file ios_base.h.

Referenced by _M_grow_words(), _M_init(), std::basic_ios< _CharT, _Traits >::copyfmt(), iword(), and pword().

_Words* std::ios_base::_M_words [protected]
 

Definition at line 273 of file ios_base.h.

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

const int std::ios_base::_S_local_words = 8 [static, protected]
 

Definition at line 127 of file ios.cc.

Referenced by _M_grow_words(), and std::basic_ios< _CharT, _Traits >::copyfmt().

const ios_base::fmtflags std::ios_base::adjustfield = fmtflags(__ios_flags::_S_adjustfield) [static]
 

Definition at line 107 of file ios.cc.

const ios_base::openmode std::ios_base::app = openmode(__ios_flags::_S_app) [static]
 

Definition at line 116 of file ios.cc.

const ios_base::openmode std::ios_base::ate = openmode(__ios_flags::_S_ate) [static]
 

Definition at line 117 of file ios.cc.

const ios_base::iostate std::ios_base::badbit = iostate(__ios_flags::_S_badbit) [static]
 

Definition at line 111 of file ios.cc.

Referenced by std::basic_ios< _CharT, _Traits >::bad(), std::basic_ios< _CharT, _Traits >::clear(), std::basic_ios< _CharT, _Traits >::fail(), and std::basic_ios< _CharT, _Traits >::init().

const ios_base::fmtflags std::ios_base::basefield = fmtflags(__ios_flags::_S_basefield) [static]
 

Definition at line 108 of file ios.cc.

Referenced by std::__output_integer().

const ios_base::seekdir std::ios_base::beg = seekdir(0) [static]
 

Definition at line 123 of file ios.cc.

const ios_base::openmode std::ios_base::binary = openmode(__ios_flags::_S_bin) [static]
 

Definition at line 118 of file ios.cc.

const ios_base::fmtflags std::ios_base::boolalpha = fmtflags(__ios_flags::_S_boolalpha) [static]
 

Definition at line 92 of file ios.cc.

const ios_base::seekdir std::ios_base::cur = seekdir(SEEK_CUR) [static]
 

Definition at line 124 of file ios.cc.

const ios_base::fmtflags std::ios_base::dec = fmtflags(__ios_flags::_S_dec) [static]
 

Definition at line 93 of file ios.cc.

Referenced by _M_init().

const ios_base::seekdir std::ios_base::end = seekdir(SEEK_END) [static]
 

Definition at line 125 of file ios.cc.

const ios_base::iostate std::ios_base::eofbit = iostate(__ios_flags::_S_eofbit) [static]
 

Definition at line 112 of file ios.cc.

Referenced by std::time_get< _CharT, _InIter >::do_get_monthname(), std::time_get< _CharT, _InIter >::do_get_weekday(), and std::basic_ios< _CharT, _Traits >::eof().

const ios_base::iostate std::ios_base::failbit = iostate(__ios_flags::_S_failbit) [static]
 

Definition at line 113 of file ios.cc.

Referenced by std::time_get< _CharT, _InIter >::do_get_monthname(), std::time_get< _CharT, _InIter >::do_get_weekday(), std::basic_ios< _CharT, _Traits >::fail(), and std::basic_istream< _CharT, _Traits >::seekg().

const ios_base::fmtflags std::ios_base::fixed = fmtflags(__ios_flags::_S_fixed) [static]
 

Definition at line 94 of file ios.cc.

const ios_base::fmtflags std::ios_base::floatfield = fmtflags(__ios_flags::_S_floatfield) [static]
 

Definition at line 109 of file ios.cc.

const ios_base::iostate std::ios_base::goodbit = iostate(0) [static]
 

Definition at line 114 of file ios.cc.

Referenced by std::basic_ios< _CharT, _Traits >::clear(), and std::basic_ios< _CharT, _Traits >::init().

const ios_base::fmtflags std::ios_base::hex = fmtflags(__ios_flags::_S_hex) [static]
 

Definition at line 95 of file ios.cc.

const ios_base::openmode std::ios_base::in = openmode(__ios_flags::_S_in) [static]
 

Definition at line 119 of file ios.cc.

Referenced by std::basic_istringstream< _CharT, _Traits, _Alloc >::basic_istringstream().

const ios_base::fmtflags std::ios_base::internal = fmtflags(__ios_flags::_S_internal) [static]
 

Definition at line 96 of file ios.cc.

const ios_base::fmtflags std::ios_base::left = fmtflags(__ios_flags::_S_left) [static]
 

Definition at line 97 of file ios.cc.

const ios_base::fmtflags std::ios_base::oct = fmtflags(__ios_flags::_S_oct) [static]
 

Definition at line 98 of file ios.cc.

const ios_base::openmode std::ios_base::out = openmode(__ios_flags::_S_out) [static]
 

Definition at line 120 of file ios.cc.

Referenced by std::basic_ostringstream< _CharT, _Traits, _Alloc >::basic_ostringstream().

const ios_base::fmtflags std::ios_base::right = fmtflags(__ios_flags::_S_right) [static]
 

Definition at line 99 of file ios.cc.

const ios_base::fmtflags std::ios_base::scientific = fmtflags(__ios_flags::_S_scientific) [static]
 

Definition at line 100 of file ios.cc.

const ios_base::fmtflags std::ios_base::showbase = fmtflags(__ios_flags::_S_showbase) [static]
 

Definition at line 101 of file ios.cc.

const ios_base::fmtflags std::ios_base::showpoint = fmtflags(__ios_flags::_S_showpoint) [static]
 

Definition at line 102 of file ios.cc.

const ios_base::fmtflags std::ios_base::showpos = fmtflags(__ios_flags::_S_showpos) [static]
 

Definition at line 103 of file ios.cc.

const ios_base::fmtflags std::ios_base::skipws = fmtflags(__ios_flags::_S_skipws) [static]
 

Definition at line 104 of file ios.cc.

Referenced by _M_init().

const ios_base::openmode std::ios_base::trunc = openmode(__ios_flags::_S_trunc) [static]
 

Definition at line 121 of file ios.cc.

const ios_base::fmtflags std::ios_base::unitbuf = fmtflags(__ios_flags::_S_unitbuf) [static]
 

Definition at line 105 of file ios.cc.

const ios_base::fmtflags std::ios_base::uppercase = fmtflags(__ios_flags::_S_uppercase) [static]
 

Definition at line 106 of file ios.cc.


The documentation for this class was generated from the following files:
Generated on Mon Apr 8 03:18:57 2002 for libstdc++-v3 Source by doxygen1.2.15