politopix  4.1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RealNeighbours Class Reference

Class dedicated to degeneration processing when looking for neighbors. More...

Collaboration diagram for RealNeighbours:
Collaboration graph

Public Member Functions

 RealNeighbours ()
 
bool addNeighbour (const std::vector< HalfSpace_Rn * > &commonFacets, const boost::shared_ptr< Generator_Rn > &gen, unsigned int number=0)
 Tell whether a pseudo neighbor is a genuine one comparing set of half-spaces. More...
 
void begin ()
 Iterator function. More...
 
void next ()
 Iterator function. More...
 
bool end ()
 Iterator function. More...
 
unsigned int currentGeneratorNumber ()
 Iterator function. More...
 
boost::shared_ptr< Generator_RncurrentNeighbour ()
 Iterator function. More...
 
void dump (std::ostream &ofs)
 Display the content on the stream passed as an argument. More...
 

Protected Attributes

unsigned int _iterator
 A runner to iterate through the list of genuine neighbors. More...
 
std::vector< unsigned int > _pseudoNeighboursNumber
 The generator numbers in a global list. More...
 
std::vector< boost::shared_ptr
< Generator_Rn > > 
_pseudoNeighbours
 The generator smart pointer. More...
 
std::vector< std::vector
< HalfSpace_Rn * > > 
_HSPerPseudoNeighbours
 For each generator, store all raw pointers on their corresponding half-spaces. More...
 

Detailed Description

Class dedicated to degeneration processing when looking for neighbors.

Definition at line 36 of file Polytope_Rn.cpp.

Constructor & Destructor Documentation

RealNeighbours::RealNeighbours ( )
inline

Definition at line 39 of file Polytope_Rn.cpp.

Member Function Documentation

bool RealNeighbours::addNeighbour ( const std::vector< HalfSpace_Rn * > &  commonFacets,
const boost::shared_ptr< Generator_Rn > &  gen,
unsigned int  number = 0 
)
inline

Tell whether a pseudo neighbor is a genuine one comparing set of half-spaces.

Parameters
commonFacetsthe set of common half-spaces pointers between this and gen
genthe other generator candidate to be a genuine neighbor of this
numberthe other generator number, if provided
Returns
true if SO FAR none match has been found.

Definition at line 46 of file Polytope_Rn.cpp.

Here is the caller graph for this function:

void RealNeighbours::begin ( )
inline

Iterator function.

Definition at line 79 of file Polytope_Rn.cpp.

Here is the caller graph for this function:

unsigned int RealNeighbours::currentGeneratorNumber ( )
inline

Iterator function.

Definition at line 88 of file Polytope_Rn.cpp.

boost::shared_ptr<Generator_Rn> RealNeighbours::currentNeighbour ( )
inline

Iterator function.

Definition at line 91 of file Polytope_Rn.cpp.

Here is the caller graph for this function:

void RealNeighbours::dump ( std::ostream &  ofs)
inline

Display the content on the stream passed as an argument.

Definition at line 94 of file Polytope_Rn.cpp.

bool RealNeighbours::end ( )
inline

Iterator function.

Definition at line 85 of file Polytope_Rn.cpp.

Here is the caller graph for this function:

void RealNeighbours::next ( )
inline

Iterator function.

Definition at line 82 of file Polytope_Rn.cpp.

Here is the caller graph for this function:

Member Data Documentation

std::vector< std::vector< HalfSpace_Rn* > > RealNeighbours::_HSPerPseudoNeighbours
protected

For each generator, store all raw pointers on their corresponding half-spaces.

Definition at line 111 of file Polytope_Rn.cpp.

unsigned int RealNeighbours::_iterator
protected

A runner to iterate through the list of genuine neighbors.

Definition at line 105 of file Polytope_Rn.cpp.

std::vector< boost::shared_ptr<Generator_Rn> > RealNeighbours::_pseudoNeighbours
protected

The generator smart pointer.

Definition at line 109 of file Polytope_Rn.cpp.

std::vector< unsigned int > RealNeighbours::_pseudoNeighboursNumber
protected

The generator numbers in a global list.

Definition at line 107 of file Polytope_Rn.cpp.


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