The Original CHomP Software
Classes | Namespaces | Typedefs | Functions
simplex.h File Reference

This file contains the definition of a class which represents a simplex. More...

#include "chomp/system/config.h"
#include "chomp/system/textfile.h"
#include "chomp/struct/integer.h"
#include "chomp/homology/gcomplex.h"
#include <iostream>
#include <fstream>
#include <cstdlib>

Go to the source code of this file.

Classes

class  chomp::homology::Simplex
 This class defines a simplex as a geometric cell that can be used as a member of a geometric complex. More...
 

Namespaces

namespace  chomp
 This namespace contains the entire CHomP library interface.
 
namespace  chomp::homology
 This namespace contains the core of the homology computation procedures and related classes and templates contained in the CHomP C++ library.
 

Typedefs

typedef Simplex chomp::homology::simplex
 A lower-case name for a simplex [deprecated]. More...
 
typedef gcomplex< simplex, integer > chomp::homology::simplicialcomplex
 A lower-case name for a simplicial complex [deprecated]. More...
 
typedef hashedset< simplex > chomp::homology::simplices
 An alternative name for a set of simplices [deprecated]. More...
 

Functions

int_t chomp::homology::hashkey1 (const Simplex &s)
 
int_t chomp::homology::hashkey2 (const Simplex &s)
 
int chomp::homology::operator== (const Simplex &s, const Simplex &t)
 The operator == that compares whether the two simplices are the same, that is, have the same vertices in the same order. More...
 
int chomp::homology::operator!= (const Simplex &s, const Simplex &t)
 The operator != verifies if the two simplices are different. More...
 
int chomp::homology::boundarylength (const Simplex &s)
 Returns the length of the boundary of a simplex. More...
 
int chomp::homology::boundarycoef (const Simplex &, int i)
 Returns the i-th coefficient in the boundary of a simplex. More...
 
Simplex chomp::homology::boundarycell (const Simplex &s, int i)
 Returns the i-th boundary face of a simplex. More...
 
Simplex chomp::homology::boundarycell (const Simplex &s, int i, bool)
 Returns the i-th boundary face of a simplex. More...
 
std::ostream & chomp::homology::operator<< (std::ostream &out, const Simplex &s)
 Writes a simplex to the output stream in the text format. More...
 
std::istream & chomp::homology::operator>> (std::istream &in, Simplex &s)
 Reads a simplex from an imput stream from a text format. More...
 

Detailed Description

This file contains the definition of a class which represents a simplex.

The definition complies with the requirements of the homology software so that simplices can be used as cells in a geometric complex, and also in algorithms for homology computation.

Author
Pawel Pilarczyk

Definition in file simplex.h.