Public Types | Public Member Functions | Private Attributes

tCombLinMap< CellDomT, CellImgT > Class Template Reference

A combinatorial linear map. More...

#include <comblinmap.h>

List of all members.

Public Types

typedef CellDomT CellDomType
 The type of cells in the domain of the combinatorial linear map.
typedef CellImgT CellImgType
 The type of cells in the images of the combinatorial linear map.

Public Member Functions

 tCombLinMap ()
 The default constructor.
void add (const CellDomT &c, const CellImgT &d)
 Adds a cell to the image of the given cell.
void add (const CellDomT &c, const tCombChain< CellImgT > &ch)
 Adds a chain to the image of the given cell.
void add (const tCombLinMap< CellDomT, CellImgT > &f)
 Adds another map to the given map.
void removenum (int_t n)
 Removes the given cell from the domain of the map.
void remove (const CellDomT &c)
 Removes the given cell from the domain of the map.
const tCombChain< CellImgT > & operator() (int_t n) const
 Returns the image of the given cell.
tCombChain< CellImgT > operator() (const CellDomT &c) const
 Returns the image of the given cell.
tCombChain< CellImgT > operator() (const tCombChain< CellDomT > &ch) const
 Computes the image of the given chain.
tCombTensor< CellImgT > operator() (const tCombTensor< CellDomT > &ch) const
 Computes the image of the given tensor.
int_t size () const
 Returns the number of elements in the domain of the combinatorial map.
const CellDomT & operator[] (int_t n) const
 Returns the n-th element of the domain of the combinatorial map.
tCombChain< CellImgT > & getImage (int_t n)
 Returns the image of the given cell for editing.
tCombChain< CellImgT > & getImage (const CellDomT &c)
 Returns the image of the given cell for editing.
bool operator== (const tCombLinMap< CellDomT, CellImgT > &f) const
 Verifies if the two combinatorial linear map are the same.
void swap (tCombLinMap< CellDomT, CellImgT > &f)
 Swaps the data with another combinatorial linear map.

Private Attributes

chomp::homology::hashedset
< CellDomT > 
domain
 The domain of the map.
chomp::homology::multitable
< tCombChain< CellImgT > > 
images
 The chains in the images of each domain element.

Detailed Description

template<class CellDomT, class CellImgT>
class tCombLinMap< CellDomT, CellImgT >

A combinatorial linear map.

This is in fact a finite set of cells mapped to a chain each. It corresponds to a linear map on the vector space generated by the cells over the coefficients field F_2 (a.k.a. Z_2).

Definition at line 55 of file comblinmap.h.


Member Typedef Documentation

template<class CellDomT, class CellImgT>
typedef CellDomT tCombLinMap< CellDomT, CellImgT >::CellDomType

The type of cells in the domain of the combinatorial linear map.

Definition at line 59 of file comblinmap.h.

template<class CellDomT, class CellImgT>
typedef CellImgT tCombLinMap< CellDomT, CellImgT >::CellImgType

The type of cells in the images of the combinatorial linear map.

Definition at line 62 of file comblinmap.h.


Constructor & Destructor Documentation

template<class CellDomT , class CellImgT >
tCombLinMap< CellDomT, CellImgT >::tCombLinMap (  ) [inline]

The default constructor.

Definition at line 130 of file comblinmap.h.


Member Function Documentation

template<class CellDomT , class CellImgT >
void tCombLinMap< CellDomT, CellImgT >::add ( const CellDomT &  c,
const CellImgT &  d 
) [inline]

Adds a cell to the image of the given cell.

Definition at line 138 of file comblinmap.h.

template<class CellDomT , class CellImgT >
void tCombLinMap< CellDomT, CellImgT >::add ( const CellDomT &  c,
const tCombChain< CellImgT > &  ch 
) [inline]

Adds a chain to the image of the given cell.

Definition at line 152 of file comblinmap.h.

template<class CellDomT , class CellImgT >
void tCombLinMap< CellDomT, CellImgT >::add ( const tCombLinMap< CellDomT, CellImgT > &  f ) [inline]

Adds another map to the given map.

Definition at line 166 of file comblinmap.h.

template<class CellDomT , class CellImgT >
tCombChain< CellImgT > & tCombLinMap< CellDomT, CellImgT >::getImage ( int_t  n ) [inline]

Returns the image of the given cell for editing.

Definition at line 262 of file comblinmap.h.

template<class CellDomT , class CellImgT >
tCombChain< CellImgT > & tCombLinMap< CellDomT, CellImgT >::getImage ( const CellDomT &  c ) [inline]

Returns the image of the given cell for editing.

Definition at line 269 of file comblinmap.h.

template<class CellDomT , class CellImgT >
tCombChain< CellImgT > tCombLinMap< CellDomT, CellImgT >::operator() ( const tCombChain< CellDomT > &  ch ) const [inline]

Computes the image of the given chain.

Definition at line 218 of file comblinmap.h.

template<class CellDomT , class CellImgT >
tCombTensor< CellImgT > tCombLinMap< CellDomT, CellImgT >::operator() ( const tCombTensor< CellDomT > &  ch ) const [inline]

Computes the image of the given tensor.

Definition at line 233 of file comblinmap.h.

template<class CellDomT , class CellImgT >
const tCombChain< CellImgT > & tCombLinMap< CellDomT, CellImgT >::operator() ( int_t  n ) const [inline]

Returns the image of the given cell.

Definition at line 200 of file comblinmap.h.

template<class CellDomT , class CellImgT >
tCombChain< CellImgT > tCombLinMap< CellDomT, CellImgT >::operator() ( const CellDomT &  c ) const [inline]

Returns the image of the given cell.

Definition at line 207 of file comblinmap.h.

template<class CellDomT , class CellImgT >
bool tCombLinMap< CellDomT, CellImgT >::operator== ( const tCombLinMap< CellDomT, CellImgT > &  f ) const [inline]

Verifies if the two combinatorial linear map are the same.

Definition at line 282 of file comblinmap.h.

template<class CellDomT , class CellImgT >
const CellDomT & tCombLinMap< CellDomT, CellImgT >::operator[] ( int_t  n ) const [inline]

Returns the n-th element of the domain of the combinatorial map.

Definition at line 255 of file comblinmap.h.

template<class CellDomT , class CellImgT >
void tCombLinMap< CellDomT, CellImgT >::remove ( const CellDomT &  c ) [inline]

Removes the given cell from the domain of the map.

Note that this may change the order of cells in the domain.

Definition at line 190 of file comblinmap.h.

template<class CellDomT , class CellImgT >
void tCombLinMap< CellDomT, CellImgT >::removenum ( int_t  n ) [inline]

Removes the given cell from the domain of the map.

Note that this may change the order of cells in the domain.

Definition at line 179 of file comblinmap.h.

template<class CellDomT , class CellImgT >
int_t tCombLinMap< CellDomT, CellImgT >::size (  ) const [inline]

Returns the number of elements in the domain of the combinatorial map.

Note that the images of some of the elements might be zero.

Definition at line 248 of file comblinmap.h.

template<class CellDomT , class CellImgT >
void tCombLinMap< CellDomT, CellImgT >::swap ( tCombLinMap< CellDomT, CellImgT > &  f ) [inline]

Swaps the data with another combinatorial linear map.

Definition at line 315 of file comblinmap.h.


Member Data Documentation

template<class CellDomT, class CellImgT>
chomp::homology::hashedset<CellDomT> tCombLinMap< CellDomT, CellImgT >::domain [private]

The domain of the map.

Definition at line 120 of file comblinmap.h.

template<class CellDomT, class CellImgT>
chomp::homology::multitable<tCombChain<CellImgT> > tCombLinMap< CellDomT, CellImgT >::images [private]

The chains in the images of each domain element.

Definition at line 123 of file comblinmap.h.


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