Changeset ac6d04 for src/base/linked_cell_list.hpp
- Timestamp:
- Apr 10, 2012, 1:55:49 PM (14 years ago)
- Children:
- a40eea
- Parents:
- d24c2f
- File:
-
- 1 edited
-
src/base/linked_cell_list.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/base/linked_cell_list.hpp
rd24c2f rac6d04 24 24 { 25 25 26 class LinkedCellList : public IsGrid< std::list<Particle > >26 class LinkedCellList : public IsGrid< std::list<Particle*> > 27 27 { 28 28 public: 29 typedef std::list<Particle >::iterator iterator;30 typedef std::list<Particle >::const_iterator const_iterator;31 typedef std::list<Particle >::reverse_iterator reverse_iterator;32 typedef std::list<Particle >::const_reverse_iterator const_reverse_iterator;29 typedef std::list<Particle*>::iterator iterator; 30 typedef std::list<Particle*>::const_iterator const_iterator; 31 typedef std::list<Particle*>::reverse_iterator reverse_iterator; 32 typedef std::list<Particle*>::const_reverse_iterator const_reverse_iterator; 33 33 34 LinkedCellList( conststd::list<Particle>& particles,34 LinkedCellList(std::list<Particle>& particles, 35 35 const int& near_field_cells, const Grid& grid); 36 36 37 void AddParticle(const Particle& particle);37 ~LinkedCellList(); 38 38 39 void AddParticleToComplete(const vmg_float* pos, const vmg_float& charge, 40 const vmg_float& pot, const vmg_float* force, 41 const int& rank, const int& index); 39 void AddParticle(Particle* particle); 40 void AddParticleToHalo(const vmg_float* x, const vmg_float& q); 42 41 43 void AddParticleToComplete(const Vector& pos, const vmg_float& charge, 44 const vmg_float& pot, const Vector& force, 45 const int& rank, const int& index); 46 47 void AddParticleToComplete(const vmg_float* pos, const vmg_float& charge); 48 49 std::list<Particle>& NotMyParticles() {return not_my_particles;} 50 const std::list<Particle>& NotMyParticles() const {return not_my_particles;} 42 void ClearHalo(); 51 43 52 44 const Index& NearFieldCells() const {return near_field_cells_;} 53 54 45 private: 55 std::list<Particle> not_my_particles;56 46 Index near_field_cells_; 57 47 };
Note:
See TracChangeset
for help on using the changeset viewer.
