15 void initialize(std::size_t ncentral_atoms, std::size_t pgsize)
34 const std::vector<double>& coordinates)
const;
int get_ncentral_atoms() const
Definition neighbor_list.h:28
PageAllocator allocator_
Definition neighbor_list.h:52
int ncentral_atoms_
Definition neighbor_list.h:49
void set_neighbors(int i, const std::vector< int > &neighbors)
Definition neighbor_list.h:38
std::vector< int > get_neighbors_sorted_by_distance(int central_atom, const std::vector< double > &coordinates) const
Return a distance-sorted copy of one atom's neighbors without changing the stored order.
Definition neighbor_list.cpp:6
void initialize(std::size_t ncentral_atoms, std::size_t pgsize)
Definition neighbor_list.h:15
void reset()
Definition neighbor_list.h:23
const int * get_firstneigh(int i) const
Definition neighbor_list.h:31
int * get_firstneigh(int i)
Definition neighbor_list.h:30
std::vector< int * > firstneigh_
Definition neighbor_list.h:51
friend class BinManager
Definition neighbor_list.h:54
const PageAllocator & get_allocator() const
Definition neighbor_list.h:36
PageAllocator & get_allocator()
Definition neighbor_list.h:35
std::vector< int > numneigh_
Definition neighbor_list.h:50
int get_numneigh(int i) const
Definition neighbor_list.h:29
Definition page_allocator.h:7
int checked_int_size(const std::size_t value, const char *context)
Definition neighbor_types.h:16