Regina Calculation Engine
|
Stores data of type T
for every normal disc within a particular normal surface.
More...
#include <surfaces/ndisc.h>
Public Member Functions | |
NDiscSetSurfaceData (const NNormalSurface &surface) | |
Creates a new disc set corresponding to the discs of the given normal surface. More... | |
NDiscSetSurfaceData (const NNormalSurface &surface, const T &initValue) | |
Creates a new disc set corresponding to the discs of the given normal surface. More... | |
T & | data (const NDiscSpec &disc) |
Retrieves a reference to the data corresponding to the given normal disc. More... | |
![]() | |
NDiscSetSurface (const NNormalSurface &surface) | |
Creates a new disc set corresponding to the discs of the given normal surface. More... | |
virtual | ~NDiscSetSurface () |
Destroys this set of discs and deallocates all associated memory. More... | |
unsigned long | nTets () const |
Returns the number of tetrahedra in the underlying triangulation. More... | |
unsigned long | nDiscs (unsigned long tetIndex, int type) const |
Determines the number of discs of the given type inside the given tetrahedron. More... | |
NDiscSetTet & | tetDiscs (unsigned long tetIndex) const |
Returns the specific set of discs living inside the given tetrahedron. More... | |
NDiscSpec * | adjacentDisc (const NDiscSpec &disc, NPerm4 arc, NPerm4 &adjArc) const |
Determines which normal disc is adjacent to the given normal disc along the given directed normal arc in the surface described by this disc set. More... | |
Additional Inherited Members | |
![]() | |
NDiscSetSurface (const NNormalSurface &surface, bool b) | |
Creates a new disc set corresponding to the discs of the given normal surface. More... | |
![]() | |
NDiscSetTet ** | discSets |
The disc sets corresponding to each tetrahedron. More... | |
NTriangulation * | triangulation |
The triangulation in which the normal surface lives. More... | |
Stores data of type T
for every normal disc within a particular normal surface.
This data is stored using an array of NDiscSetTetData<T> objects, one for each tetrahedron (thus the inherited member function tetDiscs() will return an object of class NDiscSetTetData<T>).
unsigned long
. See the precondition below.a
and b
are of type T, then a
can be declared with no parameters and can then receive the value of b
using a=b
.
|
inline |
Creates a new disc set corresponding to the discs of the given normal surface.
The data for each disc will remain uninitialised.
surface | the normal surface whose discs we shall use. |
|
inline |
Creates a new disc set corresponding to the discs of the given normal surface.
The data for each disc will be initialised to the given value.
surface | the normal surface whose discs we shall use. |
initValue | the value with which to initialise the data corresponding to each disc. |
|
inline |
Retrieves a reference to the data corresponding to the given normal disc.
disc | the disc whose data we require; this must refer to a disc within this disc set. |