ESyS-Particle  2.3.2
esys::lsm::ParticleIterator Class Reference

#include <GeometryReader.h>

Inheritance diagram for esys::lsm::ParticleIterator:
Collaboration diagram for esys::lsm::ParticleIterator:

Public Types

typedef IStreamIterator
< SimpleParticleData >
::value_type 
value_type
- Public Types inherited from esys::lsm::IStreamIterator< SimpleParticleData >
typedef SimpleParticleData value_type

Public Member Functions

 ParticleIterator (std::istream &iStream, int numElements, bool is2d=true)
 ParticleIterator (const ParticleVector &particleVector)
bool hasNext () const
const SimpleParticlenext ()
- Public Member Functions inherited from esys::lsm::IStreamIterator< SimpleParticleData >
 IStreamIterator (std::istream &iStream, int numElements)
virtual ~IStreamIterator ()
int getNumRemaining () const

Protected Member Functions

virtual void readDataFromStream ()
- Protected Member Functions inherited from esys::lsm::IStreamIterator< SimpleParticleData >
 IStreamIterator (const IStreamIterator &it)
IStreamIteratoroperator= (const IStreamIterator &it)

Private Attributes

bool m_is2d
ConstContainerIterator
< ParticleVector
m_it

Additional Inherited Members

- Protected Attributes inherited from esys::lsm::IStreamIterator< SimpleParticleData >
std::istream * m_pIStream
SimpleParticleData m_data
int m_numRemaining

Member Typedef Documentation

Constructor & Destructor Documentation

esys::lsm::ParticleIterator::ParticleIterator ( std::istream &  iStream,
int  numElements,
bool  is2d = true 
)
inline
esys::lsm::ParticleIterator::ParticleIterator ( const ParticleVector particleVector)
inline

Member Function Documentation

bool esys::lsm::ParticleIterator::hasNext ( ) const
inline

Returns true if there are any elements remaining in the stream.

Reimplemented from esys::lsm::IStreamIterator< SimpleParticleData >.

References esys::lsm::ConstContainerIterator< TmplContainer >::hasNext(), and m_it.

Referenced by esys::lsm::ParticleDataVisitor::writeCentrePoints(), esys::lsm::ParticleDataVisitor::writeIds(), esys::lsm::ParticleDataVisitor::writeRadii(), and esys::lsm::ParticleDataVisitor::writeTags().

Here is the call graph for this function:

Here is the caller graph for this function:

const SimpleParticle& esys::lsm::ParticleIterator::next ( )
inline
virtual void esys::lsm::ParticleIterator::readDataFromStream ( )
inlineprotectedvirtual

Member Data Documentation

bool esys::lsm::ParticleIterator::m_is2d
private

Referenced by readDataFromStream().

ConstContainerIterator<ParticleVector> esys::lsm::ParticleIterator::m_it
private

Referenced by hasNext(), and next().


The documentation for this class was generated from the following files: