Public Member Functions | Private Attributes

tFilteredComplex< CellT > Class Template Reference

A filtered complex. More...

#include <filtcomplex.h>

List of all members.

Public Member Functions

 tFilteredComplex ()
 The default constructor.
int_t add (const CellT &c)
 Adds a cell to the complex.
int_t size () const
 Returns the size of the complex.
bool empty () const
 Returns the information on whether the complex is empty or not.
const CellT & operator[] (int_t n) const
 Returns the given cell in the complex in the reversed order.
void swap (tFilteredComplex< CellT > &fc)
 Swaps the data with another filtered complex.

Private Attributes

chomp::homology::hashedset< CellT > cells
 The set of all the cells in the complex in the right order.

Detailed Description

template<class CellT>
class tFilteredComplex< CellT >

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.


Constructor & Destructor Documentation

template<class CellT >
tFilteredComplex< CellT >::tFilteredComplex (  ) [inline]

The default constructor.

Definition at line 84 of file filtcomplex.h.


Member Function Documentation

template<class CellT >
int_t tFilteredComplex< CellT >::add ( const CellT &  c ) [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 91 of file filtcomplex.h.

template<class CellT >
bool tFilteredComplex< CellT >::empty (  ) const [inline]

Returns the information on whether the complex is empty or not.

Definition at line 103 of file filtcomplex.h.

template<class CellT >
const CellT & tFilteredComplex< CellT >::operator[] ( int_t  n ) const [inline]

Returns the given cell in the complex in the reversed order.

Definition at line 109 of file filtcomplex.h.

template<class CellT >
int_t tFilteredComplex< CellT >::size (  ) const [inline]

Returns the size of the complex.

Definition at line 97 of file filtcomplex.h.

template<class CellT >
void tFilteredComplex< CellT >::swap ( tFilteredComplex< CellT > &  fc ) [inline]

Swaps the data with another filtered complex.

Definition at line 118 of file filtcomplex.h.


Member Data Documentation

template<class CellT>
chomp::homology::hashedset<CellT> tFilteredComplex< CellT >::cells [private]

The set of all the cells in the complex in the right order.

Definition at line 77 of file filtcomplex.h.


The documentation for this class was generated from the following file: