OGS
MathLib::Point3dWithID Class Reference

Detailed Description

Class Point3dWithID is derived from class Point3d in order to extend the class Point3d with an id.

Definition at line 25 of file Point3dWithID.h.

#include <Point3dWithID.h>

Inheritance diagram for MathLib::Point3dWithID:
[legend]
Collaboration diagram for MathLib::Point3dWithID:
[legend]

Public Member Functions

 Point3dWithID (double x0, double x1, double x2, std::size_t id=std::numeric_limits< std::size_t >::max())
 
 Point3dWithID (std::array< double, 3 > const &coords, std::size_t id=std::numeric_limits< std::size_t >::max())
 
 Point3dWithID (MathLib::Point3d const &pnt, std::size_t id=std::numeric_limits< std::size_t >::max())
 
 Point3dWithID ()
 
std::size_t getID () const
 
- Public Member Functions inherited from MathLib::TemplatePoint< double, 3 >
 TemplatePoint ()
 
 TemplatePoint (std::array< double, DIM > x)
 
 TemplatePoint (TemplatePoint const &)=default
 
virtual ~TemplatePoint ()=default
 
TemplatePointoperator= (TemplatePoint const &)=default
 
const double & 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...
 
double & operator[] (std::size_t idx)
 access operator (see book Effektiv C++ programmieren - subsection 1.3.2 ). More...
 
const double * getCoords () const
 
double * getCoords ()
 
virtual void write (std::ostream &os) const
 
virtual void read (std::istream &is)
 

Protected Member Functions

void setID (std::size_t id)
 Sets the ID of a node to the given value. More...
 

Private Attributes

std::size_t id_
 

Constructor & Destructor Documentation

◆ Point3dWithID() [1/4]

MathLib::Point3dWithID::Point3dWithID ( double  x0,
double  x1,
double  x2,
std::size_t  id = std::numeric_limits<std::size_t>::max() 
)
inline

Constructs a point with the coordinates x0, x1 and x2 and the provided id.

Parameters
x0x coordinate of point
x1y coordinate of point
x2z coordinate of point
idthe id of the object [default: max of std::size_t]

Definition at line 33 of file Point3dWithID.h.

35  : Point3d(std::array<double, 3>({{x0, x1, x2}})), id_(id)
36  {}
MathLib::TemplatePoint< double, 3 > Point3d

◆ Point3dWithID() [2/4]

MathLib::Point3dWithID::Point3dWithID ( std::array< double, 3 > const &  coords,
std::size_t  id = std::numeric_limits<std::size_t>::max() 
)
inlineexplicit

Constructs a point using std::array<double,3> as coordinates and the provided id.

Parameters
coordscoordinates of the point
idthe id of the object [default: max of std::size_t]

Definition at line 42 of file Point3dWithID.h.

45  : Point3d(coords), id_(id)
46  {}

◆ Point3dWithID() [3/4]

MathLib::Point3dWithID::Point3dWithID ( MathLib::Point3d const &  pnt,
std::size_t  id = std::numeric_limits<std::size_t>::max() 
)
inlineexplicit

Constructs a point with the same coordinates as the given Point3d pnt and the provided id.

Parameters
pnta MathLib::Point3d object containing the coordinates
idthe id of the object [default: max of std::size_t]

Definition at line 52 of file Point3dWithID.h.

55  : MathLib::Point3d(pnt), id_(id)
56  {}

◆ Point3dWithID() [4/4]

MathLib::Point3dWithID::Point3dWithID ( )
inline

Default constructor that initializes the id with max of std::size_t the default constructor of class Point3d.

Definition at line 60 of file Point3dWithID.h.

60 : id_(std::numeric_limits<std::size_t>::max()) {}

Member Function Documentation

◆ getID()

std::size_t MathLib::Point3dWithID::getID ( ) const
inline

Definition at line 62 of file Point3dWithID.h.

62 { return id_; }

References id_.

Referenced by MeshGeoToolsLib::BoundaryElementsAtPoint::BoundaryElementsAtPoint(), GeoLib::PointVec::PointVec(), FileIO::Gocad::GocadSGridReader::addFaceSetQuad(), ProcessLib::PythonBoundaryConditionLocalAssembler< ShapeFunction, IntegrationMethod, GlobalDim >::assemble(), ProcessLib::SourceTerms::Python::PythonSourceTermLocalAssembler< ShapeFunction, IntegrationMethod, GlobalDim >::assemble(), MeshLib::MeshRevision::collapseNodeIndices(), MeshLib::MeshRevision::constructFourNodeElement(), MeshLib::MeshRevision::constructLine(), MeshLib::MeshRevision::constructTri(), MeshLib::copyElement(), MeshLib::createFlippedElement(), MeshLib::anonymous_namespace{ConvertToLinearMesh.cpp}::createLinearElement(), MeshLib::createNodesAndIDMapFromElements(), MeshLib::MeshLayerMapper::createStaticLayers(), ProcessLib::extractInnerAndOuterNodes(), MeshLib::extrudeElement(), MeshLib::MeshRevision::findPyramidTopNode(), MeshLib::getBaseNodes(), ProcessLib::HeatTransportBHE::getBHEDataInMesh(), MeshLib::BoundaryExtraction::getBoundaryElementsAsMesh(), MeshLib::Mesh::getElementsConnectedToNode(), FileIO::Gocad::GocadNode::getFaceDirection(), ProcessLib::LIE::getFractureMatrixDataInMesh(), MeshGeoToolsLib::GeoMapper::getMeshElevation(), MeshLib::MeshSurfaceExtraction::getMeshSurface(), MeshLib::getNodeIndex(), getNodes(), MeshLib::MeshRevision::getNumberOfUniqueNodes(), MeshLib::ElementStatus::isActiveNode(), main(), ApplicationUtils::nodeIdBulkMesh(), ProcessLib::LIE::anonymous_namespace{MeshUtils.cpp}::IsCrackTip::operator()(), MeshLib::MeshRevision::reduceHex(), MeshLib::MeshRevision::reducePrism(), reorderNonlinearNodes(), ElementTreeModel::setElement(), MeshLib::ElementStatus::setElementStatus(), MeshLib::MeshRevision::subdivideHex(), MeshLib::MeshRevision::subdividePrism(), MeshLib::MeshRevision::subdividePyramid(), MeshLib::MeshRevision::subdivideQuad(), MeshLib::IO::transformToXDMFTopology(), GeoLib::PointVec::uniqueInsert(), and FileIO::GMSH::GMSHPoint::write().

◆ setID()

void MathLib::Point3dWithID::setID ( std::size_t  id)
inlineprotected

Sets the ID of a node to the given value.

Definition at line 66 of file Point3dWithID.h.

66 { id_ = id; }

References id_.

Referenced by FileIO::Gocad::GocadNode::resetID(), and GeoLib::PointVec::uniqueInsert().

Member Data Documentation

◆ id_

std::size_t MathLib::Point3dWithID::id_
private

Definition at line 69 of file Point3dWithID.h.

Referenced by getID(), and setID().


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