|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
A single bin in the 3D binning grid for neighbor search. More...
#include <bin_manager.h>
Public Member Functions | |
| Bin ()=default | |
| Default constructor. | |
| ~Bin ()=default | |
| Default destructor. | |
| const std::vector< ModuleNeighList::LocalAtomIndex > & | get_atom_indices () const |
| Get the atom indices stored in this bin. | |
| void | set_id (int ix, int iy, int iz) |
| Set the grid indices for this bin. | |
| void | clear_atoms () |
| Clear all atoms from this bin. | |
| void | add_atom_index (ModuleNeighList::LocalAtomIndex atom_index) |
| Add an atom index to this bin. | |
Private Attributes | |
| int | id_x_ = 0 |
| X index in the 3D bin grid. | |
| int | id_y_ = 0 |
| Y index in the 3D bin grid. | |
| int | id_z_ = 0 |
| Z index in the 3D bin grid. | |
| std::vector< ModuleNeighList::LocalAtomIndex > | atom_indices_ |
| Indices into the atom vector passed to BinManager::do_binning(). | |
A single bin in the 3D binning grid for neighbor search.
Each bin stores indices of atoms that fall within its spatial region, along with its position indices in the 3D grid.
|
default |
Default constructor.
|
default |
Default destructor.
| void Bin::add_atom_index | ( | ModuleNeighList::LocalAtomIndex | atom_index | ) |
Add an atom index to this bin.
| atom_index | Index of the atom in the vector passed to BinManager::do_binning(). |
| void Bin::clear_atoms | ( | ) |
Clear all atoms from this bin.
| const std::vector< ModuleNeighList::LocalAtomIndex > & Bin::get_atom_indices | ( | ) | const |
Get the atom indices stored in this bin.
| void Bin::set_id | ( | int | ix, |
| int | iy, | ||
| int | iz ) |
Set the grid indices for this bin.
| ix | X index. |
| iy | Y index. |
| iz | Z index. |
|
private |
Indices into the atom vector passed to BinManager::do_binning().
|
private |
X index in the 3D bin grid.
|
private |
Y index in the 3D bin grid.
|
private |
Z index in the 3D bin grid.