QMCPACK
NeighborLists Class Reference
+ Collaboration diagram for NeighborLists:

Public Member Functions

 NeighborLists (const ParticleSet &source)
 constructor More...
 
std::vector< int > & getNeighborList (int source)
 get the neighbor list of the source particle More...
 
const std::vector< int > & getNeighborList (int source) const
 

Protected Attributes

std::vector< std::vector< int > > NeighborIDs
 neighbor particle IDs of all the reference particles More...
 

Detailed Description

Definition at line 21 of file NeighborLists.h.

Constructor & Destructor Documentation

◆ NeighborLists()

NeighborLists ( const ParticleSet source)
inline

constructor

Definition at line 29 of file NeighborLists.h.

29 : NeighborIDs(source.getTotalNum()) {}
std::vector< std::vector< int > > NeighborIDs
neighbor particle IDs of all the reference particles
Definition: NeighborLists.h:25

Member Function Documentation

◆ getNeighborList() [1/2]

std::vector<int>& getNeighborList ( int  source)
inline

◆ getNeighborList() [2/2]

const std::vector<int>& getNeighborList ( int  source) const
inline

Definition at line 33 of file NeighborLists.h.

References NeighborLists::NeighborIDs.

33 { return NeighborIDs[source]; }
std::vector< std::vector< int > > NeighborIDs
neighbor particle IDs of all the reference particles
Definition: NeighborLists.h:25

Member Data Documentation

◆ NeighborIDs

std::vector<std::vector<int> > NeighborIDs
protected

neighbor particle IDs of all the reference particles

Definition at line 25 of file NeighborLists.h.

Referenced by NeighborLists::getNeighborList().


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