|
| | SortedCellView (ParticleCellType &cell, const std::array< double, 3 > &r) |
| | Constructs a FullSortedParticleCell.
|
| |
| CellType | getParticleCellTypeAsEnum () override |
| | Get the ParticleCell type as an ParticleCellTypeEnum.
|
| |
| void | addParticle (const ParticleType &p) override |
| | Adds a Particle to the cell.
|
| |
| CellIterator< typename ParticleCellType::StorageType, true > | begin () |
| | Get an iterator to the start of a ParticleCell.
|
| |
| CellIterator< typename ParticleCellType::StorageType, false > | begin () const |
| | Get an iterator to the start of a ParticleCell.
|
| |
| CellIterator< typename ParticleCellType::StorageType, true > | end () |
| | Get an iterator to the end of a ParticleCell.
|
| |
| CellIterator< typename ParticleCellType::StorageType, false > | end () const |
| | Get an iterator to the end of a ParticleCell.
|
| |
| size_t | size () const override |
| | Get the number of all particles stored in this cell (owned, halo and dummy).
|
| |
| size_t | getNumberOfParticles (IteratorBehavior behavior) const override |
| | Get the number of particles with respect to the specified IteratorBehavior.
|
| |
| bool | isEmpty () const override |
| | Check if the cell is empty.
|
| |
| void | clear () override |
| | Deletes all particles in this cell.
|
| |
| void | deleteDummyParticles () override |
| | Deletes all dummy particles in this cell.
|
| |
| void | deleteByIndex (size_t index) override |
| | Deletes the index-th particle.
|
| |
| void | setCellLength (std::array< double, 3 > &cellLength) override |
| | Set the side lengths of this cell.
|
| |
| std::array< double, 3 > | getCellLength () const override |
| | Get the side lengths of this cell.
|
| |
| ParticleType & | at (size_t index) |
| | Returns the particle at position index.
|
| |
| const ParticleType & | at (size_t index) const |
| | Returns the const particle at position index.
|
| |
Public Member Functions inherited from autopas::ParticleCell< ParticleCellType::ParticleType > |
|
virtual | ~ParticleCell ()=default |
| | Default destructor.
|
| |
|
| ParticleCell ()=default |
| | Default default constructor.
|
| |
| | ParticleCell (ParticleCell &&other) noexcept=default |
| | Default move constructor.
|
| |
| | ParticleCell (const ParticleCell &other) |
| | Copy constructor that creates a new default constructed lock for the new cell.
|
| |
| virtual void | addParticle (const ParticleCellType::ParticleType &p)=0 |
| | Adds a Particle to the cell.
|
| |
| virtual size_t | size () const=0 |
| | Get the number of all particles stored in this cell (owned, halo and dummy).
|
| |
| virtual size_t | getNumberOfParticles (IteratorBehavior behavior=IteratorBehavior::owned) const=0 |
| | Get the number of particles with respect to the specified IteratorBehavior.
|
| |
| virtual bool | isEmpty () const=0 |
| | Check if the cell is empty.
|
| |
| virtual void | clear ()=0 |
| | Deletes all particles in this cell.
|
| |
| virtual void | deleteDummyParticles ()=0 |
| | Deletes all dummy particles in this cell.
|
| |
| virtual CellType | getParticleCellTypeAsEnum ()=0 |
| | Get the ParticleCell type as an ParticleCellTypeEnum.
|
| |
| virtual void | deleteByIndex (size_t index)=0 |
| | Deletes the index-th particle.
|
| |
| virtual void | setCellLength (std::array< double, 3 > &cellLength)=0 |
| | Set the side lengths of this cell.
|
| |
| virtual std::array< double, 3 > | getCellLength () const=0 |
| | Get the side lengths of this cell.
|
| |
| OwnershipState | getPossibleParticleOwnerships () const |
| | Get the type of particles contained in this cell.
|
| |
| void | setPossibleParticleOwnerships (OwnershipState state) |
| | Set the type of particles contained in this cell.
|
| |
| AutoPasLock & | getCellLock () const |
| | Get a reference to the lock object for exclusive access to this cell.
|
| |
template<class ParticleCellType>
class autopas::SortedCellView< ParticleCellType >
This class defines a sorted view on a given ParticleCell.
Particles are sorted along the normalized vector r.
Projection of particles in 2D
The projected position of a particle as well as a pointer to the underlying particle are stored in a vector, which is sorted by the projected positions.
- Note
- Insertion, deletion and change of position of particles invalidates the view.
- Template Parameters
-