MFEM  v3.3.2
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Attributes | List of all members
mfem::Vertex Class Reference

Data type for vertex. More...

#include <vertex.hpp>

Public Member Functions

 Vertex ()
 
 Vertex (double *xx, int dim)
 
 Vertex (double x, double y)
 
 Vertex (double x, double y, double z)
 
double * operator() () const
 Returns pointer to the coordinates of the vertex. More...
 
double & operator() (int i)
 Returns the i'th coordinate of the vertex. More...
 
const double & operator() (int i) const
 Returns the i'th coordinate of the vertex. More...
 
void SetCoords (const double *p)
 (DEPRECATED) Set the coordinates of the Vertex. More...
 
void SetCoords (int dim, const double *p)
 Sets vertex location based on given point p. More...
 
 ~Vertex ()
 

Protected Attributes

double coord [3]
 

Detailed Description

Data type for vertex.

Definition at line 21 of file vertex.hpp.

Constructor & Destructor Documentation

mfem::Vertex::Vertex ( )
inline

Definition at line 27 of file vertex.hpp.

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

Definition at line 18 of file vertex.cpp.

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

Definition at line 30 of file vertex.hpp.

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

Definition at line 31 of file vertex.hpp.

mfem::Vertex::~Vertex ( )
inline

Definition at line 52 of file vertex.hpp.

Member Function Documentation

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

Returns pointer to the coordinates of the vertex.

Definition at line 35 of file vertex.hpp.

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

Returns the i'th coordinate of the vertex.

Definition at line 38 of file vertex.hpp.

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

Returns the i'th coordinate of the vertex.

Definition at line 41 of file vertex.hpp.

void mfem::Vertex::SetCoords ( const double *  p)
inline

(DEPRECATED) Set the coordinates of the Vertex.

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

Definition at line 45 of file vertex.hpp.

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

Sets vertex location based on given point p.

Definition at line 49 of file vertex.hpp.

Member Data Documentation

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

Definition at line 24 of file vertex.hpp.


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