Namespaces
Variants
Views
Actions

std::ios_base

From cppreference.com
< cpp‎ | io
Revision as of 05:12, 25 April 2012 by Cubbi (Talk | contribs)

Template:cpp/io/ios base/sidebar

Defined in header <ios>
class ios_base;

The class ios_base is a multipurpose class that serves as the base class for all I/O stream classes. It maintains several kinds of data:

1) state information: stream status flags
2) control information: flags that control formatting of both input and output sequences and the imbued locale
3) private storage: two arbitrary-length arrays (one array of Template:cpp and one array of Template:cpp), available for program-wide use.
4) callbacks: arbitrary number of user-defined functions to be called from imbue(), copyfmt(), and ~ios()

Typical implementation holds member constants corresponding to all values of fmtflags, iostate, openmode, and seekdir shown below, member variables to maintain current precision, width, formatting flags, exception mask, buffer error state, a resizeable container holding the callbacks, the currently imbued locale, pointers to the iword and the pword arrays, and a static integer variable returned by xalloc.

Contents

Member functions

Template:cpp/io/ios base/dcl list constructorTemplate:cpp/io/ios base/dcl list destructorTemplate:cpp/io/ios base/dcl list flagsTemplate:cpp/io/ios base/dcl list setfTemplate:cpp/io/ios base/dcl list unsetfTemplate:cpp/io/ios base/dcl list precisionTemplate:cpp/io/ios base/dcl list widthTemplate:cpp/io/ios base/dcl list imbueTemplate:cpp/io/ios base/dcl list getlocTemplate:cpp/io/ios base/dcl list xallocTemplate:cpp/io/ios base/dcl list iwordTemplate:cpp/io/ios base/dcl list pwordTemplate:cpp/io/ios base/dcl list register callbackTemplate:cpp/io/ios base/dcl list sync with stdioTemplate:cpp/io/ios base/dcl list failureTemplate:cpp/io/ios base/dcl list Init
Formatting
Locales
Internal extensible array
Miscellaneous

Member classes

Template:tdcl list begin Template:tdcl list h1 Template:tdcl list hitem Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list h2 Template:tdcl list hitem Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list end