![]() |
OGS
|
class-template for points can be instantiated by a numeric type.
T | the coordinate type |
Definition at line 36 of file TemplatePoint.h.
#include <TemplatePoint.h>
Public Member Functions | |
TemplatePoint () | |
TemplatePoint (std::array< T, DIM > x) | |
virtual | ~TemplatePoint ()=default |
TemplatePoint (TemplatePoint const &)=default | |
TemplatePoint & | operator= (TemplatePoint const &)=default |
const T & | operator[] (std::size_t idx) const |
const access operator The access to the point coordinates is like the access to a field. Code example: More... | |
T & | operator[] (std::size_t idx) |
access operator (see book Effektiv C++ programmieren - subsection 1.3.2 ). More... | |
const T * | getCoords () const |
T * | getCoords () |
virtual void | write (std::ostream &os) const |
virtual void | read (std::istream &is) |
Private Attributes | |
std::array< T, DIM > | x_ |
MathLib::TemplatePoint< T, DIM >::TemplatePoint |
|
explicit |
constructor - constructs a TemplatePoint object
x | std::array containing the coordinates of the point |
Definition at line 103 of file TemplatePoint.h.
|
virtualdefault |
virtual destructor
|
default |
|
inline |
|
inline |
returns an array containing the coordinates of the point
Definition at line 75 of file TemplatePoint.h.
References MathLib::TemplatePoint< T, DIM >::x_.
Referenced by ProcessLib::HeatTransportBHE::HeatTransportBHELocalAssemblerBHE< ShapeFunction, IntegrationMethod, BHEType >::HeatTransportBHELocalAssemblerBHE(), GeoLib::MinimalBoundingSphere::MinimalBoundingSphere(), ProcessLib::NormalTractionBoundaryCondition::NormalTractionBoundaryConditionLocalAssembler< ShapeFunctionDisplacement, IntegrationMethod, GlobalDim >::NormalTractionBoundaryConditionLocalAssembler(), LayeredVolume::addLayerBoundaries(), MathLib::barycentricPointInTriangle(), MathLib::calcProjPntToLineAndDists(), MathLib::calcTetrahedronVolume(), MathLib::calcTriangleArea(), MeshLib::calculateNormalizedSurfaceNormal(), MathLib::gaussPointInTriangle(), MathLib::getAngle(), MeshLib::ProjectPointOnMesh::getElevation(), MeshLib::FaceRule::getFirstSurfaceVector(), ExactPredicates::getOrientation2d(), ExactPredicates::getOrientation2dFast(), MeshLib::FaceRule::getSecondSurfaceVector(), ProcessLib::SmallDeformationNonlocal::SmallDeformationNonlocalLocalAssembler< ShapeFunction, IntegrationMethod, DisplacementDim >::getSingleIntegrationPointCoordinates(), ProcessLib::LIE::HydroMechanics::HydroMechanicsProcess< GlobalDim >::initializeConcreteProcess(), ProcessLib::LIE::SmallDeformation::SmallDeformationProcess< DisplacementDim >::initializeConcreteProcess(), ProcessLib::SurfaceFluxLocalAssembler< ShapeFunction, IntegrationMethod, GlobalDim >::integrate(), MathLib::isCoplanar(), ProcessLib::DeactivatedSubdomain::isDeactivated(), GeoLib::lineSegmentIntersect(), MeshGeoToolsLib::mapPointOnSurfaceElement(), MathLib::orientation3d(), VtkPolylinesSource::RequestData(), ProcessLib::LIE::setFractureProperty(), MathLib::sqrDist(), MeshLib::CellRule::testElementNodeOrder(), testTriangleIntersectingAABB(), and GeoLib::triangleLineIntersection().
|
default |
|
inline |
access operator (see book Effektiv C++ programmieren - subsection 1.3.2 ).
Definition at line 69 of file TemplatePoint.h.
|
inline |
const access operator The access to the point coordinates is like the access to a field. Code example:
Definition at line 61 of file TemplatePoint.h.
References MathLib::TemplatePoint< T, DIM >::x_.
|
inlinevirtual |
read point coordinates into stream (used from operator>>)
Definition at line 88 of file TemplatePoint.h.
References MathLib::LinAlg::copy(), and MathLib::TemplatePoint< T, DIM >::x_.
|
inlinevirtual |
write point coordinates into stream (used from operator<<)
os | a standard output stream |
Reimplemented in FileIO::GMSH::GMSHPoint.
Definition at line 82 of file TemplatePoint.h.
References MathLib::LinAlg::copy(), and MathLib::TemplatePoint< T, DIM >::x_.
|
private |
Definition at line 95 of file TemplatePoint.h.
Referenced by MathLib::TemplatePoint< T, DIM >::getCoords(), MathLib::TemplatePoint< T, DIM >::operator[](), MathLib::TemplatePoint< T, DIM >::read(), and MathLib::TemplatePoint< T, DIM >::write().