ESyS-Particle
4.0.1
|
Classes | |
class | GrainConstIterator |
class | GrainIterator |
Public Types | |
typedef TmplGrain | Grain |
typedef Grain::Particle | Particle |
typedef Grain::ParticleCollection | ParticleCollection |
typedef ParticleCollection::ParticlePool | ParticlePool |
typedef ParticleCollection::ParticlePoolPtr | ParticlePoolPtr |
typedef ParticleCollection::ParticleIterator | ParticleIterator |
typedef ParticleCollection::ParticleConstIterator | ParticleConstIterator |
typedef boost::object_pool< Grain > | GrainPool |
typedef boost::shared_ptr < GrainPool > | GrainPoolPtr |
typedef std::vector< Grain * > | GrainVector |
Public Member Functions | |
GrainCollection (ParticlePoolPtr particlePoolPtr) | |
GrainCollection (ParticlePoolPtr particlePoolPtr, GrainPoolPtr grainPoolPtr) | |
int | getNumGrains () const |
int | getNumParticles () const |
void | insertRef (Grain &g) |
Grain & | createGrain () |
Grain & | createGrain (typename Grain::Id id) |
Grain & | createGrain (const Grain &g) |
GrainIterator | getGrainIterator () |
GrainConstIterator | getGrainIterator () const |
Protected Types | |
typedef ForwardIterator < GrainVector > | VectorIterator |
typedef ForwardConstIterator < GrainVector > | VectorConstIterator |
Protected Member Functions | |
ParticlePoolPtr | getParticlePoolPtr () |
GrainPoolPtr | getGrainPoolPtr () |
GrainCollection< TmplGrain >::Grain & esys::lsm::GrainCollection< TmplGrain >::createGrain | ( | ) |
Creates an empty grain.
References esys::lsm::GrainCollection< TmplGrain >::insertRef().
GrainCollection< TmplGrain >::Grain & esys::lsm::GrainCollection< TmplGrain >::createGrain | ( | typename Grain::Id | id | ) |
Creates an empty (no particles) grain.
id | Create a grain with this id. |
References esys::lsm::GrainCollection< TmplGrain >::insertRef().
GrainCollection< TmplGrain >::Grain & esys::lsm::GrainCollection< TmplGrain >::createGrain | ( | const Grain & | g | ) |
Returns a copy-constructed grain.
g | Copy created from this argument. |
References esys::lsm::GrainCollection< TmplGrain >::insertRef().
int esys::lsm::GrainCollection< TmplGrain >::getNumGrains | ( | ) | const |
Returns the number of grains in this collection.
int esys::lsm::GrainCollection< TmplGrain >::getNumParticles | ( | ) | const |
Returns the number of particles contained in all grains of this collection.
void esys::lsm::GrainCollection< TmplGrain >::insertRef | ( | Grain & | g | ) |
Stores reference to specified grain.
g | Inserts reference to grain g in this collection. |
std::runtime_error | if g was not created by this collection's GrainPool. |
Referenced by esys::lsm::GrainCollection< TmplGrain >::createGrain().