A simplex with vertices of arbitrary type.
More...
#include <simplex.h>
List of all members.
Public Types |
typedef VertexT | VertexType |
| The type of the vertex.
|
Public Member Functions |
| tSimplex () |
| The default constructor of an empty simplex.
|
template<class VertexArray > |
| tSimplex (int dimension, const VertexArray &vertices) |
| The constructor of a simplex from an array of vertices.
|
| tSimplex (const tSimplex< VertexT > &s) |
| The copy constructor.
|
| tSimplex (const tSimplex< VertexT > &s, int n) |
| The constructor of the n-th boundary simplex.
|
tSimplex< VertexT > & | operator= (const tSimplex< VertexT > &s) |
| The assignment operator.
|
| ~tSimplex () |
| The destructor.
|
int | dim () const |
| Returns the dimension of the simplex.
|
const VertexT & | operator[] (int n) const |
| Returns the n-th vertex of the simplex.
|
int | boundaryLength () const |
| Returns the length of the boundary of the simplex.
|
int | boundaryCoef (int n) const |
| Returns the n-th coefficient in the boundary of the simplex.
|
bool | operator== (const tSimplex< VertexT > &s) const |
| The equality operator.
|
void | swap (tSimplex< VertexT > &s) |
| Swaps the data between two simplices.
|
Private Attributes |
int | dimension |
| The dimension of the simplex.
|
VertexT * | vertices |
| An array of vertices of the simplex.
|
Detailed Description
template<class VertexT>
class tSimplex< VertexT >
A simplex with vertices of arbitrary type.
Definition at line 51 of file simplex.h.
Member Typedef Documentation
The type of the vertex.
Definition at line 55 of file simplex.h.
Constructor & Destructor Documentation
The default constructor of an empty simplex.
Definition at line 105 of file simplex.h.
template<class VertexT >
template<class VertexArray >
tSimplex< VertexT >::tSimplex |
( |
int |
dimension, |
|
|
const VertexArray & |
vertices |
|
) |
| [inline] |
The constructor of a simplex from an array of vertices.
Definition at line 113 of file simplex.h.
The copy constructor.
Definition at line 124 of file simplex.h.
The constructor of the n-th boundary simplex.
Definition at line 134 of file simplex.h.
Member Function Documentation
template<class VertexT >
int tSimplex< VertexT >::boundaryCoef |
( |
int |
n ) |
const [inline] |
Returns the n-th coefficient in the boundary of the simplex.
Definition at line 193 of file simplex.h.
template<class VertexT >
int tSimplex< VertexT >::boundaryLength |
( |
) |
const [inline] |
Returns the length of the boundary of the simplex.
Definition at line 183 of file simplex.h.
template<class VertexT >
int tSimplex< VertexT >::dim |
( |
) |
const [inline] |
Returns the dimension of the simplex.
Definition at line 171 of file simplex.h.
The assignment operator.
Definition at line 147 of file simplex.h.
template<class VertexT >
bool tSimplex< VertexT >::operator== |
( |
const tSimplex< VertexT > & |
s ) |
const [inline] |
The equality operator.
Definition at line 200 of file simplex.h.
template<class VertexT >
const VertexT & tSimplex< VertexT >::operator[] |
( |
int |
n ) |
const [inline] |
Returns the n-th vertex of the simplex.
Definition at line 177 of file simplex.h.
Swaps the data between two simplices.
Definition at line 213 of file simplex.h.
Member Data Documentation
The dimension of the simplex.
Definition at line 96 of file simplex.h.
An array of vertices of the simplex.
Definition at line 99 of file simplex.h.
The documentation for this class was generated from the following file: