|
dune-fem 2.12-git
|
input stream reading from an STL input stream using ASCII decoding More...
#include <dune/fem/io/streams/asciistreams.hh>

Public Types | |
| typedef ASCIIInStreamTraits | Traits |
| type of the traits | |
| typedef Traits::InStreamType | InStreamType |
| type of the implementation (Barton-Nackman) | |
| typedef ThisType | InStreamInterfaceType |
| type of the interface | |
Public Member Functions | |
| ASCIIInStream (std::istream &stream) | |
| constructor | |
| ASCIIInStream (const std::string &filename) | |
| constructor | |
| ~ASCIIInStream () | |
| destructor | |
| void | readDouble (double &value) |
| read a double from the stream | |
| void | readFloat (float &value) |
| read a float from the stream | |
| void | readInt (int &value) |
| read an int from the stream | |
| void | readSignedInt64 (int64_t &value) |
| read an int64_t from the stream | |
| void | readChar (char &value) |
| read a char from the stream | |
| void | readBool (bool &value) |
| read a bool from the stream | |
| void | readString (std::string &s) |
| read a string from the stream | |
| void | readUnsignedInt (unsigned int &value) |
| read an unsigned int from the stream | |
| void | readUnsignedInt64 (uint64_t &value) |
| read an uint64_t from the stream | |
| double | readDouble () |
| read a double from the stream | |
| float | readFloat () |
| read a double from the stream | |
| int | readInt () |
| read an int from the stream | |
| int64_t | readSignedInt64 () |
| read an int64_t from the stream | |
| int | readChar () |
| read a char from the stream | |
| bool | readBool () |
| read a bool from the stream | |
| unsigned int | readUnsignedInt () |
| read an unsigned int from the stream | |
| uint64_t | readUnsignedInt64 () |
| read an uint64_t from the stream | |
Protected Member Functions | |
| bool | valid () const |
| void | readError () const |
| const Implementation & | asImp () const |
| Implementation & | asImp () |
Static Protected Member Functions | |
| static const Implementation & | asImp (const ThisType &other) |
| static Implementation & | asImp (ThisType &other) |
| static const Implementation & | asImp (const ThisType &other) |
| static Implementation & | asImp (ThisType &other) |
Protected Attributes | |
| std::istream & | stream_ |
| bool | mustFreeStream_ |
Related Symbols | |
(Note that these are not member symbols.) | |
| InStreamInterface< StreamTraits > & | operator>> (InStreamInterface< StreamTraits > &in, DiscreteFunctionInterface< Impl > &df) |
| read a discrete function from an input stream | |
Detailed Description
input stream reading from an STL input stream using ASCII decoding
This writes the data into an STL output stream. The data is written in ASCII format, each basic type on a single line.
Member Typedef Documentation
◆ InStreamInterfaceType
|
inherited |
type of the interface
◆ InStreamType
|
inherited |
type of the implementation (Barton-Nackman)
◆ Traits
type of the traits
Constructor & Destructor Documentation
◆ ASCIIInStream() [1/2]
|
inlineexplicit |
constructor
- Parameters
-
[in] stream STL output stream to write to
◆ ASCIIInStream() [2/2]
|
inline |
constructor
- Parameters
-
[in] filename name of a file to write to
◆ ~ASCIIInStream()
|
inline |
destructor
Member Function Documentation
◆ asImp() [1/6]
|
inlineprotectedinherited |
◆ asImp() [2/6]
|
inlineprotectedinherited |
◆ asImp() [3/6]
|
inlinestaticprotectedinherited |
◆ asImp() [4/6]
|
inlinestaticprotectedinherited |
◆ asImp() [5/6]
|
inlinestaticprotectedinherited |
◆ asImp() [6/6]
|
inlinestaticprotectedinherited |
◆ readBool() [1/2]
|
inlineinherited |
read a bool from the stream
- Returns
- a bool read from the stream
◆ readBool() [2/2]
|
inline |
read a bool from the stream
- Parameters
-
[out] value reference to the variable to read from the stream
◆ readChar() [1/2]
|
inlineinherited |
read a char from the stream
- Returns
- a char read from the stream
◆ readChar() [2/2]
|
inline |
read a char from the stream
- Parameters
-
[out] value reference to the variable to read from the stream
◆ readDouble() [1/2]
|
inlineinherited |
read a double from the stream
- Returns
- a double read from the stream
◆ readDouble() [2/2]
|
inline |
read a double from the stream
- Parameters
-
[out] value reference to the variable to read from the stream
◆ readError()
|
inlineprotectedinherited |
◆ readFloat() [1/2]
|
inlineinherited |
read a double from the stream
- Returns
- a double read from the stream
◆ readFloat() [2/2]
|
inline |
read a float from the stream
- Parameters
-
[out] value reference to the variable to read from the stream
◆ readInt() [1/2]
|
inlineinherited |
read an int from the stream
- Returns
- an int read from the stream
◆ readInt() [2/2]
|
inline |
read an int from the stream
- Parameters
-
[out] value reference to the variable to read from the stream
◆ readSignedInt64() [1/2]
|
inlineinherited |
read an int64_t from the stream
- Parameters
-
[out] value reference to the variable to read from the stream
◆ readSignedInt64() [2/2]
|
inline |
read an int64_t from the stream
- Parameters
-
[out] value reference to the variable to read from the stream
◆ readString()
|
inline |
read a string from the stream
- Parameters
-
[out] s reference to the string to read from the stream
- Note
- Strings containing newline characters will not be read back correctly.
◆ readUnsignedInt() [1/2]
|
inlineinherited |
read an unsigned int from the stream
- Returns
- an unsigned int read from the stream
◆ readUnsignedInt() [2/2]
|
inline |
read an unsigned int from the stream
- Parameters
-
[out] value reference to the variable to read from the stream
◆ readUnsignedInt64() [1/2]
|
inlineinherited |
read an uint64_t from the stream
- Returns
- an uint64_t read from the stream
◆ readUnsignedInt64() [2/2]
|
inline |
read an uint64_t from the stream
- Parameters
-
[out] value reference to the variable to read from the stream
◆ valid()
|
inlineprotected |
Friends And Related Symbol Documentation
◆ operator>>()
|
related |
read a discrete function from an input stream
- Parameters
-
[in] in stream to read from [out] df discrete function to read
- Returns
- the input stream (for concatenation)
Member Data Documentation
◆ mustFreeStream_
|
protected |
◆ stream_
|
protected |
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8