dune-grid 2.10
Loading...
Searching...
No Matches
Dune::dgf::ProjectionBlock::BoundaryProjection< dimworld > Class Template Reference

#include <dune/grid/io/file/dgfparser/blocks/projection.hh>

Inheritance diagram for Dune::dgf::ProjectionBlock::BoundaryProjection< dimworld >:
Inheritance graph

Public Types

typedef Base::CoordinateType CoordinateType
 
typedef DuneBoundaryProjection< dimworld > ThisType
 
typedef BoundarySegmentBackupRestore< DuneBoundaryProjection< dimworld > > BaseType
 

Public Member Functions

 BoundaryProjection (const ExpressionPair &exprpair)
 
 BoundaryProjection (ObjectStreamType &buffer)
 
virtual CoordinateType operator() (const CoordinateType &global) const override
 projection operator projection a global coordinate
 
virtual void backup (std::stringstream &buffer) const override
 write DuneBoundaryProjection's data to stream buffer
 
template<class BufferImp >
void toBuffer (BufferImp &buffer) const
 
template<class BufferImp >
void toBuffer (MessageBufferIF< BufferImp > &buffer) const
 

Static Public Member Functions

static void registerFactory ()
 
template<class BufferImp >
static std::unique_ptr< ThisTyperestoreFromBuffer (BufferImp &buffer)
 
template<class BufferImp >
static std::unique_ptr< ThisTyperestoreFromBuffer (MessageBufferIF< BufferImp > &buffer)
 

Protected Types

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

Static Protected Member Functions

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

Protected Attributes

ExpressionPointer expression_
 
std::string expressionName_
 

Member Typedef Documentation

◆ BaseType

template<int dimworld>
BoundarySegmentBackupRestore< DuneBoundaryProjection< dimworld > > Dune::DuneBoundaryProjection< dimworld >::BaseType
inherited

◆ BoundarySegment

DuneBoundaryProjection< dimworld > Dune::BoundarySegmentBackupRestore< DuneBoundaryProjection< dimworld > >::BoundarySegment
protectedinherited

type of BoundarySegment interface class

◆ CoordinateType

template<int dimworld>
Base::CoordinateType Dune::dgf::ProjectionBlock::BoundaryProjection< dimworld >::CoordinateType

◆ FactoryType

Dune::ParameterizedObjectFactory< std::unique_ptr< BoundarySegment >( ObjectStreamType& ), int > Dune::BoundarySegmentBackupRestore< DuneBoundaryProjection< dimworld > >::FactoryType
protectedinherited

type of factory creating a unique_ptr from an ObjectStreamType

◆ ThisType

template<int dimworld>
DuneBoundaryProjection< dimworld > Dune::DuneBoundaryProjection< dimworld >::ThisType
inherited

Constructor & Destructor Documentation

◆ BoundaryProjection() [1/2]

template<int dimworld>
Dune::dgf::ProjectionBlock::BoundaryProjection< dimworld >::BoundaryProjection ( const ExpressionPair & exprpair)
inline

◆ BoundaryProjection() [2/2]

template<int dimworld>
Dune::dgf::ProjectionBlock::BoundaryProjection< dimworld >::BoundaryProjection ( ObjectStreamType & buffer)
inline

Member Function Documentation

◆ backup()

template<int dimworld>
virtual void Dune::dgf::ProjectionBlock::BoundaryProjection< dimworld >::backup ( std::stringstream & buffer) const
inlineoverridevirtual

write DuneBoundaryProjection's data to stream buffer

Parameters
bufferbuffer to store data

Reimplemented from Dune::DuneBoundaryProjection< dimworld >.

◆ key()

template<int dimworld>
static int & Dune::dgf::ProjectionBlock::BoundaryProjection< dimworld >::key ( )
inlinestaticprotected

◆ operator()()

template<int dimworld>
virtual CoordinateType Dune::dgf::ProjectionBlock::BoundaryProjection< dimworld >::operator() ( const CoordinateType & global) const
inlineoverridevirtual

projection operator projection a global coordinate

Implements Dune::DuneBoundaryProjection< dimworld >.

◆ registerFactory()

template<int dimworld>
static void Dune::dgf::ProjectionBlock::BoundaryProjection< dimworld >::registerFactory ( )
inlinestatic

◆ restore()

static std::unique_ptr< BoundarySegment > Dune::BoundarySegmentBackupRestore< DuneBoundaryProjection< dimworld > >::restore ( ObjectStreamType & in)
inlinestaticprotectedinherited

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.

◆ restoreFromBuffer() [1/2]

template<int dimworld>
template<class BufferImp >
static std::unique_ptr< ThisType > Dune::DuneBoundaryProjection< dimworld >::restoreFromBuffer ( BufferImp & buffer)
inlinestaticinherited

◆ restoreFromBuffer() [2/2]

template<int dimworld>
template<class BufferImp >
static std::unique_ptr< ThisType > Dune::DuneBoundaryProjection< dimworld >::restoreFromBuffer ( MessageBufferIF< BufferImp > & buffer)
inlinestaticinherited

◆ toBuffer() [1/2]

template<int dimworld>
template<class BufferImp >
void Dune::DuneBoundaryProjection< dimworld >::toBuffer ( BufferImp & buffer) const
inlineinherited

◆ toBuffer() [2/2]

template<int dimworld>
template<class BufferImp >
void Dune::DuneBoundaryProjection< dimworld >::toBuffer ( MessageBufferIF< BufferImp > & buffer) const
inlineinherited

Member Data Documentation

◆ expression_

template<int dimworld>
ExpressionPointer Dune::dgf::ProjectionBlock::BoundaryProjection< dimworld >::expression_
protected

◆ expressionName_

template<int dimworld>
std::string Dune::dgf::ProjectionBlock::BoundaryProjection< dimworld >::expressionName_
protected

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