MFEM v2.0
Public Member Functions | Protected Attributes
Vertex Class Reference

Data type for vertex. More...

#include <vertex.hpp>

List of all members.

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.
double & operator() (int i)
 Returns the i'th coordinate of the vertex.
const double & operator() (int i) const
 Returns the i'th coordinate of the vertex.
void SetCoords (const double *p)
 ~Vertex ()

Protected Attributes

double coord [3]

Detailed Description

Data type for vertex.

Definition at line 16 of file vertex.hpp.


Constructor & Destructor Documentation

Vertex::Vertex ( ) [inline]

Definition at line 22 of file vertex.hpp.

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

Definition at line 15 of file vertex.cpp.

References coord.

Vertex::Vertex ( double  x,
double  y 
) [inline]

Definition at line 25 of file vertex.hpp.

References coord.

Vertex::Vertex ( double  x,
double  y,
double  z 
) [inline]

Definition at line 26 of file vertex.hpp.

References coord.

Vertex::~Vertex ( ) [inline]

Definition at line 41 of file vertex.hpp.


Member Function Documentation

double* Vertex::operator() ( ) const [inline]

Returns pointer to the coordinates of the vertex.

Definition at line 30 of file vertex.hpp.

References coord.

double& Vertex::operator() ( int  i) [inline]

Returns the i'th coordinate of the vertex.

Definition at line 33 of file vertex.hpp.

References coord.

const double& Vertex::operator() ( int  i) const [inline]

Returns the i'th coordinate of the vertex.

Definition at line 36 of file vertex.hpp.

References coord.

void Vertex::SetCoords ( const double *  p) [inline]

Definition at line 38 of file vertex.hpp.

References coord.


Member Data Documentation

double Vertex::coord[3] [protected]

Definition at line 19 of file vertex.hpp.

Referenced by operator()(), SetCoords(), and Vertex().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines