Loading...
Searching...
No Matches
SBSNeighborSearchPositionGrid Class Reference

This class is the base class of neighbor search algorithms.

Grid attributes

SBQuantity::squareLengthcutoffDistanceSquared
 
SBQuantity::inverseLengthinverseCutoffDistance
 

Particle attributes

SBIndexer< unsigned int > * indexIndexer
 The set of indices the neighbor search algorithm is applied to.
 
SBBuffer< SBVector< unsigned int > * > * neighborVectorBuffer
 The buffer containing the neighbor lists associated to each index.
 
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 atoms that are at a distance smaller than or equal to radius from the specified position.
 

Additional Inherited Members

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