Namespaces | Functions

neighbor.h File Reference

This file contains various procedures relating to neighborhoods of cubes in full cubical sets. More...

#include "chomp/system/config.h"
#include "chomp/system/textfile.h"
#include "chomp/cubes/pointset.h"
#include "chomp/struct/hashsets.h"
#include "chomp/cubes/pointbas.h"
#include "chomp/cubes/cube.h"
#include "chomp/cubes/cell.h"
#include "chomp/homology/cubacycl.h"
#include "chomp/homology/tabulate.h"
#include "chomp/homology/known.h"
#include <iostream>
#include <fstream>
#include <cstdlib>

Go to the source code of this file.

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.


Functions

int_t chomp::homology::getmaxneighbors (int dim)
 Returns the maximal number of neighbors of a cube: 3^dim - 1.
template<class tCube >
int_t chomp::homology::neighbor2bit (const tCube &q, const tCube &neighbor)
 Returns the number of the neighbor bit for the given neighbor of 'q' or -1 if not a neighbor or the same cube as 'q'.
template<class tCube >
int_t chomp::homology::neighbor2bit (const tCube &q, const typename tCube::CellType &face)
 Returns the number of the neighbor bit for the neighbor which intersects the given cube at the face provided.
template<class tCube >
tCube chomp::homology::bit2neighbor (const tCube &q, int_t number, bool unconditional=false)
 Creates the neighbor of the given cube with the specified number.
template<class tCube , class tCubeSet1 , class tCubeSet2 >
int_t chomp::homology::getneighbors_scan (const tCube &q, BitField *bits, const tCubeSet1 &theset, tCubeSet2 *neighbors, int_t limit)
 Gets neighbors of the given cube from the given set and indicates them in the bit field provided.
template<class tCube , class tCubeSet1 , class tCubeSet2 >
int_t chomp::homology::getneighbors_generate (const tCube &q, BitField *bits, const tCubeSet1 &theset, tCubeSet2 *neighbors, int_t limit)
 Gets neighbors of the given cube from the given set and indicates them in the bit field provided.
template<class tCube , class tCubeSet1 , class tCubeSet2 >
int_t chomp::homology::getneighbors (const tCube &q, BitField *bits, const tCubeSet1 &theset, tCubeSet2 *neighbors, int_t limit)
 Gets neighbors of the given cube from the given set and indicates them in the bit field provided.
template<class tCube , class tCubeSet >
int_t chomp::homology::getneighbors (const tCube &q, BitField *bits, const tCubeSet &theset, int_t limit)
template<class tCube , class tCubeSet >
int_t chomp::homology::addneighbors (const tCube &q, const BitField &bits, tCubeSet &set, const tCubeSet &notthese)
 Adds neighbors listed in the given bit field to the set of cubes unless they are in the 'forbidden' set.
template<class tCube , class tCubeSet >
int_t chomp::homology::addneighbors (const tCube &q, const BitField &bits, tCubeSet &set, bool unconditional=false)
 Adds neighbors listed in the given bit field to the set of cubes.
template<class tCube , class tCell >
int_t chomp::homology::addneighbors (const tCube &q, const BitField &bits, gcomplex< tCell, integer > &c, bool unconditional=false)
 Adds intersections of neighbors listed in the given bit field with the given cube to the cubical complex.

Detailed Description

This file contains various procedures relating to neighborhoods of cubes in full cubical sets.

Author:
Pawel Pilarczyk

Definition in file neighbor.h.