|
| | istream (istreambuf &streambuf) |
| | Construct a formatted input wrapper of streambuf.
|
| |
|
istream & | operator= (const istream &)=delete |
| |
| istreambuf & | rdbuf () const |
| | Return the stream buffer associated with this stream.
|
| |
| int | peek () |
| | Return the next character in this input stream, without extracting it.
|
| |
| int | get () |
| | Extract a single character from this input stream.
|
| |
| istream & | get (char &ch) |
| | Extract a single character from this input stream.
|
| |
| istream & | get (char *str, size_t n, char delim='\n') |
| | Extract characters from this input stream and stores them as a C-string, until either (n - 1) characters have been extracted or the delim character is encountered.
|
| |
| istream & | getline (char *str, size_t n, char delim='\n') |
| | Extract characters from this input stream and stores them as a C-string, until either (n - 1) characters have been extracted or the delim character is encountered.
|
| |
| istream & | ignore (size_t n=1, int delim=istreambuf::EOF) |
| | Extract characters from this input stream and discards them, until either n characters have been extracted, or the delim character is encountered.
|
| |
| istream & | read (char *str, size_t n) |
| | Read a block of data from this input stream.
|
| |
| istream & | operator>> (char *buf) |
| | Read characters from buffer into buf until one of these conditions happen:
|
| |
| istream & | operator>> (bool &value) |
| | Input and interpret next character from buffer as a boolean value.
|
| |
| istream & | operator>> (char &value) |
| | Input next character from buffer.
|
| |
| istream & | operator>> (int &value) |
| | Input and interpret next word from buffer as a signed integer value.
|
| |
| istream & | operator>> (unsigned int &value) |
| | Input and interpret next word from buffer as an unsigned integer value.
|
| |
| istream & | operator>> (long &value) |
| | Input and interpret next word from buffer as a signed long integer value.
|
| |
| istream & | operator>> (unsigned long &value) |
| | Input and interpret next word from buffer as an unsigned long integer value.
|
| |
| istream & | operator>> (double &value) |
| | Input and interpret next word from buffer as a floating point value.
|
| |
| istream & | operator>> (MANIPULATOR func) |
| | Apply a MANIPULATOR to this input stream.
|
| |
| iostate | rdstate () const |
| | Return the current stream error state.
|
| |
| void | setstate (iostate state) |
| | Set the stream error flags state in addition to currently set flags.
|
| |
| void | clear (iostate state=goodbit) |
| | Set the stream error state flags by assigning them the value of state.
|
| |
| bool | good () const |
| |
| bool | eof () const |
| | Return true if the associated stream has reached end-of-file.
|
| |
| bool | fail () const |
| | Return true if an error has occurred on the associated stream, since last time state was reset (clear() was called).
|
| |
| bool | bad () const |
| | Return true if a non-recoverable error has occurred on the associated stream.
|
| |
| bool | operator! () const |
| | Return true if an error has occurred on the associated stream, since last time state was reset (clear() was called).
|
| |
| | operator bool () const |
| | Check that the current stream has no errors.
|
| |
| void | flags (fmtflags flags) |
| | Set new format flags for this stream.
|
| |
| fmtflags | flags () const |
| | Return the format flags currently selected in this stream.
|
| |
| void | setf (fmtflags flags) |
| | Set this stream's format flags whose bits are set in flags, leaving unchanged the rest.
|
| |
| void | setf (fmtflags flags, fmtflags mask) |
| | Set this stream's format flags whose bits are set in both flags and mask, and clears the format flags whose bits are set in mask but not in flags.
|
| |
| void | unsetf (fmtflags flags) |
| | Clear this stream's format flags whose bits are set in flags.
|
| |
| char | fill () const |
| | Return the fill character.
|
| |
| void | fill (char fill) |
| | Set fill as new fill character for this stream.
|
| |
| void | width (uint8_t width) |
| | Set minimum width used for displaying values.
|
| |
| uint8_t | width () const |
| | Get the current minimum width value (default = 0) used for formatted output.
|
| |
| void | precision (uint8_t precision) |
| | Set precision (number of digits after decimal point) used for displaying floating values.
|
| |
| uint8_t | precision () const |
| | Get the current precision (default = 6) used for formatted floating values output.
|
| |
| ios_base & | copyfmt (const ios_base &rhs) |
| | Copy formatting information from rhs to this stream.
|
| |
|
| static constexpr iostate | eofbit = 0x01 |
| | This bit is set if the stream has unexpectedly reached its end during an extraction.
|
| |
| static constexpr iostate | failbit = 0x02 |
| | This bit is set when an input or operation failed due to a formatting error during extraction.
|
| |
| static constexpr iostate | badbit = 0x04 |
| | This bit is set when an irrecoverable stream error has occurred, e.g.
|
| |
| static constexpr iostate | goodbit = 0 |
| | No error; always 0.
|
| |
| static constexpr fmtflags | dec = 0x0001 |
| | Read or write integral values using decimal (0..9) base format.
|
| |
| static constexpr fmtflags | bin = 0x0002 |
| | Read or write integral values using binary (0,1) base format.
|
| |
| static constexpr fmtflags | oct = 0x0004 |
| | Read or write integral values using octal (0..7) base format.
|
| |
| static constexpr fmtflags | hex = 0x0008 |
| | Read or write integral values using hexadecimal (0..9,A..F) base format.
|
| |
| static constexpr fmtflags | basefield = dec | bin | oct | hex |
| | Bitmask constant used with setf(fmtflags, fmtflags) when changing the output base format.
|
| |
| static constexpr fmtflags | left = 0x0010 |
| | Pad all output to width() characters, with fill() character appended at the end so that the output appears left-adjusted.
|
| |
| static constexpr fmtflags | right = 0x0020 |
| | Pad all output to width() characters, with fill() character added at the beginning so that the output appears right-adjusted.
|
| |
| static constexpr fmtflags | adjustfield = left | right |
| | Bitmask constant used with setf(fmtflags, fmtflags) when changing the output adjustment.
|
| |
| static constexpr fmtflags | scientific = 0x0040 |
| | Write floating point values in fixed-point notation.
|
| |
| static constexpr fmtflags | fixed = 0x0080 |
| | Write floating point values in scientific notation.
|
| |
| static constexpr fmtflags | floatfield = scientific | fixed |
| | Bitmask constant used with setf(fmtflags, fmtflags) when changing the floating point output representation.
|
| |
| static constexpr fmtflags | boolalpha = 0x0200 |
| | Read or write bool values as alphabetic string (true or false).
|
| |
| static constexpr fmtflags | showbase = 0x0400 |
| | Write integral values prefixed by their base:
|
| |
| static constexpr fmtflags | showpos = 0x1000 |
| | Write non-negative numerical values preceded by +.
|
| |
| static constexpr fmtflags | skipws = 0x2000 |
| | Skip leading spaces on certain extraction (read) operations.
|
| |
| static constexpr fmtflags | unitbuf = 0x4000 |
| | Flush output after each insertion operation.
|
| |
| static constexpr fmtflags | uppercase = 0x8000U |
| | Write uppercase letters instead of lowercase in certain insertion operations.
|
| |
| static constexpr uint8_t | MAX_PRECISION = 16 |
| | The maximum allowed precision.
|
| |
Input stream wrapper to provide formatted input API, a la C++.
Definition at line 359 of file streams.h.