dune-fem  2.4.1-rc
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::BinaryFileInStream Class Reference

constructor More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/io/streams/binarystreams.hh>

Inheritance diagram for Dune::Fem::BinaryFileInStream:
Inheritance graph

Public Types

typedef StandardInStreamTraits Traits
 type of the traits More...
 
typedef Traits::InStreamType InStreamType
 type of the implementation (Barton-Nackman) More...
 
typedef ThisType InStreamInterfaceType
 type of the interface More...
 

Public Member Functions

 BinaryFileInStream (const std::string &filename)
 constructor More...
 
 ~BinaryFileInStream ()
 destructor deleteing file stream More...
 
std::istream & stream ()
 
void readDouble (double &value)
 read a double from the stream More...
 
double readDouble ()
 read a double from the stream More...
 
void readFloat (float &value)
 read a float from the stream More...
 
float readFloat ()
 read a double from the stream More...
 
void readInt (int &value)
 read an int from the stream More...
 
int readInt ()
 read an int from the stream More...
 
void readChar (char &value)
 read a char from the stream More...
 
int readChar ()
 read a char from the stream More...
 
void readBool (bool &value)
 read a bool from the stream More...
 
bool readBool ()
 read a bool from the stream More...
 
void readString (std::string &s)
 read a string from the stream More...
 
void readUnsignedInt (unsigned int &value)
 read an unsigned int from the stream More...
 
unsigned int readUnsignedInt ()
 read an unsigned int from the stream More...
 
void readUnsignedInt64 (uint64_t &value)
 read an uint64_t from the stream More...
 
uint64_t readUnsignedInt64 ()
 read an uint64_t from the stream More...
 

Protected Member Functions

std::istream & openFile (const std::string &filename)
 
bool valid () const
 
template<class T >
void readPrimitive (T &value)
 
void readError () const
 
const Implementation & asImp () const
 
Implementation & asImp ()
 

Static Protected Member Functions

static const Implementation & asImp (const ThisType &other)
 
static Implementation & asImp (ThisType &other)
 

Protected Attributes

std::ifstream * file_
 standard file stream More...
 
std::istream & stream_
 

Detailed Description

constructor

Parameters
[in]streamstd::istream to read from

Member Typedef Documentation

type of the interface

type of the implementation (Barton-Nackman)

type of the traits

Constructor & Destructor Documentation

Dune::Fem::BinaryFileInStream::BinaryFileInStream ( const std::string &  filename)
inlineexplicit

constructor

Parameters
[in]filenamename of a file to write to
Dune::Fem::BinaryFileInStream::~BinaryFileInStream ( )
inline

destructor deleteing file stream

References Dune::Fem::BinaryFileOutStream::file_.

Member Function Documentation

template<class Interface, class Implementation>
static const Implementation& Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( const ThisType other)
inlinestaticprotectedinherited
template<class Interface, class Implementation>
static Implementation& Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( ThisType other)
inlinestaticprotectedinherited
template<class Interface, class Implementation>
const Implementation& Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( ) const
inlineprotectedinherited
template<class Interface, class Implementation>
Implementation& Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( )
inlineprotectedinherited
std::istream& Dune::Fem::BinaryFileInStream::openFile ( const std::string &  filename)
inlineprotected
void Dune::Fem::StandardInStream::readBool ( bool &  value)
inlineinherited

read a bool from the stream

Parameters
[out]valuereference to the variable to read from the stream
bool Dune::Fem::InStreamInterface< StandardInStreamTraits >::readBool ( )
inlineinherited

read a bool from the stream

Returns
a bool read from the stream
void Dune::Fem::StandardInStream::readChar ( char &  value)
inlineinherited

read a char from the stream

Parameters
[out]valuereference to the variable to read from the stream
int Dune::Fem::InStreamInterface< StandardInStreamTraits >::readChar ( )
inlineinherited

read a char from the stream

Returns
a char read from the stream
double Dune::Fem::InStreamInterface< StandardInStreamTraits >::readDouble ( )
inlineinherited

read a double from the stream

Returns
a double read from the stream
void Dune::Fem::StandardInStream::readDouble ( double &  value)
inlineinherited

read a double from the stream

Parameters
[out]valuereference to the variable to read from the stream
void Dune::Fem::InStreamInterface< StandardInStreamTraits >::readError ( ) const
inlineprotectedinherited
void Dune::Fem::StandardInStream::readFloat ( float &  value)
inlineinherited

read a float from the stream

Parameters
[out]valuereference to the variable to read from the stream
float Dune::Fem::InStreamInterface< StandardInStreamTraits >::readFloat ( )
inlineinherited

read a double from the stream

Returns
a double read from the stream
void Dune::Fem::StandardInStream::readInt ( int &  value)
inlineinherited

read an int from the stream

Parameters
[out]valuereference to the variable to read from the stream
int Dune::Fem::InStreamInterface< StandardInStreamTraits >::readInt ( )
inlineinherited

read an int from the stream

Returns
an int read from the stream
template<class T >
void Dune::Fem::StandardInStream::readPrimitive ( T &  value)
inlineprotectedinherited
void Dune::Fem::StandardInStream::readString ( std::string &  s)
inlineinherited

read a string from the stream

Parameters
[out]sreference to the string to read from the stream
void Dune::Fem::StandardInStream::readUnsignedInt ( unsigned int &  value)
inlineinherited

read an unsigned int from the stream

Parameters
[out]valuereference to the variable to read from the stream
unsigned int Dune::Fem::InStreamInterface< StandardInStreamTraits >::readUnsignedInt ( )
inlineinherited

read an unsigned int from the stream

Returns
an unsigned int read from the stream
void Dune::Fem::StandardInStream::readUnsignedInt64 ( uint64_t &  value)
inlineinherited

read an uint64_t from the stream

Parameters
[out]valuereference to the variable to read from the stream
uint64_t Dune::Fem::InStreamInterface< StandardInStreamTraits >::readUnsignedInt64 ( )
inlineinherited

read an uint64_t from the stream

Returns
an uint64_t read from the stream
std::istream& Dune::Fem::StandardInStream::stream ( )
inlineinherited
bool Dune::Fem::StandardInStream::valid ( ) const
inlineprotectedinherited

Member Data Documentation

std::ifstream* Dune::Fem::BinaryFileInStream::file_
protected

standard file stream

std::istream& Dune::Fem::StandardInStream::stream_
protectedinherited

The documentation for this class was generated from the following file: