ESyS-Particle  4.0.1
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
esys::lsm::IStreamIterator< TmplData > Class Template Reference
Collaboration diagram for esys::lsm::IStreamIterator< TmplData >:
Collaboration graph
[legend]

Public Types

typedef TmplData value_type

Public Member Functions

 IStreamIterator (std::istream &iStream, int numElements)
bool hasNext () const
const TmplData & next ()
int getNumRemaining () const

Protected Member Functions

 IStreamIterator (const IStreamIterator &it)
IStreamIteratoroperator= (const IStreamIterator &it)
virtual void readDataFromStream ()

Protected Attributes

std::istream * m_pIStream
TmplData m_data
int m_numRemaining

Member Function Documentation

template<class TmplData >
int esys::lsm::IStreamIterator< TmplData >::getNumRemaining ( ) const

Returns the number of elements remaining in the stream.

Referenced by CLatticeMaster::readGeometry().

Here is the caller graph for this function:

template<class TmplData >
bool esys::lsm::IStreamIterator< TmplData >::hasNext ( ) const

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

Reimplemented in esys::lsm::ParticleIterator.

Referenced by CLatticeMaster::readAndDistributeMesh2D(), and CLatticeMaster::readTriMesh().

Here is the caller graph for this function:

template<class TmplData >
const TmplData & esys::lsm::IStreamIterator< TmplData >::next ( )

Returns the next element in the stream.

Reimplemented in esys::lsm::ParticleIterator.

Referenced by CLatticeMaster::readAndDistributeMesh2D(), and CLatticeMaster::readTriMesh().

Here is the caller graph for this function:


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