input stream reading from a given std::istream
More...
#include <dune/fem/io/streams/standardstreams.hh>
|
| StandardInStream (std::istream &stream) |
| constructor
|
|
std::istream & | stream () |
|
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 | 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
|
|
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
|
|
input stream reading from a given std::istream
- Note
- This stream directly stores the binary representation of the data. The binary representation of the stored data is always little endian. On read the data is converted accordingly on machines with different endianess.
- Newly added:
◆ InStreamInterfaceType
◆ InStreamType
type of the implementation (Barton-Nackman)
◆ Traits
◆ StandardInStream()
Dune::Fem::StandardInStream::StandardInStream |
( |
std::istream & |
stream | ) |
|
|
inlineexplicit |
constructor
- Parameters
-
[in] | stream | std::istream to read from |
◆ asImp() [1/6]
◆ asImp() [2/6]
◆ asImp() [3/6]
|
inlinestaticprotectedinherited |
◆ asImp() [4/6]
template<class Interface , class Implementation >
|
inlinestaticprotectedinherited |
◆ asImp() [5/6]
|
inlinestaticprotectedinherited |
◆ asImp() [6/6]
template<class Interface , class Implementation >
|
inlinestaticprotectedinherited |
◆ readBool() [1/2]
read a bool from the stream
- Returns
- a bool read from the stream
◆ readBool() [2/2]
void Dune::Fem::StandardInStream::readBool |
( |
bool & |
value | ) |
|
|
inline |
read a bool from the stream
- Parameters
-
[out] | value | reference to the variable to read from the stream |
◆ readChar() [1/2]
read a char from the stream
- Returns
- a char read from the stream
◆ readChar() [2/2]
void Dune::Fem::StandardInStream::readChar |
( |
char & |
value | ) |
|
|
inline |
read a char from the stream
- Parameters
-
[out] | value | reference to the variable to read from the stream |
◆ readDouble() [1/2]
read a double from the stream
- Returns
- a double read from the stream
◆ readDouble() [2/2]
void Dune::Fem::StandardInStream::readDouble |
( |
double & |
value | ) |
|
|
inline |
read a double from the stream
- Parameters
-
[out] | value | reference to the variable to read from the stream |
◆ readError()
◆ readFloat() [1/2]
read a double from the stream
- Returns
- a double read from the stream
◆ readFloat() [2/2]
void Dune::Fem::StandardInStream::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::StandardInStream::readInt |
( |
int & |
value | ) |
|
|
inline |
read an int from the stream
- Parameters
-
[out] | value | reference to the variable to read from the stream |
◆ readPrimitive()
template<class T >
void Dune::Fem::StandardInStream::readPrimitive |
( |
T & |
value | ) |
|
|
inlineprotected |
◆ readString()
void Dune::Fem::StandardInStream::readString |
( |
std::string & |
s | ) |
|
|
inline |
read a string from the stream
- Parameters
-
[out] | s | reference to the string to read from the stream |
◆ readUnsignedInt() [1/2]
read an unsigned int from the stream
- Returns
- an unsigned int read from the stream
◆ readUnsignedInt() [2/2]
void Dune::Fem::StandardInStream::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::StandardInStream::readUnsignedInt64 |
( |
uint64_t & |
value | ) |
|
|
inline |
read an uint64_t from the stream
- Parameters
-
[out] | value | reference to the variable to read from the stream |
◆ stream()
std::istream & Dune::Fem::StandardInStream::stream |
( |
| ) |
|
|
inline |
return reference to internal istream
◆ valid()
bool Dune::Fem::StandardInStream::valid |
( |
| ) |
const |
|
inlineprotected |
◆ 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)
◆ stream_
std::istream& Dune::Fem::StandardInStream::stream_ |
|
protected |
The documentation for this class was generated from the following file: