MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::Vertex Class Reference

Data type for vertex. More...

#include <vertex.hpp>

Public Member Functions

 Vertex ()=default
 
 Vertex (real_t *xx, int dim)
 
 Vertex (real_t x, real_t y)
 
 Vertex (real_t x, real_t y, real_t z)
 
real_toperator() () const
 Returns pointer to the coordinates of the vertex.
 
real_toperator() (int i)
 Returns the i'th coordinate of the vertex.
 
const real_toperator() (int i) const
 Returns the i'th coordinate of the vertex.
 
MFEM_DEPRECATED void SetCoords (const real_t *p)
 (DEPRECATED) Set the coordinates of the Vertex.
 
void SetCoords (int dim, const real_t *p)
 Sets vertex location based on given point p.
 

Protected Attributes

real_t coord [3]
 

Detailed Description

Data type for vertex.

Definition at line 22 of file vertex.hpp.

Constructor & Destructor Documentation

◆ Vertex() [1/4]

mfem::Vertex::Vertex ( )
default

◆ Vertex() [2/4]

mfem::Vertex::Vertex ( real_t * xx,
int dim )

Definition at line 18 of file vertex.cpp.

◆ Vertex() [3/4]

mfem::Vertex::Vertex ( real_t x,
real_t y )
inline

Definition at line 33 of file vertex.hpp.

◆ Vertex() [4/4]

mfem::Vertex::Vertex ( real_t x,
real_t y,
real_t z )
inline

Definition at line 34 of file vertex.hpp.

Member Function Documentation

◆ operator()() [1/3]

real_t * mfem::Vertex::operator() ( ) const
inline

Returns pointer to the coordinates of the vertex.

Definition at line 38 of file vertex.hpp.

◆ operator()() [2/3]

real_t & mfem::Vertex::operator() ( int i)
inline

Returns the i'th coordinate of the vertex.

Definition at line 41 of file vertex.hpp.

◆ operator()() [3/3]

const real_t & mfem::Vertex::operator() ( int i) const
inline

Returns the i'th coordinate of the vertex.

Definition at line 44 of file vertex.hpp.

◆ SetCoords() [1/2]

MFEM_DEPRECATED void mfem::Vertex::SetCoords ( const real_t * p)
inline

(DEPRECATED) Set the coordinates of the Vertex.

Deprecated
This old version of SetCoords is not always memory safe.

Definition at line 48 of file vertex.hpp.

◆ SetCoords() [2/2]

void mfem::Vertex::SetCoords ( int dim,
const real_t * p )
inline

Sets vertex location based on given point p.

Definition at line 52 of file vertex.hpp.

Member Data Documentation

◆ coord

real_t mfem::Vertex::coord[3]
protected

Definition at line 25 of file vertex.hpp.


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