input stream reading from a file in binary form
More...
#include <dune/fem/io/streams/sionlibstreams.hh>
|
| std::istream & | readFile (const std::string &filename, int rank, MPICommunicatorType mpiComm) |
| |
| bool | valid () const |
| |
| template<class T > |
| void | readPrimitive (T &value) |
| |
| void | readError () const |
| |
| const Implementation & | asImp () const |
| |
| Implementation & | asImp () |
| |
| const Implementation & | asImp () const |
| |
input stream reading from a file in binary form
- Note
- This stream directly stores the binary representation of the data. The binary representation might differ between different machines (e.g., little endian vs. big endian).
- Newly added:
◆ InStreamInterfaceType
◆ InStreamType
type of the implementation (Barton-Nackman)
◆ Traits
◆ SIONlibInStream()
| Dune::Fem::SIONlibInStream::SIONlibInStream |
( |
const std::string & |
filename, |
|
|
const int |
rank = MPIManager :: rank(), |
|
|
MPICommunicatorType |
mpiComm = MPIHelper :: getCommunicator() |
|
) |
| |
|
inline |
constructor
- Parameters
-
| [in] | filename | name of a file to read from |
| [in] | rank | process rank data is read for |
| [in] | mpiComm | MPI communicator (defaults to MPIHelper :: getCommunicator() ) |
- Note
- The filename must be the same on all ranks.
◆ ~SIONlibInStream()
| Dune::Fem::SIONlibInStream::~SIONlibInStream |
( |
| ) |
|
|
inline |
destructor deleting interal data buffer
◆ asImp() [1/7]
◆ asImp() [2/7]
◆ asImp() [3/7]
template<class Interface , class Implementation >
◆ asImp() [4/7]
|
|
inlinestaticprotectedinherited |
◆ asImp() [5/7]
template<class Interface , class Implementation >
|
|
inlinestaticprotectedinherited |
◆ asImp() [6/7]
|
|
inlinestaticprotectedinherited |
◆ asImp() [7/7]
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 | ) |
|
|
inlineinherited |
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 | ) |
|
|
inlineinherited |
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 | ) |
|
|
inlineinherited |
read a double from the stream
- Parameters
-
| [out] | value | reference to the variable to read from the stream |
◆ readError()
◆ readFile()
| std::istream& Dune::Fem::SIONlibInStream::readFile |
( |
const std::string & |
filename, |
|
|
int |
rank, |
|
|
MPICommunicatorType |
mpiComm |
|
) |
| |
|
inlineprotected |
◆ 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 | ) |
|
|
inlineinherited |
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 | ) |
|
|
inlineinherited |
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 | ) |
|
|
inlineprotectedinherited |
◆ readString()
| void Dune::Fem::StandardInStream::readString |
( |
std::string & |
s | ) |
|
|
inlineinherited |
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 | ) |
|
|
inlineinherited |
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 | ) |
|
|
inlineinherited |
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 |
( |
| ) |
|
|
inlineinherited |
return reference to internal istream
◆ valid()
| bool Dune::Fem::StandardInStream::valid |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ 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)
◆ data_
| std::stringstream* Dune::Fem::SIONlibInStream::data_ |
|
protected |
◆ stream_
| std::istream& Dune::Fem::StandardInStream::stream_ |
|
protectedinherited |
The documentation for this class was generated from the following file: