input stream reading from an STL input stream using ASCII decoding
More...
#include <dune/fem/io/streams/asciistreams.hh>
|
typedef ASCIIInStreamTraits | Traits |
| type of the traits
|
|
typedef Traits::InStreamType | InStreamType |
| type of the implementation (Barton-Nackman)
|
|
typedef ThisType | InStreamInterfaceType |
| type of the interface
|
|
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.
- Newly added:
◆ ASCIIInStream() [1/2]
Dune::Fem::ASCIIInStream::ASCIIInStream |
( |
std::istream & |
stream | ) |
|
|
inlineexplicit |
constructor
- Parameters
-
[in] | stream | STL output stream to write to |
◆ ASCIIInStream() [2/2]
Dune::Fem::ASCIIInStream::ASCIIInStream |
( |
const std::string & |
filename | ) |
|
|
inline |
constructor
- Parameters
-
[in] | filename | name of a file to write to |
◆ readBool() [1/2]
read a bool from the stream
- Returns
- a bool read from the stream
◆ readBool() [2/2]
void Dune::Fem::ASCIIInStream::readBool |
( |
bool & |
value | ) |
|
|
inline |
read a bool from the stream
- Parameters
-
[out] | value | reference to the variable to read from the stream |
References readString().
◆ readChar() [1/2]
read a char from the stream
- Returns
- a char read from the stream
◆ readChar() [2/2]
void Dune::Fem::ASCIIInStream::readChar |
( |
char & |
value | ) |
|
|
inline |
◆ readDouble() [1/2]
read a double from the stream
- Returns
- a double read from the stream
◆ readDouble() [2/2]
void Dune::Fem::ASCIIInStream::readDouble |
( |
double & |
value | ) |
|
|
inline |
read a double from the stream
- Parameters
-
[out] | value | reference to the variable to read from the stream |
◆ readFloat() [1/2]
read a double from the stream
- Returns
- a double read from the stream
◆ readFloat() [2/2]
void Dune::Fem::ASCIIInStream::readFloat |
( |
float & |
value | ) |
|
|
inline |
read a float from the stream
- Parameters
-
[out] | value | reference to the variable to read from the stream |
◆ readInt() [1/2]
read an int from the stream
- Returns
- an int read from the stream
◆ readInt() [2/2]
void Dune::Fem::ASCIIInStream::readInt |
( |
int & |
value | ) |
|
|
inline |
read an int from the stream
- Parameters
-
[out] | value | reference to the variable to read from the stream |
◆ readSignedInt64() [1/2]
read an int64_t from the stream
- Parameters
-
[out] | value | reference to the variable to read from the stream |
◆ readSignedInt64() [2/2]
void Dune::Fem::ASCIIInStream::readSignedInt64 |
( |
int64_t & |
value | ) |
|
|
inline |
read an int64_t from the stream
- Parameters
-
[out] | value | reference to the variable to read from the stream |
◆ readString()
void Dune::Fem::ASCIIInStream::readString |
( |
std::string & |
s | ) |
|
|
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.
Referenced by readBool().
◆ readUnsignedInt() [1/2]
read an unsigned int from the stream
- Returns
- an unsigned int read from the stream
◆ readUnsignedInt() [2/2]
void Dune::Fem::ASCIIInStream::readUnsignedInt |
( |
unsigned int & |
value | ) |
|
|
inline |
read an unsigned int from the stream
- Parameters
-
[out] | value | reference to the variable to read from the stream |
◆ readUnsignedInt64() [1/2]
read an uint64_t from the stream
- Returns
- an uint64_t read from the stream
◆ readUnsignedInt64() [2/2]
void Dune::Fem::ASCIIInStream::readUnsignedInt64 |
( |
uint64_t & |
value | ) |
|
|
inline |
read an uint64_t from the stream
- Parameters
-
[out] | value | reference to the variable to read from the stream |
◆ operator>>()
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)
The documentation for this class was generated from the following file: