The Original CHomP Software
|
This class defines a simple list of pointers to objects of the given type. More...
#include <chains.h>
Public Member Functions | |
simplelist () | |
The default constructor of an empty list. More... | |
~simplelist () | |
The destructor. More... | |
void | add (element &m) |
Adds an element to the list. More... | |
void | remove (element &m) |
Remove an element from the list. More... | |
element * | take () |
A simple internal iterator of the list. More... | |
Private Member Functions | |
simplelist (const simplelist< element > &s) | |
The copy constructor is not implemented. More... | |
simplelist< element > & | operator= (const simplelist< element > &s) |
The assignment operator is not implemented. More... | |
Private Attributes | |
int | num |
The number of element pointers stored in the list. More... | |
int | cur |
The current element in the table. More... | |
element ** | elem |
A table of element pointers. More... | |
This class defines a simple list of pointers to objects of the given type.
It is a helper class used in chain complex.
|
inline |
The default constructor of an empty list.
Definition at line 1003 of file chains.h.
|
inline |
|
inlineprivate |
|
inline |
Adds an element to the list.
|
inlineprivate |
|
inline |
|
inline |
A simple internal iterator of the list.
A call to this function returns an element from the list, but does not remove it from the list, and sets the internal iterator for the next element. After the last element has been taken, returns 0 and rewinds the iterator to the beginning of the list.
|
private |
|
private |
|
private |