|
ESyS-Particle
2.3.4
|
#include <ParticleCollection.h>

Classes | |
| class | ParticleConstIterator |
| class | ParticleIterator |
Public Types | |
| typedef TmplParticle | Particle |
| typedef boost::object_pool< Particle > | ParticlePool |
| typedef boost::shared_ptr< ParticlePool > | ParticlePoolPtr |
Public Member Functions | |
| ParticleCollection () | |
| ParticleCollection (ParticlePoolPtr particlePoolPtr) | |
| ParticleCollection (const ParticleCollection &p) | |
| ParticleCollection & | operator= (const ParticleCollection &p) |
| virtual | ~ParticleCollection () |
| int | getNumParticles () const |
| BoundingBox | getParticleBBox () const |
| ParticleIterator | getParticleIterator () |
| ParticleConstIterator | getParticleIterator () const |
| void | translateBy (const Vec3 &vec) |
| void | rotate (const Vec3 &rotation, const Vec3 &posn) |
| void | incrementIdBy (typename Particle::Id idIncr) |
| void | insertRef (Particle &p) |
| Particle & | createParticle (const Particle &p) |
Protected Member Functions | |
| void | noCheckInsertRef (Particle &p) |
Private Types | |
| typedef std::vector< Particle * > | ParticleVector |
| typedef ForwardIterator< ParticleVector > | VectorIterator |
| typedef ForwardConstIterator< ParticleVector > | VectorConstIterator |
Private Attributes | |
| ParticlePoolPtr | m_particlePoolPtr |
| ParticleVector | m_particleVector |
| typedef TmplParticle esys::lsm::ParticleCollection< TmplParticle >::Particle |
| typedef boost::object_pool<Particle> esys::lsm::ParticleCollection< TmplParticle >::ParticlePool |
| typedef boost::shared_ptr<ParticlePool> esys::lsm::ParticleCollection< TmplParticle >::ParticlePoolPtr |
|
private |
|
private |
|
private |
| esys::lsm::ParticleCollection< TmplParticle >::ParticleCollection |
| esys::lsm::ParticleCollection< TmplParticle >::ParticleCollection | ( | ParticlePoolPtr | particlePoolPtr | ) |
| esys::lsm::ParticleCollection< TmplParticle >::ParticleCollection | ( | const ParticleCollection< TmplParticle > & | p | ) |
|
virtual |
| ParticleCollection< TmplParticle >::Particle & esys::lsm::ParticleCollection< TmplParticle >::createParticle | ( | const Particle & | p | ) |
Creates a new particle constructed particle from p.
| p | Create particle copy constructed from p. |
Referenced by esys::lsm::ParticleCollectionPy::createParticlePy(), esys::lsm::SimpleSphereCollectionPy::createParticlePy(), esys::lsm::ParticleCollectionPyPickleSuite::setstate(), and esys::lsm::SimpleSphereCollectionPyPickleSuite::setstate().

| int esys::lsm::ParticleCollection< TmplParticle >::getNumParticles |
| BoundingBox esys::lsm::ParticleCollection< TmplParticle >::getParticleBBox |
|
inline |
Referenced by esys::lsm::ParticleCollectionPyPickleSuite::getstate(), and esys::lsm::SimpleSphereCollectionPyPickleSuite::getstate().

|
inline |
| void esys::lsm::ParticleCollection< TmplParticle >::incrementIdBy | ( | typename Particle::Id | idIncr | ) |
Increments all particle Id's by the specifed amount.
| idIncr | Increment. |
| void esys::lsm::ParticleCollection< TmplParticle >::insertRef | ( | Particle & | p | ) |
Adds the specifed particle reference to this collection.
| p | Reference to p is inserted. |
|
protected |
Adds the specifed particle reference to this collection.
| p | Reference to p is inserted. |
| ParticleCollection< TmplParticle > & esys::lsm::ParticleCollection< TmplParticle >::operator= | ( | const ParticleCollection< TmplParticle > & | p | ) |
| void esys::lsm::ParticleCollection< TmplParticle >::rotate | ( | const Vec3 & | rotation, |
| const Vec3 & | posn | ||
| ) |
Rotates all particles according to the specified rotation.
| rotation | Specifies rotation-axis and magnitude, ie angle = rotation.norm() radians. |
| posn | Specifies position of the rotation vector. |
References esys::lsm::ForwardIterator< TmplIteratable >::hasNext().

| void esys::lsm::ParticleCollection< TmplParticle >::translateBy | ( | const Vec3 & | vec | ) |
Translates all particle positions by the specified mount.
| vec | Translation increment. |
|
private |
|
private |