dune-grid 2.9.0
Public Types | Protected Types | Static Protected Member Functions | List of all members
Dune::BoundarySegmentBackupRestore< BndSeg > Class Template Reference

#include <dune/grid/common/boundarysegment.hh>

Inheritance diagram for Dune::BoundarySegmentBackupRestore< BndSeg >:
Inheritance graph

Public Types

typedef std::stringstream ObjectStreamType
 

Protected Types

typedef BndSeg BoundarySegment
 type of BoundarySegment interface class More...
 
typedef Dune::ParameterizedObjectFactory< std::unique_ptr< BoundarySegment >(ObjectStreamType &), int > FactoryType
 type of factory creating a unique_ptr from an ObjectStreamType More...
 

Static Protected Member Functions

static std::unique_ptr< BoundarySegmentrestore (ObjectStreamType &in)
 create an object of BoundarySegment type from a previously registered factory linked to key. More...
 
template<class DerivedType >
static int registerFactory ()
 

Member Typedef Documentation

◆ BoundarySegment

template<class BndSeg >
typedef BndSeg Dune::BoundarySegmentBackupRestore< BndSeg >::BoundarySegment
protected

type of BoundarySegment interface class

◆ FactoryType

template<class BndSeg >
typedef Dune::ParameterizedObjectFactory< std::unique_ptr< BoundarySegment >( ObjectStreamType& ), int > Dune::BoundarySegmentBackupRestore< BndSeg >::FactoryType
protected

type of factory creating a unique_ptr from an ObjectStreamType

◆ ObjectStreamType

template<class BndSeg >
typedef std::stringstream Dune::BoundarySegmentBackupRestore< BndSeg >::ObjectStreamType

Member Function Documentation

◆ registerFactory()

template<class BndSeg >
template<class DerivedType >
static int Dune::BoundarySegmentBackupRestore< BndSeg >::registerFactory ( )
inlinestaticprotected

◆ restore()

template<class BndSeg >
static std::unique_ptr< BoundarySegment > Dune::BoundarySegmentBackupRestore< BndSeg >::restore ( ObjectStreamType in)
inlinestaticprotected

create an object of BoundarySegment type from a previously registered factory linked to key.

Parameters
instream buffer previously written with backup containing key and object data
Returns
Object derived from BoundarySegment.

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