The Original CHomP Software
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
chomp::homengin::PPengine Class Reference

The homology engine that uses lists of cubes (Pawel Pilarczyk). More...

#include <engines.h>

Inheritance diagram for chomp::homengin::PPengine:
chomp::homengin::engine

Public Member Functions

int speed () const
 The speed of the engine: The higher the number, the better. More...
 
bool dimsupported (int dim) const
 Is this dimension supported by this engine? More...
 
int memory (const cubfile &X) const
 Rough memory usage estimate for a single set of cubes. More...
 
bool relative () const
 Does this engine compute relative homology? More...
 
bool elementary () const
 Is this engine capable of processing elementary cubes? More...
 
bool spacewrapping () const
 Does this engine support space wrapping? More...
 
void homology (const cubfile &x, algstruct< chomp::homology::integer > &h) const
 Compute the homology of the given set of cubes. More...
 
void homology (const cubfile &x, const cubfile &y, algstruct< chomp::homology::integer > &h) const
 Compute the relative homology of the given pair of sets of cubes. More...
 
const char * name () const
 The name of the engine to be used in the command line. More...
 
std::ostream & describe (std::ostream &out) const
 Describes this particular engine. More...
 
virtual int speed () const
 The speed of the engine: The higher the number, the better. More...
 
virtual bool dimsupported (int dim) const
 Is this dimension supported by this engine? More...
 
virtual int memory (const cubfile &X) const
 Rough memory usage estimate for a single set of cubes. More...
 
virtual bool relative () const
 Does this engine compute relative homology? More...
 
virtual bool elementary () const
 Is this engine capable of processing elementary cubes? More...
 
virtual bool spacewrapping () const
 Does this engine support space wrapping? More...
 
virtual void homology (const cubfile &x, algstruct< chomp::homology::integer > &h) const
 Compute the homology of the given set of cubes. More...
 
virtual void homology (const cubfile &x, const cubfile &y, algstruct< chomp::homology::integer > &h) const
 Compute the relative homology of the given pair of sets of cubes. More...
 
virtual const char * name () const
 The name of the engine to be used in the command line. More...
 
virtual std::ostream & describe (std::ostream &out) const
 Describes this particular engine. More...
 

Static Public Attributes

static PPengine eng
 One instance of this engine. More...
 
- Static Public Attributes inherited from chomp::homengin::engine
static enginelist engines
 A list of all the engines that have been defined so far. More...
 

Protected Member Functions

 PPengine ()
 The default constructor. More...
 
 ~PPengine ()
 The destructor. More...
 
- Protected Member Functions inherited from chomp::homengin::engine
 engine ()
 The default constructor: Add the engine to the list. More...
 
virtual ~engine ()
 The destructor: Remove the engine from the list. More...
 

Additional Inherited Members

- Public Types inherited from chomp::homengin::engine
typedef std::vector< const engine * > enginelist
 The type of a list of engines. More...
 
- Static Public Member Functions inherited from chomp::homengin::engine
static std::ostream & showlist (std::ostream &out, const engine::enginelist &elist=engine::engines)
 Shows a list of available homology engines with descriptions. More...
 
static const enginefind (const cubfile *X, const cubfile *Y, const engine::enginelist &elist=engine::engines)
 Finds the most appropriate homology engine. More...
 
static const enginefind (const cubfile *X, const engine::enginelist &elist=engine::engines)
 Finds the most appropriate homology engine for just one set. More...
 
static const enginefind (const char *name, const engine::enginelist &elist=engine::engines)
 Finds a homology engine with the given name. More...
 

Detailed Description

The homology engine that uses lists of cubes (Pawel Pilarczyk).

Definition at line 201 of file engines.h.

Constructor & Destructor Documentation

◆ PPengine()

chomp::homengin::PPengine::PPengine ( )
inlineprotected

The default constructor.

Definition at line 205 of file engines.h.

206 {
207 return;
208 }

◆ ~PPengine()

chomp::homengin::PPengine::~PPengine ( )
inlineprotected

The destructor.

Definition at line 211 of file engines.h.

212 {
213 return;
214 }

Member Function Documentation

◆ describe()

std::ostream & chomp::homengin::PPengine::describe ( std::ostream &  out) const
virtual

Describes this particular engine.

Reimplemented from chomp::homengin::engine.

◆ dimsupported()

bool chomp::homengin::PPengine::dimsupported ( int  dim) const
inlinevirtual

Is this dimension supported by this engine?

Reimplemented from chomp::homengin::engine.

Definition at line 224 of file engines.h.

225 {
226 return (dim > 0) && (dim <= chomp::homology::Cube::MaxDim);
227 }
static const int MaxDim
The maximal dimension of a cube.
Definition: cubebase.h:81

References chomp::homology::tCubeBase< coordtype >::MaxDim.

◆ elementary()

bool chomp::homengin::PPengine::elementary ( ) const
inlinevirtual

Is this engine capable of processing elementary cubes?

Reimplemented from chomp::homengin::engine.

Definition at line 240 of file engines.h.

241 {
242 return true;
243 }

◆ homology() [1/2]

void chomp::homengin::PPengine::homology ( const cubfile x,
algstruct< chomp::homology::integer > &  h 
) const
virtual

Compute the homology of the given set of cubes.

Reimplemented from chomp::homengin::engine.

◆ homology() [2/2]

void chomp::homengin::PPengine::homology ( const cubfile x,
const cubfile y,
algstruct< chomp::homology::integer > &  h 
) const
virtual

Compute the relative homology of the given pair of sets of cubes.

Reimplemented from chomp::homengin::engine.

◆ memory()

int chomp::homengin::PPengine::memory ( const cubfile X) const
virtual

Rough memory usage estimate for a single set of cubes.

Returns 0 if unknown, -1 if not enough memory.

Reimplemented from chomp::homengin::engine.

◆ name()

const char * chomp::homengin::PPengine::name ( ) const
inlinevirtual

The name of the engine to be used in the command line.

Reimplemented from chomp::homengin::engine.

Definition at line 260 of file engines.h.

261 {
262 return "PP";
263 }

◆ relative()

bool chomp::homengin::PPengine::relative ( ) const
inlinevirtual

Does this engine compute relative homology?

Reimplemented from chomp::homengin::engine.

Definition at line 234 of file engines.h.

235 {
236 return true;
237 }

◆ spacewrapping()

bool chomp::homengin::PPengine::spacewrapping ( ) const
inlinevirtual

Does this engine support space wrapping?

Reimplemented from chomp::homengin::engine.

Definition at line 246 of file engines.h.

247 {
248 return true;
249 }

◆ speed()

int chomp::homengin::PPengine::speed ( ) const
inlinevirtual

The speed of the engine: The higher the number, the better.

Reimplemented from chomp::homengin::engine.

Definition at line 218 of file engines.h.

219 {
220 return 100;
221 }

Member Data Documentation

◆ eng

PPengine chomp::homengin::PPengine::eng
static

One instance of this engine.

Definition at line 269 of file engines.h.


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