Finite Volume Solver  prototype
A framework to build finite volume solvers for the AG Klein at the Freie Universität Berlin.
Public Member Functions | Public Attributes | List of all members
fub::GeometryWrapper< Rank, G > Struct Template Reference

#include <PolymorphicGeometry.hpp>

Public Member Functions

 GeometryWrapper (const G &base)
 
 GeometryWrapper (G &&base)
 
std::unique_ptr< Geometry< Rank > > Clone () const override
 Returns a copy of the concrete geometry as a pointer to the base class. More...
 
double ComputeDistanceTo (const std::array< double, Rank > &x) const override
 Computes the minimum distance between geometry and point x. More...
 

Public Attributes

base_
 

Constructor & Destructor Documentation

◆ GeometryWrapper() [1/2]

template<std::size_t Rank, typename G >
fub::GeometryWrapper< Rank, G >::GeometryWrapper ( const G &  base)
inline

◆ GeometryWrapper() [2/2]

template<std::size_t Rank, typename G >
fub::GeometryWrapper< Rank, G >::GeometryWrapper ( G &&  base)
inline

Member Function Documentation

◆ Clone()

template<std::size_t Rank, typename G >
std::unique_ptr<Geometry<Rank> > fub::GeometryWrapper< Rank, G >::Clone ( ) const
inlineoverridevirtual

Returns a copy of the concrete geometry as a pointer to the base class.

Implements fub::Geometry< Rank >.

◆ ComputeDistanceTo()

template<std::size_t Rank, typename G >
double fub::GeometryWrapper< Rank, G >::ComputeDistanceTo ( const std::array< double, Rank > &  x) const
inlineoverridevirtual

Computes the minimum distance between geometry and point x.

Implements fub::Geometry< Rank >.

Member Data Documentation

◆ base_

template<std::size_t Rank, typename G >
G fub::GeometryWrapper< Rank, G >::base_

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