dune-fem 2.8.0
|
output stream writing into an STL output stream using ASCII encoding More...
#include <dune/fem/io/streams/asciistreams.hh>
Public Types | |
typedef ASCIIOutStreamTraits | Traits |
type of the traits | |
typedef Traits::OutStreamType | OutStreamType |
type of the implementation (Barton-Nackman) | |
typedef ThisType | OutStreamInterfaceType |
type of the interface | |
Public Member Functions | |
ASCIIOutStream (std::ostream &stream) | |
constructor | |
ASCIIOutStream (const std::string &filename) | |
constructor | |
~ASCIIOutStream () | |
destructor | |
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 | |
Protected Member Functions | |
bool | valid () const |
void | writeError () 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::ostream & | stream_ |
bool | mustFreeStream_ |
Related Functions | |
(Note that these are not member functions.) | |
OutStreamInterface< StreamTraits > & | operator<< (OutStreamInterface< StreamTraits > &out, const DiscreteFunctionInterface< Impl > &df) |
write a discrete function into an output stream | |
output stream writing into an STL output stream using ASCII encoding
This writes the data into an STL output stream. The data is written in ASCII format, each basic type on a single line.
|
inherited |
type of the interface
|
inherited |
type of the implementation (Barton-Nackman)
type of the traits
|
inlineexplicit |
constructor
[in] | stream | STL output stream to write to |
|
inlineexplicit |
constructor
[in] | filename | name of a file to write to |
|
inline |
destructor
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inline |
flush the stream
By calling the flush method, the user can ensure that the stream is actually transferred (e.g., written to disk)
|
inlineprotected |
|
inline |
write a char to the stream
[in] | value | value to write to the stream |
|
inline |
write a char to the stream
[in] | value | value to write to the stream |
|
inline |
write a double to the stream
[in] | value | value to write to the stream |
|
inlineprotectedinherited |
|
inline |
write a float to the stream
[in] | value | value to write to the stream |
|
inline |
write an int to the stream
[in] | value | value to write to the stream |
|
inline |
write a string to the stream
[in] | s | string to write to the stream |
|
inline |
write an unsigned int to the stream
[in] | value | value to write to the stream |
|
inline |
write an uint64_t to the stream
[in] | value | value to write to the stream |
|
related |
write a discrete function into an output stream
[in] | out | stream to write to |
[in] | df | discrete function to write |
|
protected |
|
protected |