Dune Core Modules (2.9.0)

Dune::BoundarySegmentWrapper< dim, dimworld > Class Template Reference

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

Public Member Functions

 BoundarySegmentWrapper (const GeometryType &type, const std::vector< CoordinateType > &vertices, const std::shared_ptr< BoundarySegment > &boundarySegment)
 
CoordinateType operator() (const CoordinateType &global) const
 projection operator projection a global coordinate
 
virtual void backup ([[maybe_unused]] ObjectStreamType &buffer) const
 write DuneBoundaryProjection's data to stream buffer More...
 

Protected Types

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 std::unique_ptr< BoundarySegmentrestore (ObjectStreamType &in)
 create an object of BoundarySegment type from a previously registered factory linked to key. More...
 

Detailed Description

template<int dim, int dimworld>
class Dune::BoundarySegmentWrapper< dim, dimworld >

Template Parameters
dimDimension of the grid

Constructor & Destructor Documentation

◆ BoundarySegmentWrapper()

template<int dim, int dimworld>
Dune::BoundarySegmentWrapper< dim, dimworld >::BoundarySegmentWrapper ( const GeometryType type,
const std::vector< CoordinateType > &  vertices,
const std::shared_ptr< BoundarySegment > &  boundarySegment 
)
inline

constructor

Parameters
[in]typegeometry type of the boundary face
[in]verticesvertices of the boundary face
[in]boundarySegmentgeometric realization of the shaped boundary
Note
The BoundarySegmentWrapper takes control of the boundary segment.

Member Function Documentation

◆ backup()

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

write DuneBoundaryProjection's data to stream buffer

Parameters
bufferbuffer to store data

References DUNE_THROW.

◆ restore()

template<class BndSeg >
static std::unique_ptr< BoundarySegment > Dune::BoundarySegmentBackupRestore< BndSeg >::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.

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 19, 22:31, 2024)