Dune Core Modules (2.7.1)

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
 
void backup (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 dim, int dimworld>
void Dune::BoundarySegmentWrapper< dim, dimworld >::backup ( ObjectStreamType &  buffer) const
inlinevirtual

◆ 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.111.3 (Nov 12, 23:30, 2024)