FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ > Class Template Reference

Cubature Rule class template. More...

#include <rule.hpp>

Public Types

typedef Coord_ CoordType
 
typedef Point_ PointType
 
typedef Shape_ ShapeType
 
typedef Weight_ WeightType
 

Public Member Functions

template<typename Factory_ >
 Rule (CtorFactory, const Factory_ &factory)
 
 Rule (int num_points, const String &name)
 
 Rule (Rule &&other)
 move ctor More...
 
Rule clone () const
 
CoordType & get_coord (int i, int j)
 
const CoordType & get_coord (int i, int j) const
 
const Stringget_name () const
 
int get_num_points () const
 
PointType & get_point (int i)
 
const PointType & get_point (int i) const
 
PointType * get_points ()
 
const PointType * get_points () const
 
WeightType & get_weight (int i)
 
const WeightType & get_weight (int i) const
 
WeightType * get_weights ()
 
const WeightType * get_weights () const
 
Ruleoperator= (Rule &&other)
 move-assign operator More...
 

Static Public Attributes

static constexpr int dimension = ShapeType::dimension
 

Protected Attributes

String _name
 
int _num_points
 
std::vector< PointType > _points
 
std::vector< WeightType > _weights
 

Detailed Description

template<typename Shape_, typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
class FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >

Cubature Rule class template.

Author
Peter Zajac

Definition at line 37 of file rule.hpp.

Member Typedef Documentation

◆ CoordType

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
typedef Coord_ FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::CoordType

Definition at line 42 of file rule.hpp.

◆ PointType

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
typedef Point_ FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::PointType

Definition at line 43 of file rule.hpp.

◆ ShapeType

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
typedef Shape_ FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::ShapeType

Definition at line 40 of file rule.hpp.

◆ WeightType

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
typedef Weight_ FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::WeightType

Definition at line 41 of file rule.hpp.

Constructor & Destructor Documentation

◆ Rule() [1/4]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::Rule ( )
inline

Definition at line 53 of file rule.hpp.

◆ Rule() [2/4]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::Rule ( int  num_points,
const String name 
)
inlineexplicit

Definition at line 59 of file rule.hpp.

◆ Rule() [3/4]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
template<typename Factory_ >
FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::Rule ( CtorFactory  ,
const Factory_ &  factory 
)
inline

Definition at line 71 of file rule.hpp.

◆ Rule() [4/4]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::Rule ( Rule< Shape_, Weight_, Coord_, Point_ > &&  other)
inline

move ctor

Definition at line 79 of file rule.hpp.

◆ ~Rule()

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
virtual FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::~Rule ( )
inlinevirtual

Definition at line 107 of file rule.hpp.

Member Function Documentation

◆ clone()

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
Rule FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::clone ( ) const
inline

Definition at line 111 of file rule.hpp.

◆ get_coord() [1/2]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
CoordType & FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::get_coord ( int  i,
int  j 
)
inline

Definition at line 173 of file rule.hpp.

◆ get_coord() [2/2]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
const CoordType & FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::get_coord ( int  i,
int  j 
) const
inline

Definition at line 180 of file rule.hpp.

◆ get_name()

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
const String & FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::get_name ( ) const
inline

Definition at line 119 of file rule.hpp.

◆ get_num_points()

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
int FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::get_num_points ( ) const
inline

Definition at line 124 of file rule.hpp.

◆ get_point() [1/2]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
PointType & FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::get_point ( int  i)
inline

Definition at line 151 of file rule.hpp.

◆ get_point() [2/2]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
const PointType & FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::get_point ( int  i) const
inline

Definition at line 162 of file rule.hpp.

◆ get_points() [1/2]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
PointType * FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::get_points ( )
inline

Definition at line 157 of file rule.hpp.

◆ get_points() [2/2]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
const PointType * FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::get_points ( ) const
inline

Definition at line 168 of file rule.hpp.

◆ get_weight() [1/2]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
WeightType & FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::get_weight ( int  i)
inline

Definition at line 129 of file rule.hpp.

◆ get_weight() [2/2]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
const WeightType & FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::get_weight ( int  i) const
inline

Definition at line 140 of file rule.hpp.

◆ get_weights() [1/2]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
WeightType * FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::get_weights ( )
inline

Definition at line 135 of file rule.hpp.

◆ get_weights() [2/2]

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
const WeightType * FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::get_weights ( ) const
inline

Definition at line 146 of file rule.hpp.

◆ operator=()

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
Rule & FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::operator= ( Rule< Shape_, Weight_, Coord_, Point_ > &&  other)
inline

move-assign operator

Definition at line 90 of file rule.hpp.

Member Data Documentation

◆ _name

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
String FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::_name
protected

Definition at line 47 of file rule.hpp.

◆ _num_points

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
int FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::_num_points
protected

Definition at line 48 of file rule.hpp.

◆ _points

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
std::vector<PointType> FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::_points
protected

Definition at line 50 of file rule.hpp.

◆ _weights

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
std::vector<WeightType> FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::_weights
protected

Definition at line 49 of file rule.hpp.

◆ dimension

template<typename Shape_ , typename Weight_ = Real, typename Coord_ = Real, typename Point_ = Tiny::Vector<Coord_, Shape_::dimension>>
constexpr int FEAT::Cubature::Rule< Shape_, Weight_, Coord_, Point_ >::dimension = ShapeType::dimension
staticconstexpr

Definition at line 44 of file rule.hpp.


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