![]() |
OGS
|
Represents a point of a certain dimension that has a weight attached.
Used, e.g., in numerical quadrature.
Definition at line 21 of file WeightedPoint.h.
#include <WeightedPoint.h>
Public Member Functions | |
| template<std::size_t dim> | |
| constexpr | WeightedPoint (std::array< double, dim > const &coords, double const weight) |
| constexpr | WeightedPoint (double const weight) |
| Constructs a 0D weighted point. | |
| constexpr bool | operator== (WeightedPoint const &other) const |
| constexpr bool | operator!= (WeightedPoint const &other) const |
| constexpr const double * | data () const |
| constexpr double | getWeight () const |
| constexpr std::size_t | getDimension () const |
| The point dimension, i.e., the number of its coordinates. | |
| constexpr double | operator[] (std::size_t coord_idx) const |
| Access a specific coordinate. | |
Private Attributes | |
| double | weight_ |
| std::array< double, 3 > | coords_ |
| std::size_t | dim_ |
|
inlineconstexpr |
Constructs a 0...3D weighted point depending on the passed coordinates array.
Definition at line 27 of file WeightedPoint.h.
References coords_, dim_, and weight_.
Referenced by operator!=(), and operator==().
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
The point dimension, i.e., the number of its coordinates.
Definition at line 85 of file WeightedPoint.h.
References dim_.
Referenced by MeshLib::getBulkElementPoint(), and MathLib::operator<<().
|
inlineconstexpr |
Definition at line 82 of file WeightedPoint.h.
References weight_.
Referenced by ProcessLib::LIE::HydroMechanics::HydroMechanicsLocalAssemblerFracture< ShapeFunctionDisplacement, ShapeFunctionPressure, DisplacementDim >::HydroMechanicsLocalAssemblerFracture(), ProcessLib::LIE::HydroMechanics::HydroMechanicsLocalAssemblerMatrix< ShapeFunctionDisplacement, ShapeFunctionPressure, DisplacementDim >::HydroMechanicsLocalAssemblerMatrix(), ProcessLib::ThermoRichardsMechanics::ThermoRichardsMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunction, DisplacementDim, ConstitutiveTraits >::ThermoRichardsMechanicsLocalAssembler(), ProcessLib::GenericNaturalBoundaryConditionLocalAssembler< ShapeFunction, GlobalDim >::initNsAndWeights(), and MathLib::operator<<().
|
inlineconstexpr |
Definition at line 75 of file WeightedPoint.h.
References WeightedPoint().
|
inlineconstexpr |
Definition at line 55 of file WeightedPoint.h.
References WeightedPoint(), coords_, dim_, and weight_.
|
inlineconstexpr |
|
private |
Definition at line 95 of file WeightedPoint.h.
Referenced by WeightedPoint(), WeightedPoint(), data(), operator==(), and operator[]().
|
private |
Definition at line 96 of file WeightedPoint.h.
Referenced by WeightedPoint(), WeightedPoint(), getDimension(), and operator==().
|
private |
Definition at line 94 of file WeightedPoint.h.
Referenced by WeightedPoint(), WeightedPoint(), getWeight(), and operator==().