dune-grid 2.9.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Static Protected Member Functions | Protected Attributes | List of all members
Dune::CircleBoundaryProjection< dimworld > Struct Template Reference

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

Inheritance diagram for Dune::CircleBoundaryProjection< dimworld >:
Inheritance graph

Public Types

typedef FieldVector< double, dimworld > CoordinateType
 type of coordinate vector More...
 
typedef DuneBoundaryProjection< dimworld > ThisType
 
typedef BoundarySegmentBackupRestore< DuneBoundaryProjection< dimworld > > BaseType
 
typedef BaseType::ObjectStreamType ObjectStreamType
 

Public Member Functions

 CircleBoundaryProjection (const double radius=std::sqrt((double) dimworld))
 constructor taking radius of circle (default = sqrt( dimworld ) ) More...
 
virtual ~CircleBoundaryProjection ()
 destructor More...
 
virtual CoordinateType operator() (const CoordinateType &global) const
 projection operator projection a global coordinate More...
 
virtual void backup (ObjectStreamType &buffer) const
 write DuneBoundaryProjection's data to stream buffer More...
 
template<class BufferImp >
void toBuffer (BufferImp &buffer) const
 
template<class BufferImp >
void toBuffer (MessageBufferIF< BufferImp > &buffer) const
 

Static Public Member Functions

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 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...
 
static int registerFactory ()
 

Protected Attributes

const double radius_
 radius of circ More...
 

Member Typedef Documentation

◆ BaseType

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

◆ BoundarySegment

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

type of BoundarySegment interface class

◆ CoordinateType

template<int dimworld>
typedef FieldVector< double, dimworld> Dune::CircleBoundaryProjection< dimworld >::CoordinateType

type of coordinate vector

◆ FactoryType

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

type of factory creating a unique_ptr from an ObjectStreamType

◆ ObjectStreamType

template<int dimworld>
typedef BaseType::ObjectStreamType Dune::DuneBoundaryProjection< dimworld >::ObjectStreamType
inherited

◆ ThisType

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

Constructor & Destructor Documentation

◆ CircleBoundaryProjection()

template<int dimworld>
Dune::CircleBoundaryProjection< dimworld >::CircleBoundaryProjection ( const double  radius = std::sqrt( (double)dimworld ))
inline

constructor taking radius of circle (default = sqrt( dimworld ) )

◆ ~CircleBoundaryProjection()

template<int dimworld>
virtual Dune::CircleBoundaryProjection< dimworld >::~CircleBoundaryProjection ( )
inlinevirtual

destructor

Member Function Documentation

◆ backup()

template<int dimworld>
virtual void Dune::DuneBoundaryProjection< dimworld >::backup ( ObjectStreamType buffer) const
inlinevirtualinherited

write DuneBoundaryProjection's data to stream buffer

Parameters
bufferbuffer to store data

Reimplemented in Dune::BoundarySegmentWrapper< dim, dimworld >.

◆ operator()()

template<int dimworld>
virtual CoordinateType Dune::CircleBoundaryProjection< dimworld >::operator() ( const CoordinateType global) const
inlinevirtual

projection operator projection a global coordinate

Implements Dune::DuneBoundaryProjection< dimworld >.

◆ registerFactory()

static int Dune::BoundarySegmentBackupRestore< DuneBoundaryProjection< dimworld > >::registerFactory ( )
inlinestaticprotectedinherited

◆ 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

◆ radius_

template<int dimworld>
const double Dune::CircleBoundaryProjection< dimworld >::radius_
protected

radius of circ


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