The MM_CR engine. More...
#include <engines.h>
Public Member Functions | |
int | speed () const |
The speed of the engine: The higher the number, the better. | |
bool | dimsupported (int dim) const |
Is this dimension supported by this engine? | |
void | homology (const cubfile &x, algstruct< chomp::homology::integer > &h) const |
Compute the homology of the given set of cubes. | |
const char * | name () const |
The name of the engine to be used in the command line. | |
std::ostream & | describe (std::ostream &out) const |
Describes this particular engine. | |
Static Public Attributes | |
static MM_CRengine | eng |
One instance of this engine. | |
Protected Member Functions | |
MM_CRengine () | |
The default constructor. | |
~MM_CRengine () | |
The destructor. |
The MM_CR engine.
Definition at line 482 of file engines.h.
chomp::homengin::MM_CRengine::MM_CRengine | ( | ) | [inline, protected] |
chomp::homengin::MM_CRengine::~MM_CRengine | ( | ) | [inline, protected] |
std::ostream& chomp::homengin::MM_CRengine::describe | ( | std::ostream & | out | ) | const [virtual] |
Describes this particular engine.
Implements chomp::homengin::MMengine.
bool chomp::homengin::MM_CRengine::dimsupported | ( | int | dim | ) | const [inline, virtual] |
Is this dimension supported by this engine?
Reimplemented from chomp::homengin::MMengine.
Definition at line 505 of file engines.h.
{
return ((dim == embeddingDim) || ((dim >= 2) && (dim <= 4)));
}
void chomp::homengin::MM_CRengine::homology | ( | const cubfile & | x, | |
algstruct< chomp::homology::integer > & | h | |||
) | const [virtual] |
Compute the homology of the given set of cubes.
Implements chomp::homengin::MMengine.
const char* chomp::homengin::MM_CRengine::name | ( | ) | const [inline, virtual] |
The name of the engine to be used in the command line.
Implements chomp::homengin::MMengine.
Definition at line 515 of file engines.h.
{ return "MM_CR"; }
int chomp::homengin::MM_CRengine::speed | ( | ) | const [inline, virtual] |
The speed of the engine: The higher the number, the better.
Implements chomp::homengin::MMengine.
Definition at line 499 of file engines.h.
{
return 5000;
}