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)
 

typedef _Ios_Fmtflags std::ios_base::fmtflags
 

Definition at line 167 of file ios_base.h.

typedef _Ios_Iostate std::ios_base::iostate
 

Definition at line 189 of file ios_base.h.

typedef _Ios_Openmode std::ios_base::openmode
 

Definition at line 196 of file ios_base.h.

typedef _Ios_Seekdir std::ios_base::seekdir
 

Definition at line 205 of file ios_base.h.


Member Enumeration Documentation

enum std::ios_base::event
 

Enumeration values:
erase_event  
imbue_event  
copyfmt_event  

Definition at line 217 of file ios_base.h.


Constructor & Destructor Documentation

std::ios_base::~ios_base ( )
 

std::ios_base::ios_base ( ) [protected]
 


Member Function Documentation

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

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

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

Referenced by iword(), and pword().

void std::ios_base::_M_init ( ) [protected]
 

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

Definition at line 315 of file ios_base.h.

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

Definition at line 312 of file ios_base.h.

Referenced by std::basic_ostream::operator<<().

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

Definition at line 372 of file ios_base.h.

locale std::ios_base::imbue ( const locale & __loc )
 

Reimplemented in std::basic_ios.

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

Definition at line 379 of file ios_base.h.

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

Definition at line 346 of file ios_base.h.

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

Definition at line 343 of file ios_base.h.

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

Definition at line 387 of file ios_base.h.

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

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

Definition at line 331 of file ios_base.h.

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

Definition at line 323 of file ios_base.h.

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

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

Definition at line 340 of file ios_base.h.

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

Definition at line 357 of file ios_base.h.

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

Definition at line 354 of file ios_base.h.

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


Member Data Documentation

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

Definition at line 256 of file ios_base.h.

_Words std::ios_base::_M_dummy [protected]
 

Definition at line 273 of file ios_base.h.

fmtflags std::ios_base::_M_flags [protected]
 

Definition at line 233 of file ios_base.h.

locale std::ios_base::_M_ios_locale [protected]
 

Definition at line 281 of file ios_base.h.

streamsize std::ios_base::_M_precision [protected]
 

Definition at line 231 of file ios_base.h.

streamsize std::ios_base::_M_width [protected]
 

Definition at line 232 of file ios_base.h.

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

Definition at line 272 of file ios_base.h.

int std::ios_base::_M_word_limit [protected]
 

Definition at line 275 of file ios_base.h.

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

Definition at line 274 of file ios_base.h.

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

Definition at line 271 of file ios_base.h.

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

Definition at line 184 of file ios_base.h.

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

Definition at line 197 of file ios_base.h.

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

Definition at line 198 of file ios_base.h.

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

Definition at line 190 of file ios_base.h.

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

Definition at line 185 of file ios_base.h.

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

Definition at line 206 of file ios_base.h.

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

Definition at line 199 of file ios_base.h.

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

Definition at line 169 of file ios_base.h.

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

Definition at line 207 of file ios_base.h.

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

Definition at line 170 of file ios_base.h.

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

Definition at line 208 of file ios_base.h.

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

Definition at line 191 of file ios_base.h.

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

Definition at line 192 of file ios_base.h.

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

Definition at line 171 of file ios_base.h.

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

Definition at line 186 of file ios_base.h.

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

Definition at line 193 of file ios_base.h.

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

Definition at line 172 of file ios_base.h.

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

Definition at line 200 of file ios_base.h.

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

Definition at line 173 of file ios_base.h.

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

Definition at line 174 of file ios_base.h.

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

Definition at line 175 of file ios_base.h.

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

Definition at line 201 of file ios_base.h.

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

Definition at line 176 of file ios_base.h.

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

Definition at line 177 of file ios_base.h.

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

Definition at line 178 of file ios_base.h.

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

Definition at line 179 of file ios_base.h.

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

Definition at line 180 of file ios_base.h.

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

Definition at line 181 of file ios_base.h.

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

Definition at line 202 of file ios_base.h.

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

Definition at line 182 of file ios_base.h.

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

Definition at line 183 of file ios_base.h.


The documentation for this class was generated from the following file:
Generated at Tue May 1 16:30:18 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001