The ChainCon Software (Release 0.03)
|
A filtered complex. More...
#include <filtcomplex.h>
Public Types | |
typedef CellT | CellType |
The type of cells in the filtered complex. More... | |
typedef CellT | value_type |
The type of elements in the filtered complex perceived as a standard-type aggregate. More... | |
Public Member Functions | |
tFilteredComplex () | |
The default constructor. More... | |
int_t | add (const CellT &c) |
Adds a cell to the complex. More... | |
int_t | getNumber (const CellT &c) const |
Finds a cell in the complex. More... | |
bool | check (const CellT &c) const |
Checks if a cell is in the complex. More... | |
int_t | size () const |
Returns the size of the complex. More... | |
bool | empty () const |
Returns the information on whether the complex is empty or not. More... | |
const CellT & | operator[] (int_t n) const |
Returns the given cell in the complex in the reversed order. More... | |
void | swap (tFilteredComplex< CellT > &fc) |
Swaps the data with another filtered complex. More... | |
Private Attributes | |
chomp::homology::hashedset< CellT > | cells |
The set of all the cells in the complex in the right order. More... | |
A filtered complex.
Cells must be added to this complex in an order that ensures that any cell that appears in the boundary of another cell is added AFTER that cell. Contains a method for generating the boundaries of all the cells that were previously added to the complex. Then the cells can be accessed in the reversed order using operator [].
Definition at line 53 of file filtcomplex.h.
typedef CellT tFilteredComplex< CellT >::CellType |
The type of cells in the filtered complex.
Definition at line 57 of file filtcomplex.h.
typedef CellT tFilteredComplex< CellT >::value_type |
The type of elements in the filtered complex perceived as a standard-type aggregate.
Definition at line 61 of file filtcomplex.h.
|
inline |
The default constructor.
Definition at line 98 of file filtcomplex.h.
|
inline |
Adds a cell to the complex.
Does not add its boundary cells. Returns the number of the added cell in the complex.
Definition at line 105 of file filtcomplex.h.
References tFilteredComplex< CellT >::cells.
Referenced by operator>>().
|
inline |
Checks if a cell is in the complex.
Definition at line 118 of file filtcomplex.h.
References tFilteredComplex< CellT >::cells.
|
inline |
Returns the information on whether the complex is empty or not.
Definition at line 130 of file filtcomplex.h.
References tFilteredComplex< CellT >::cells.
|
inline |
Finds a cell in the complex.
Returns its number or -1 if not found.
Definition at line 111 of file filtcomplex.h.
References tFilteredComplex< CellT >::cells, and tFilteredComplex< CellT >::size().
|
inline |
Returns the given cell in the complex in the reversed order.
Definition at line 136 of file filtcomplex.h.
References tFilteredComplex< CellT >::cells, and tFilteredComplex< CellT >::size().
|
inline |
Returns the size of the complex.
Definition at line 124 of file filtcomplex.h.
References tFilteredComplex< CellT >::cells.
Referenced by tFilteredComplex< CellT >::getNumber(), operator<<(), and tFilteredComplex< CellT >::operator[]().
|
inline |
Swaps the data with another filtered complex.
Definition at line 145 of file filtcomplex.h.
References tFilteredComplex< CellT >::cells.
|
private |
The set of all the cells in the complex in the right order.
Definition at line 91 of file filtcomplex.h.
Referenced by tFilteredComplex< CellT >::add(), tFilteredComplex< CellT >::check(), tFilteredComplex< CellT >::empty(), tFilteredComplex< CellT >::getNumber(), tFilteredComplex< CellT >::operator[](), tFilteredComplex< CellT >::size(), and tFilteredComplex< CellT >::swap().