dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
Dune::Fem::StreamFactory< StreamImpl > Struct Template Reference

Factory class for Fem Streams to deal with different constructor parameters. More...

#include <dune/fem/io/streams/streams.hh>

Public Types

typedef MPIHelper::MPICommunicator MPICommunicatorType
 type of MPI communicator
 

Static Public Member Functions

static StreamImpl * create (const std::string &filename, const int rank=MPIManager::rank(), const MPICommunicatorType &mpiComm=MPIHelper ::getCommunicator())
 return pointer to stream object created by new.
 

Detailed Description

template<class StreamImpl>
struct Dune::Fem::StreamFactory< StreamImpl >

Factory class for Fem Streams to deal with different constructor parameters.

Member Typedef Documentation

◆ MPICommunicatorType

template<class StreamImpl >
typedef MPIHelper::MPICommunicator Dune::Fem::StreamFactory< StreamImpl >::MPICommunicatorType

type of MPI communicator

Member Function Documentation

◆ create()

template<class StreamImpl >
static StreamImpl * Dune::Fem::StreamFactory< StreamImpl >::create ( const std::string &  filename,
const int  rank = MPIManager::rank(),
const MPICommunicatorType mpiComm = MPIHelper :: getCommunicator() 
)
inlinestatic

return pointer to stream object created by new.

Parameters
[in]filenamename of file that the stream read/writes
[in]rankrank of process data is read/written (defaults to MPIManager::rank())
[in]mpiCommMPI communicator (defaults to MPIHelper :: getCommunicator())

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