output stream writing into a given std::ostream
More...
#include <dune/fem/io/streams/standardstreams.hh>
|
| StandardOutStream (std::ostream &stream) |
| constructor
|
|
std::ostream & | stream () |
|
void | flush () |
| flush the stream
|
|
void | writeDouble (const double value) |
| write a double to the stream
|
|
void | writeFloat (const float value) |
| write a float to the stream
|
|
void | writeInt (const int value) |
| write an int to the stream
|
|
void | writeChar (const char value) |
| write a char to the stream
|
|
void | writeBool (const bool value) |
| write a char to the stream
|
|
void | writeString (const std::string &s) |
| write a string to the stream
|
|
void | writeUnsignedInt (unsigned int value) |
| write an unsigned int to the stream
|
|
void | writeUnsignedInt64 (uint64_t value) |
| write an uint64_t to the stream
|
|
output stream writing into a given std::ostream
- Note
- This stream directly stores the binary representation of the data. The binary representation of the stored data is always little endian. On write the data is converted accordingly on machines with different endianess.
- Newly added:
◆ OutStreamInterfaceType
◆ OutStreamType
type of the implementation (Barton-Nackman)
◆ Traits
◆ StandardOutStream()
Dune::Fem::StandardOutStream::StandardOutStream |
( |
std::ostream & |
stream | ) |
|
|
inlineexplicit |
constructor
- Parameters
-
[in] | stream | std::ostream to write to |
◆ 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 |
◆ flush()
void Dune::Fem::StandardOutStream::flush |
( |
| ) |
|
|
inline |
flush the stream
By calling the flush method, the user can ensure that the stream is actually transferred (e.g., written to disk)
◆ stream()
std::ostream & Dune::Fem::StandardOutStream::stream |
( |
| ) |
|
|
inline |
return reference to internal ostream
◆ valid()
bool Dune::Fem::StandardOutStream::valid |
( |
| ) |
const |
|
inlineprotected |
◆ writeBool()
void Dune::Fem::StandardOutStream::writeBool |
( |
const bool |
value | ) |
|
|
inline |
write a char to the stream
- Parameters
-
[in] | value | value to write to the stream |
◆ writeChar()
void Dune::Fem::StandardOutStream::writeChar |
( |
const char |
value | ) |
|
|
inline |
write a char to the stream
- Parameters
-
[in] | value | value to write to the stream |
◆ writeDouble()
void Dune::Fem::StandardOutStream::writeDouble |
( |
const double |
value | ) |
|
|
inline |
write a double to the stream
- Parameters
-
[in] | value | value to write to the stream |
◆ writeError()
◆ writeFloat()
void Dune::Fem::StandardOutStream::writeFloat |
( |
const float |
value | ) |
|
|
inline |
write a float to the stream
- Parameters
-
[in] | value | value to write to the stream |
◆ writeInt()
void Dune::Fem::StandardOutStream::writeInt |
( |
const int |
value | ) |
|
|
inline |
write an int to the stream
- Parameters
-
[in] | value | value to write to the stream |
◆ writePrimitive()
template<class T >
void Dune::Fem::StandardOutStream::writePrimitive |
( |
const T & |
value | ) |
|
|
inlineprotected |
◆ writeString()
void Dune::Fem::StandardOutStream::writeString |
( |
const std::string & |
s | ) |
|
|
inline |
write a string to the stream
- Parameters
-
[in] | s | string to write to the stream |
◆ writeUnsignedInt()
void Dune::Fem::StandardOutStream::writeUnsignedInt |
( |
unsigned int |
value | ) |
|
|
inline |
write an unsigned int to the stream
- Parameters
-
[in] | value | value to write to the stream |
◆ writeUnsignedInt64()
void Dune::Fem::StandardOutStream::writeUnsignedInt64 |
( |
uint64_t |
value | ) |
|
|
inline |
write an uint64_t to the stream
- Parameters
-
[in] | value | value to write to the stream |
◆ operator<<()
write a discrete function into an output stream
- Parameters
-
[in] | out | stream to write to |
[in] | df | discrete function to write |
- Returns
- the output stream (for concatenation)
◆ stream_
std::ostream& Dune::Fem::StandardOutStream::stream_ |
|
protected |
The documentation for this class was generated from the following file: