The ChainCon Software (Release 0.03)
Classes | Functions
cellnames.h File Reference

A class for naming cells for nice text data output. More...

#include <ostream>
#include <string>
#include <sstream>
#include <algorithm>
#include "chomp/system/config.h"
#include "chomp/struct/multitab.h"
#include "chomp/struct/hashsets.h"
#include "chaincon/stringhash.h"
#include "chaincon/combchain.h"
#include "chaincon/chain.h"
#include "chaincon/combtensor.h"
#include "chaincon/tensor.h"
#include "chaincon/comblinmap.h"
#include "chaincon/linmap.h"

Go to the source code of this file.

Classes

class  tCellNames< CellT >
 A class whose instances can be used to generate names of cells with subsequent numbers, in each dimension separately. More...
 
class  tCellOwnNames< CellT >
 A class for providing the cells as their names. More...
 

Functions

template<class CellT , class NamesT >
NamesT::NameType cells2names (const CellT &in, NamesT &names)
 Returns the name of a cell according to the given naming object. More...
 
template<class CellT , class NamesT >
tCombChain< typename NamesT::NameType > cells2names (const tCombChain< CellT > &in, NamesT &names)
 Returns a combinatorial chain in which the cells have been replaced with their names, given by the provided naming object. More...
 
template<class CellT , class CoefT , class NamesT >
tChain< typename NamesT::NameType, CoefT > cells2names (const tChain< CellT, CoefT > &in, NamesT &names)
 Returns a chain in which the cells have been replaced with their names, given by the provided naming object. More...
 
template<class Cell1T , class Cell2T , class Names1T , class Names2T >
tCombTensor< typename Names1T::NameType, typename Names2T::NameType > cells2names (const tCombTensor< Cell1T, Cell2T > &in, Names1T &names1, Names2T &names2)
 Returns a combinatorial tensor in which the cells have been replaced with their names, given by the provided naming object. More...
 
template<class Cell1T , class Cell2T , class CoefT , class Names1T , class Names2T >
tTensor< typename Names1T::NameType, typename Names2T::NameType, CoefT > cells2names (const tTensor< Cell1T, Cell2T, CoefT > &in, Names1T &names1, Names2T &names2)
 Returns a tensor in which the cells have been replaced with their names, given by the provided naming object. More...
 
template<class CellDomT , class CellImgT , class NamesDomT , class NamesImgT >
tCombLinMap< typename NamesDomT::NameType, typename NamesImgT::NameType > cells2names (const tCombLinMap< CellDomT, CellImgT > &in, NamesDomT &names1, NamesImgT &names2)
 Returns a combinatorial linear map in which the cells have been replaced with their names, given by the provided naming object. More...
 
template<class CellDomT , class CellImgT , class CoefT , class NamesDomT , class NamesImgT >
tLinMap< typename NamesDomT::NameType, typename NamesImgT::NameType, CoefT > cells2names (const tLinMap< CellDomT, CellImgT, CoefT > &in, NamesDomT &names1, NamesImgT &names2)
 Returns a linear map in which the cells have been replaced with their names, given by the provided naming object. More...
 

Detailed Description

A class for naming cells for nice text data output.

Definition in file cellnames.h.

Function Documentation

◆ cells2names() [1/7]

template<class CellT , class NamesT >
NamesT::NameType cells2names ( const CellT &  in,
NamesT &  names 
)
inline

Returns the name of a cell according to the given naming object.

Definition at line 343 of file cellnames.h.

Referenced by cells2names(), computeAlgMinModel(), computeAlgTopModel(), computeAWdiagonal2d(), computeCohomRing(), computeSteenrodSquares(), and experiment().

◆ cells2names() [2/7]

template<class CellT , class NamesT >
tCombChain<typename NamesT::NameType> cells2names ( const tCombChain< CellT > &  in,
NamesT &  names 
)
inline

Returns a combinatorial chain in which the cells have been replaced with their names, given by the provided naming object.

Definition at line 352 of file cellnames.h.

References cells2names().

◆ cells2names() [3/7]

template<class CellT , class CoefT , class NamesT >
tChain<typename NamesT::NameType,CoefT> cells2names ( const tChain< CellT, CoefT > &  in,
NamesT &  names 
)
inline

Returns a chain in which the cells have been replaced with their names, given by the provided naming object.

Definition at line 365 of file cellnames.h.

◆ cells2names() [4/7]

template<class Cell1T , class Cell2T , class Names1T , class Names2T >
tCombTensor<typename Names1T::NameType,typename Names2T::NameType> cells2names ( const tCombTensor< Cell1T, Cell2T > &  in,
Names1T &  names1,
Names2T &  names2 
)
inline

Returns a combinatorial tensor in which the cells have been replaced with their names, given by the provided naming object.

Definition at line 378 of file cellnames.h.

◆ cells2names() [5/7]

template<class Cell1T , class Cell2T , class CoefT , class Names1T , class Names2T >
tTensor<typename Names1T::NameType,typename Names2T::NameType,CoefT> cells2names ( const tTensor< Cell1T, Cell2T, CoefT > &  in,
Names1T &  names1,
Names2T &  names2 
)
inline

Returns a tensor in which the cells have been replaced with their names, given by the provided naming object.

Definition at line 394 of file cellnames.h.

◆ cells2names() [6/7]

template<class CellDomT , class CellImgT , class NamesDomT , class NamesImgT >
tCombLinMap<typename NamesDomT::NameType,typename NamesImgT::NameType> cells2names ( const tCombLinMap< CellDomT, CellImgT > &  in,
NamesDomT &  names1,
NamesImgT &  names2 
)
inline

Returns a combinatorial linear map in which the cells have been replaced with their names, given by the provided naming object.

Definition at line 412 of file cellnames.h.

References cells2names().

◆ cells2names() [7/7]

template<class CellDomT , class CellImgT , class CoefT , class NamesDomT , class NamesImgT >
tLinMap<typename NamesDomT::NameType,typename NamesImgT::NameType, CoefT> cells2names ( const tLinMap< CellDomT, CellImgT, CoefT > &  in,
NamesDomT &  names1,
NamesImgT &  names2 
)
inline

Returns a linear map in which the cells have been replaced with their names, given by the provided naming object.

Definition at line 428 of file cellnames.h.

References cells2names().