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::XDRBasicOutStream< OutStreamImp > Class Template Reference

base implementation for XDR output streams More...

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

Inheritance diagram for Dune::Fem::XDRBasicOutStream< OutStreamImp >:
Inheritance graph

Public Types

enum  { maxStringSize = 2<<18 }
 
typedef OutStreamImp OutStreamType
 type of the implementaton (Barton-Nackman) More...
 
typedef XDROutStreamTraits< OutStreamTypeTraits
 type of the traits More...
 
typedef ThisType OutStreamInterfaceType
 type of the interface More...
 

Public Member Functions

void writeDouble (double value)
 write a double to the stream More...
 
void writeFloat (float value)
 write a float to the stream More...
 
void writeInt (int value)
 write an int to the stream More...
 
void writeChar (char value)
 write a char to the stream More...
 
void writeBool (const bool value)
 write a bool to the stream More...
 
void writeString (const std::string &s)
 write a string to the stream More...
 
void writeUnsignedInt (unsigned int value)
 write an unsigned int to the stream More...
 
void writeUnsignedInt64 (uint64_t value)
 write an uint64_t to the stream More...
 
void flush ()
 flush the stream More...
 

Protected Member Functions

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

Protected Attributes

XDR xdrs_
 

Detailed Description

template<class OutStreamImp>
class Dune::Fem::XDRBasicOutStream< OutStreamImp >

base implementation for XDR output streams

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

The following XDR output streams have been implemented: -XDRFileOutStream

Member Typedef Documentation

type of the interface

template<class OutStreamImp>
typedef OutStreamImp Dune::Fem::XDRBasicOutStream< OutStreamImp >::OutStreamType

type of the implementaton (Barton-Nackman)

template<class OutStreamImp>
typedef XDROutStreamTraits< OutStreamType > Dune::Fem::XDRBasicOutStream< OutStreamImp >::Traits

type of the traits

Member Enumeration Documentation

template<class OutStreamImp>
anonymous enum
Enumerator
maxStringSize 

Constructor & Destructor Documentation

template<class OutStreamImp>
Dune::Fem::XDRBasicOutStream< OutStreamImp >::XDRBasicOutStream ( )
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
void Dune::Fem::OutStreamInterface< XDROutStreamTraits< OutStreamImp > >::flush ( )
inlineinherited

flush the stream

By calling the flush method, the user can ensure that the stream is actually transferred (e.g., written to disk)

template<class OutStreamImp>
void Dune::Fem::XDRBasicOutStream< OutStreamImp >::writeBool ( const bool  value)
inline

write a bool to the stream

Parameters
[in]valuevalue to write to the stream
template<class OutStreamImp>
void Dune::Fem::XDRBasicOutStream< OutStreamImp >::writeChar ( char  value)
inline

write a char to the stream

Parameters
[in]valuevalue to write to the stream
template<class OutStreamImp>
void Dune::Fem::XDRBasicOutStream< OutStreamImp >::writeDouble ( double  value)
inline

write a double to the stream

Parameters
[in]valuevalue to write to the stream
void Dune::Fem::OutStreamInterface< XDROutStreamTraits< OutStreamImp > >::writeError ( ) const
inlineprotectedinherited
template<class OutStreamImp>
void Dune::Fem::XDRBasicOutStream< OutStreamImp >::writeFloat ( float  value)
inline

write a float to the stream

Parameters
[in]valuevalue to write to the stream
template<class OutStreamImp>
void Dune::Fem::XDRBasicOutStream< OutStreamImp >::writeInt ( int  value)
inline

write an int to the stream

Parameters
[in]valuevalue to write to the stream
template<class OutStreamImp>
void Dune::Fem::XDRBasicOutStream< OutStreamImp >::writeString ( const std::string &  s)
inline

write a string to the stream

Parameters
[in]sstring to write to the stream
template<class OutStreamImp>
void Dune::Fem::XDRBasicOutStream< OutStreamImp >::writeUnsignedInt ( unsigned int  value)
inline

write an unsigned int to the stream

Parameters
[in]valuevalue to write to the stream
template<class OutStreamImp>
void Dune::Fem::XDRBasicOutStream< OutStreamImp >::writeUnsignedInt64 ( uint64_t  value)
inline

write an uint64_t to the stream

Parameters
[in]valuevalue to write to the stream
template<class OutStreamImp>
XDR* Dune::Fem::XDRBasicOutStream< OutStreamImp >::xdrs ( )
inlineprotected

Member Data Documentation

template<class OutStreamImp>
XDR Dune::Fem::XDRBasicOutStream< OutStreamImp >::xdrs_
protected

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