#include <ntetface.h>
Public Member Functions | |
NTetFace () | |
Creates a new specifier with no initialisation. | |
NTetFace (int newTet, int newFace) | |
Creates a new specifier referring to the given face of the given tetrahedron. | |
NTetFace (const NTetFace &cloneMe) | |
Creates a new specifier referring to the same tetrahedron face as the given specifier. | |
bool | isBoundary (unsigned nTetrahedra) const |
Determines if this specifier represents the overall boundary. | |
bool | isBeforeStart () const |
Determines if this specifier represents a before-the-start value. | |
bool | isPastEnd (unsigned nTetrahedra, bool boundaryAlso) const |
Determines if this specifier represents a past-the-end value. | |
void | setFirst () |
Sets this specifier to the first face of the first tetrahedron. | |
void | setBoundary (unsigned nTetrahedra) |
Sets this specifier to the overall boundary. | |
void | setBeforeStart () |
Sets this specifier to before-the-start. | |
void | setPastEnd (unsigned nTetrahedra) |
Sets this specifier to past-the-end. | |
NTetFace & | operator= (const NTetFace &other) |
Sets this specifier to the value of the given specifier. | |
NTetFace | operator++ () |
Increments this specifier. | |
NTetFace | operator++ (int) |
Increments this specifier. | |
NTetFace | operator-- () |
Decrements this specifier. | |
NTetFace | operator-- (int) |
Decrements this specifier. | |
bool | operator== (const NTetFace &other) const |
Determines if this and the given specifier are identical. | |
bool | operator< (const NTetFace &other) const |
Determines if this is less than the given specifier. | |
bool | operator<= (const NTetFace &other) const |
Determines if this is less than or equal to the given specifier. | |
Public Attributes | |
int | tet |
The tetrahedron referred to. | |
int | face |
The face of the tetrahedron referred to. |
Only the tetrahedron index and face number are stored.
Facilities are provided for iterating through tetrahedron faces. With this in mind, it is also possible to represent the overall boundary, a past-the-end value and a before-the-start value.
When iterating through the tetrahedron faces, the faces will be ordered first by tetrahedron index and then by face number. The overall boundary appears after all other tetrahedron faces.
If there are n tetrahedra, the tetrahedra will be numbered from 0 to n-1 inclusive. The boundary will be represented as tetrahedron n, face 0. The past-the-end value will be represented as tetrahedron n, face 1, and the before-the-start value will be represented as tetrahedron -1, face 3.
|
Creates a new specifier with no initialisation. This specifier must be initialised before it is used. |
|
Creates a new specifier referring to the given face of the given tetrahedron.
|
|
Creates a new specifier referring to the same tetrahedron face as the given specifier.
|
|
Determines if this specifier represents a before-the-start value.
|
|
Determines if this specifier represents the overall boundary.
|
|
Determines if this specifier represents a past-the-end value. You can optionally declare the overall boundary to be past-the-end as well as the already predefined past-the-end value.
|
|
Increments this specifier. It will be changed to point to the next tetrahedron face. Faces are ordered first by tetrahedron index and then by face number. The overall boundary appears after all other faces.
|
|
Increments this specifier. It will be changed to point to the next tetrahedron face. Faces are ordered first by tetrahedron index and then by face number. The overall boundary appears after all other faces.
|
|
Decrements this specifier. It will be changed to point to the previous tetrahedron face. Faces are ordered first by tetrahedron index and then by face number. The overall boundary appears after all other faces.
|
|
Decrements this specifier. It will be changed to point to the previous tetrahedron face. Faces are ordered first by tetrahedron index and then by face number. The overall boundary appears after all other faces.
|
|
Determines if this is less than the given specifier.
|
|
Determines if this is less than or equal to the given specifier.
|
|
Sets this specifier to the value of the given specifier.
|
|
Determines if this and the given specifier are identical.
|
|
Sets this specifier to before-the-start.
|
|
Sets this specifier to the overall boundary.
|
|
Sets this specifier to the first face of the first tetrahedron.
|
|
Sets this specifier to past-the-end.
|
|
The face of the tetrahedron referred to. The face number is between 0 and 3 inclusive. |
|
The tetrahedron referred to. Tetrahedron numbering begins at 0. |