The Original CHomP Software
|
This class keeps a common set of points which are indexed for the use of other classes, like cubes or cubical cells. More...
#include <pointbas.h>
Static Public Member Functions | |
static int_t | number (const coordtype *c, int d) |
Returns the number of the point with given coordinates. More... | |
static bool | check (const coordtype *c, int d) |
Checks whether this point is already included in the list. More... | |
static const coordtype * | coord (int_t number, int d) |
Retrieves the coordinates of the given point. More... | |
static int | defaultdimension (void) |
Determines the default dimension of points. More... | |
static void | quiet (bool what=true) |
Sets the point base to be quiet or not. More... | |
static void | setwrapping (const coordtype *c, int mindim=1, int maxdim=MaxBasDim) |
Sets space wrapping for all the dimensions in the range starting with 'mindim' and strictly smaller than 'maxdim'. More... | |
static void | setwrapping (coordtype c, int mindim=1, int maxdim=MaxBasDim) |
Sets space wrapping for all the dimensions in the range starting with 'mindim' and strictly smaller than 'maxdim'. More... | |
static const coordtype * | getwrapping (int d) |
Returns the space wrapping for the given dimension. More... | |
static void | wrapcoord (coordtype *c, int dim) |
Wraps the given coordinates if necessary. More... | |
static void | wrapcopy (coordtype *dest, const coordtype *src, int dim) |
Copies the coordinates and wraps them if necessary. More... | |
static void | reset (void) |
Resets the internal data. More... | |
static void | forget (void) |
Forgets the base points, frees memory and makes this data structure ususable: An exception is thrown if this data is used. More... | |
static outputstream & | showused (outputstream &out) |
Shows the number of vertices stored for all the dimensions. More... | |
static std::ostream & | showused (std::ostream &out) |
Shows the number of vertices stored for all the dimensions. More... | |
Static Protected Attributes | |
static tPointset< coordtype > ** | p = NULL |
The sets of points from which numbers are taken. More... | |
static int | n = 0 |
The number of allocated sets of points. More... | |
static bool | show = true |
Should the summary of points' usage be displayed? More... | |
static bool | forgotten = false |
Were the base points forgotten? More... | |
static tPointBaseInitializer< coordtype > | pointBaseInitializer |
An object responsible for deleting the pointsets at exit. More... | |
Friends | |
class | tPointBaseInitializer< coordtype > |
Friendship class which shows the statistics in its destructor. More... | |
This class keeps a common set of points which are indexed for the use of other classes, like cubes or cubical cells.
This base is used to give each n-dimensional point its unique number. The consecutive numbers for each dimension begin with 1.
Definition at line 101 of file pointbas.h.
|
inlinestatic |
Checks whether this point is already included in the list.
Return false if not, true if yes. Does not add the point to the structure.
Definition at line 194 of file pointbas.h.
|
inlinestatic |
Retrieves the coordinates of the given point.
Definition at line 183 of file pointbas.h.
Referenced by chomp::homology::tCubeBase< coordtype >::coord(), chomp::homology::tCellBase< coordtype >::initialize(), chomp::homology::tCellBase< coordtype >::leftcoord(), chomp::homology::tCellBase< coordtype >::rightcoord(), and chomp::homology::tCellBase< coordtype >::tCellBase().
|
static |
Determines the default dimension of points.
Definition at line 381 of file pointbas.h.
|
inlinestatic |
Forgets the base points, frees memory and makes this data structure ususable: An exception is thrown if this data is used.
Definition at line 356 of file pointbas.h.
Referenced by chomp::homology::tPointBaseInitializer< coordtype >::~tPointBaseInitializer().
|
inlinestatic |
Returns the space wrapping for the given dimension.
Definition at line 299 of file pointbas.h.
Referenced by chomp::homology::tCellBase< coordtype >::tCellBase(), chomp::homology::tCellFix< dimfix, coordtype >::tCellFix(), and chomp::homology::tCellVar< coordtype >::tCellVar().
|
inlinestatic |
Returns the number of the point with given coordinates.
Points for each dimension get numbers starting at 1.
Definition at line 211 of file pointbas.h.
References chomp::homology::MaxBasDim, and chomp::homology::NumMask.
Referenced by chomp::homology::tCellBase< coordtype >::initialize(), chomp::homology::tCellBase< coordtype >::tCellBase(), and chomp::homology::tCubeBase< coordtype >::tCubeBase().
|
inlinestatic |
Sets the point base to be quiet or not.
If not quiet, it displays some usage statistics when the data is reset.
Definition at line 204 of file pointbas.h.
|
inlinestatic |
Resets the internal data.
Note: Cubes and cells created before resetting may be unusable after the reset.
Definition at line 338 of file pointbas.h.
|
inlinestatic |
Sets space wrapping for all the dimensions in the range starting with 'mindim' and strictly smaller than 'maxdim'.
The space wrapping in each direction can be different.
Definition at line 248 of file pointbas.h.
References chomp::homology::MaxBasDim.
Referenced by chomp::homology::ComputeBettiNumbers(), and chomp::homology::SetSpaceWrapping().
|
inlinestatic |
Sets space wrapping for all the dimensions in the range starting with 'mindim' and strictly smaller than 'maxdim'.
The space wrapping in each direction is the same.
Definition at line 288 of file pointbas.h.
References chomp::homology::MaxBasDim.
|
static |
Shows the number of vertices stored for all the dimensions.
Definition at line 399 of file pointbas.h.
Referenced by chomp::homology::tPointBaseInitializer< coordtype >::~tPointBaseInitializer().
|
static |
Shows the number of vertices stored for all the dimensions.
Definition at line 422 of file pointbas.h.
|
inlinestatic |
Wraps the given coordinates if necessary.
Definition at line 311 of file pointbas.h.
References chomp::homology::wrapcoord().
Referenced by chomp::homology::tCellFix< dimfix, coordtype >::rightcoord(), and chomp::homology::tCellVar< coordtype >::rightcoord().
|
inlinestatic |
Copies the coordinates and wraps them if necessary.
Definition at line 322 of file pointbas.h.
References chomp::homology::copycoord(), and chomp::homology::wrapcoord().
Referenced by chomp::homology::tCellFix< dimfix, coordtype >::initialize(), chomp::homology::tCellVar< coordtype >::initialize(), chomp::homology::tCubeFix< dimfix, coordtype >::tCubeFix(), and chomp::homology::tCubeVar< coordtype >::tCubeVar().
|
friend |
Friendship class which shows the statistics in its destructor.
Definition at line 157 of file pointbas.h.
|
staticprotected |
Were the base points forgotten?
Definition at line 173 of file pointbas.h.
|
staticprotected |
The number of allocated sets of points.
Definition at line 167 of file pointbas.h.
|
staticprotected |
The sets of points from which numbers are taken.
Definition at line 164 of file pointbas.h.
|
staticprotected |
An object responsible for deleting the pointsets at exit.
Definition at line 176 of file pointbas.h.
|
staticprotected |
Should the summary of points' usage be displayed?
Definition at line 170 of file pointbas.h.