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::XDRBasicInStream< InStreamImp > Class Template Reference

base implementation for XDR input streams More...

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

Inheritance diagram for Dune::Fem::XDRBasicInStream< InStreamImp >:
Inheritance graph

Public Types

typedef InStreamImp InStreamType
 type of the implementation (Barton-Nackman) More...
 
typedef XDRInStreamTraits< InStreamTypeTraits
 type of the traits More...
 
typedef ThisType InStreamInterfaceType
 type of the interface More...
 

Public Member Functions

void readDouble (double &value)
 read a double from the stream More...
 
void readFloat (float &value)
 read a float from the stream More...
 
void readInt (int &value)
 read an int from the stream More...
 
void readChar (char &value)
 read a char from the stream More...
 
void readBool (bool &value)
 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...
 
void readUnsignedInt64 (uint64_t &value)
 read an uint64_t from the stream More...
 
double readDouble ()
 read a double from the stream More...
 
float readFloat ()
 read a double from the stream More...
 
int readInt ()
 read an int from the stream More...
 
int readChar ()
 read a char from the stream More...
 
bool readBool ()
 read a bool from the stream More...
 
unsigned int readUnsignedInt ()
 read an unsigned int from the stream More...
 
uint64_t readUnsignedInt64 ()
 read an uint64_t from the stream More...
 

Protected Member Functions

 XDRBasicInStream ()
 
XDR * xdrs ()
 
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

XDR xdrs_
 

Detailed Description

template<class InStreamImp>
class Dune::Fem::XDRBasicInStream< InStreamImp >

base implementation for XDR input streams

This class implements the reading functions for an XDR stream. It must be associated to a stream by a child class.

The following XDR input streams have been implemented: -XDRFileInStream

Member Typedef Documentation

type of the interface

template<class InStreamImp>
typedef InStreamImp Dune::Fem::XDRBasicInStream< InStreamImp >::InStreamType

type of the implementation (Barton-Nackman)

template<class InStreamImp>
typedef XDRInStreamTraits< InStreamType > Dune::Fem::XDRBasicInStream< InStreamImp >::Traits

type of the traits

Constructor & Destructor Documentation

template<class InStreamImp>
Dune::Fem::XDRBasicInStream< InStreamImp >::XDRBasicInStream ( )
inlineprotected

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
template<class InStreamImp>
void Dune::Fem::XDRBasicInStream< InStreamImp >::readBool ( bool &  value)
inline

read a bool from the stream

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

read a bool from the stream

Returns
a bool read from the stream
template<class InStreamImp>
void Dune::Fem::XDRBasicInStream< InStreamImp >::readChar ( char &  value)
inline

read a char from the stream

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

read a char from the stream

Returns
a char read from the stream
template<class InStreamImp>
void Dune::Fem::XDRBasicInStream< InStreamImp >::readDouble ( double &  value)
inline

read a double from the stream

Parameters
[out]valuereference to the variable to read from the stream
double Dune::Fem::InStreamInterface< XDRInStreamTraits< InStreamImp > >::readDouble ( )
inlineinherited

read a double from the stream

Returns
a double read from the stream
void Dune::Fem::InStreamInterface< XDRInStreamTraits< InStreamImp > >::readError ( ) const
inlineprotectedinherited
template<class InStreamImp>
void Dune::Fem::XDRBasicInStream< InStreamImp >::readFloat ( float &  value)
inline

read a float from the stream

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

read a double from the stream

Returns
a double read from the stream
template<class InStreamImp>
void Dune::Fem::XDRBasicInStream< InStreamImp >::readInt ( int &  value)
inline

read an int from the stream

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

read an int from the stream

Returns
an int read from the stream
template<class InStreamImp>
void Dune::Fem::XDRBasicInStream< InStreamImp >::readString ( std::string &  s)
inline

read a string from the stream

Parameters
[out]sreference to the string to read from the stream
template<class InStreamImp>
void Dune::Fem::XDRBasicInStream< InStreamImp >::readUnsignedInt ( unsigned int &  value)
inline

read an unsigned int from the stream

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

read an unsigned int from the stream

Returns
an unsigned int read from the stream
template<class InStreamImp>
void Dune::Fem::XDRBasicInStream< InStreamImp >::readUnsignedInt64 ( uint64_t &  value)
inline

read an uint64_t from the stream

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

read an uint64_t from the stream

Returns
an uint64_t read from the stream
template<class InStreamImp>
XDR* Dune::Fem::XDRBasicInStream< InStreamImp >::xdrs ( )
inlineprotected

Member Data Documentation

template<class InStreamImp>
XDR Dune::Fem::XDRBasicInStream< InStreamImp >::xdrs_
protected

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