SBSNeighborSearchPositionGrid Class Reference

This class is the base class of neighbor search algorithms.

Public Attributes

SBBuffer< SBVector< unsigned int > * > * neighborVectorBuffer
 The buffer containing the neighbor lists associated to each particle.
 
SBBuffer< SBPosition3 > * positionBuffer
 The buffer containing the positions.
 
SBHashMap< GridKey, GridCell *, GridKeyFunctor, GridKeyComparator > * grid
 
SBVector< GridKey > * gridKeyVector
 

Destructor

 SBSNeighborSearchPositionGrid (const SBVector< SBPosition3 > &positionVector, const SBQuantity::length &cutoffDistance)
 Constructs a neighbor search grid.
 
virtual ~SBSNeighborSearchPositionGrid ()
 Destroys the neighbor search grid.
 

Neighbor search

virtual bool hasNeighbors (const SBPosition3 &position, const SBQuantity::length &radius) const
 Returns true if there are neighbors within radius of position.
 
virtual void getNeighbors (SBVector< unsigned int > &neighborVector, const SBPosition3 &position, const SBQuantity::length &radius) const
 Returns all structural particles that are at a distance smaller than or equal to radius from the specified position.
 

Grid attributes

SBQuantity::squareLengthcutoffDistanceSquared
 
SBQuantity::inverseLengthinverseCutoffDistance
 

Particle attributes

SBIndexer< unsigned int > * particleIndexer
 The particle system the neighbor search algorithm is attached to.
 

Additional Inherited Members

- Public Member Functions inherited from SBCReferenceTarget
 SBCReferenceTarget ()
 
virtual ~SBCReferenceTarget ()
 
unsigned int getMemoryFootprint () const
 
void printReferencesToOwners () const
 
- Protected Member Functions inherited from SBCReferenceTarget
void removeAllReferenceOwners ()
 
 SBCReferenceTarget (SBCReferenceTargetData *dataPointer)
 
- Protected Attributes inherited from SBCReferenceTarget
SBCReferenceTargetData * dataPointer