CAPD RedHom Library
FreeModule< generatorType, matrixType, intType > Class Template Reference

#include <capd/homAlgebra/FreeModule.h>

Public Types

typedef matrixType MatrixType
 
typedef intType IntType
 
typedef MatrixType::ColumnVectorType ColumnVectorType
 
typedef MatrixType::ScalarType ScalarType
 
typedef generatorType GeneratorType
 
typedef std::map< generatorType, int >::iterator iterator
 
typedef std::map< generatorType, int >::const_iterator const_iterator
 

Public Member Functions

 FreeModule ()
 
 FreeModule (std::map< generatorType, int > &A_generatorIndex)
 
int index (const generatorType A_generator) const
 
bool findIndex (const generatorType A_generator, int &A_index) const
 
template<typename P_Chain >
void coefVector (const P_Chain &A_chain, ColumnVectorType &A_coefVector) const
 
int numberOfGenerators () const
 
const_iterator begin () const
 
const_iterator end () const
 
const generatorType & operator[] (int i) const
 

Friends

void swap (FreeModule &A_fm1, FreeModule &A_fm2)
 
std::ostream & operator<< (std::ostream &out, const FreeModule &A_freeModule)
 

Member Typedef Documentation

template<typename generatorType, typename matrixType, typename intType = int>
typedef MatrixType::ColumnVectorType FreeModule< generatorType, matrixType, intType >::ColumnVectorType
template<typename generatorType, typename matrixType, typename intType = int>
typedef std::map<generatorType, int>::const_iterator FreeModule< generatorType, matrixType, intType >::const_iterator
template<typename generatorType, typename matrixType, typename intType = int>
typedef generatorType FreeModule< generatorType, matrixType, intType >::GeneratorType
template<typename generatorType, typename matrixType, typename intType = int>
typedef intType FreeModule< generatorType, matrixType, intType >::IntType
template<typename generatorType, typename matrixType, typename intType = int>
typedef std::map<generatorType, int>::iterator FreeModule< generatorType, matrixType, intType >::iterator
template<typename generatorType, typename matrixType, typename intType = int>
typedef matrixType FreeModule< generatorType, matrixType, intType >::MatrixType
template<typename generatorType, typename matrixType, typename intType = int>
typedef MatrixType::ScalarType FreeModule< generatorType, matrixType, intType >::ScalarType

Constructor & Destructor Documentation

template<typename generatorType, typename matrixType, typename intType = int>
FreeModule< generatorType, matrixType, intType >::FreeModule ( )
inline
template<typename generatorType, typename matrixType, typename intType = int>
FreeModule< generatorType, matrixType, intType >::FreeModule ( std::map< generatorType, int > &  A_generatorIndex)
inline

Member Function Documentation

template<typename generatorType, typename matrixType, typename intType = int>
const_iterator FreeModule< generatorType, matrixType, intType >::begin ( ) const
inline
template<typename generatorType, typename matrixType, typename intType = int>
template<typename P_Chain >
void FreeModule< generatorType, matrixType, intType >::coefVector ( const P_Chain &  A_chain,
ColumnVectorType A_coefVector 
) const
inline
template<typename generatorType, typename matrixType, typename intType = int>
const_iterator FreeModule< generatorType, matrixType, intType >::end ( ) const
inline
template<typename generatorType, typename matrixType, typename intType = int>
bool FreeModule< generatorType, matrixType, intType >::findIndex ( const generatorType  A_generator,
int &  A_index 
) const
inline
template<typename generatorType, typename matrixType, typename intType = int>
int FreeModule< generatorType, matrixType, intType >::index ( const generatorType  A_generator) const
inline
template<typename generatorType, typename matrixType, typename intType = int>
int FreeModule< generatorType, matrixType, intType >::numberOfGenerators ( ) const
inline
template<typename generatorType, typename matrixType, typename intType = int>
const generatorType& FreeModule< generatorType, matrixType, intType >::operator[] ( int  i) const
inline

Friends And Related Function Documentation

template<typename generatorType, typename matrixType, typename intType = int>
std::ostream& operator<< ( std::ostream &  out,
const FreeModule< generatorType, matrixType, intType > &  A_freeModule 
)
friend
template<typename generatorType, typename matrixType, typename intType = int>
void swap ( FreeModule< generatorType, matrixType, intType > &  A_fm1,
FreeModule< generatorType, matrixType, intType > &  A_fm2 
)
friend