The Original CHomP Software
|
This class can be used for iterating point's neighbors. More...
#include <pointset.h>
Public Member Functions | |
tNeighbors (const coordtype *_source=NULL, int _dim=0, const coordtype *_wrap=NULL) | |
The only possible constructor for new objects. More... | |
tNeighbors (const tNeighbors< coordtype > &r) | |
The copy constructor. More... | |
tNeighbors & | operator= (const tNeighbors< coordtype > &r) |
The assignment operator. More... | |
~tNeighbors () | |
The destructor. More... | |
coordtype * | get () |
Returns the next neighbor. More... | |
void | reset () |
Resets the neighbors to the first one. More... | |
void | set (coordtype *_source) |
Redefines the source (and doesn't change other variables). More... | |
Private Member Functions | |
void | initialize (const coordtype *_source=NULL, int _dim=0, const coordtype *_wrap=NULL) |
Initializes the internal data of an object of this class. More... | |
void | deallocate () |
Deallocates any memory previously allocated for this object. More... | |
Private Attributes | |
int | dim |
The dimension of the space. More... | |
const coordtype * | source |
A pointer to the source point (not allocated!). More... | |
coordtype * | neighbor |
The coordinates of a created neighbor. More... | |
signed char * | counters |
The current counters. More... | |
const coordtype * | wrap |
The space wrapping (if needed). More... | |
This class can be used for iterating point's neighbors.
The source point must exist all the time you use this structure for this point.
Definition at line 1449 of file pointset.h.
chomp::homology::tNeighbors< coordtype >::tNeighbors | ( | const coordtype * | _source = NULL , |
int | _dim = 0 , |
||
const coordtype * | _wrap = NULL |
||
) |
The only possible constructor for new objects.
Definition at line 1525 of file pointset.h.
chomp::homology::tNeighbors< coordtype >::tNeighbors | ( | const tNeighbors< coordtype > & | r | ) |
The copy constructor.
Definition at line 1533 of file pointset.h.
chomp::homology::tNeighbors< coordtype >::~tNeighbors< coordtype > |
The destructor.
Definition at line 1549 of file pointset.h.
|
private |
Deallocates any memory previously allocated for this object.
Definition at line 1549 of file pointset.h.
coordtype * chomp::homology::tNeighbors< coordtype >::get |
Returns the next neighbor.
If no more neighbors are available then returns 0 and rewinds to the first neighbor.
Definition at line 1584 of file pointset.h.
References chomp::homology::wrapcoord().
|
private |
Initializes the internal data of an object of this class.
Definition at line 1503 of file pointset.h.
tNeighbors< coordtype > & chomp::homology::tNeighbors< coordtype >::operator= | ( | const tNeighbors< coordtype > & | r | ) |
The assignment operator.
Definition at line 1540 of file pointset.h.
void chomp::homology::tNeighbors< coordtype >::reset | ( | void | ) |
Resets the neighbors to the first one.
Definition at line 1566 of file pointset.h.
void chomp::homology::tNeighbors< coordtype >::set | ( | coordtype * | _source | ) |
Redefines the source (and doesn't change other variables).
Definition at line 1577 of file pointset.h.
|
private |
The current counters.
Definition at line 1486 of file pointset.h.
|
private |
The dimension of the space.
Definition at line 1477 of file pointset.h.
|
private |
The coordinates of a created neighbor.
Definition at line 1483 of file pointset.h.
|
private |
A pointer to the source point (not allocated!).
Definition at line 1480 of file pointset.h.
|
private |
The space wrapping (if needed).
Definition at line 1489 of file pointset.h.