CpuNeighborList.h 760 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef OPENMM_CPU_NEIGHBORLIST_H_
#define OPENMM_CPU_NEIGHBORLIST_H_

#include "windowsExportCpu.h"
#include <set>
#include <utility>
#include <vector>

namespace OpenMM {
    
class OPENMM_EXPORT_CPU CpuNeighborList {
public:
    void computeNeighborList(int nAtoms,
                             const std::vector<float>& atomLocations, 
                             const std::vector<std::set<int> >& exclusions,
                             const float* periodicBoxSize,
                             bool usePeriodic,
18
                             float maxDistance);
19
20
21
22
23
24
25
26
    const std::vector<std::pair<int, int> >& getNeighbors();
private:
    std::vector<std::pair<int, int> > neighbors;
};

} // namespace OpenMM

#endif // OPENMM_REFERENCE_NEIGHBORLIST_H_