Classes | Functions

chaincon/filtcomplex.h File Reference

A filtered cell complex. More...

#include <istream>
#include <ostream>
#include "chomp/system/config.h"
#include "chomp/system/textfile.h"
#include "chomp/struct/hashsets.h"

Go to the source code of this file.

Classes

class  tFilteredComplex< CellT >
 A filtered complex. More...

Functions

template<class CellT >
void addBoundaries (tFilteredComplex< CellT > &K)
template<class CellT >
std::ostream & operator<< (std::ostream &out, const tFilteredComplex< CellT > &C)
 Writes a filtered cell complex to an output stream in the text format.
template<class CellT >
std::istream & operator>> (std::istream &in, tFilteredComplex< CellT > &K)
 Reads a filtered cell complex from an input stream.

Detailed Description

A filtered cell complex.

Definition in file filtcomplex.h.


Function Documentation

template<class CellT >
void addBoundaries ( tFilteredComplex< CellT > &  K ) [inline]

Definition at line 127 of file filtcomplex.h.

Referenced by computeHomology().

template<class CellT >
std::ostream& operator<< ( std::ostream &  out,
const tFilteredComplex< CellT > &  C 
)

Writes a filtered cell complex to an output stream in the text format.

Definition at line 151 of file filtcomplex.h.

template<class CellT >
std::istream& operator>> ( std::istream &  in,
tFilteredComplex< CellT > &  K 
)

Reads a filtered cell complex from an input stream.

The cells are supposed to be listed in the input stream in the reverse order, that is, each cell should be followed by its boundary cells, which is not verified in this procedure. Reading the cells is interrupted in case of the empty cell (which is added to the complex if the empty cell is in use) or when the end of the stream is encountered.

Definition at line 170 of file filtcomplex.h.