ESyS-Particle  2.3.2
esys::lsm::IStreamIterator< TmplData > Class Template Reference

#include <IterativeReader.h>

Inheritance diagram for esys::lsm::IStreamIterator< TmplData >:
Collaboration diagram for esys::lsm::IStreamIterator< TmplData >:

Public Types

typedef TmplData value_type

Public Member Functions

 IStreamIterator (std::istream &iStream, int numElements)
virtual ~IStreamIterator ()
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 Typedef Documentation

template<class TmplData>
typedef TmplData esys::lsm::IStreamIterator< TmplData >::value_type

Constructor & Destructor Documentation

template<class TmplData >
esys::lsm::IStreamIterator< TmplData >::IStreamIterator ( std::istream &  iStream,
int  numElements 
)
template<class TmplData >
esys::lsm::IStreamIterator< TmplData >::~IStreamIterator ( )
virtual
template<class TmplData>
esys::lsm::IStreamIterator< TmplData >::IStreamIterator ( const IStreamIterator< TmplData > &  it)
protected

Member Function Documentation

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

Returns the number of elements remaining in the stream.

Referenced by main(), and 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:

template<class TmplData>
IStreamIterator& esys::lsm::IStreamIterator< TmplData >::operator= ( const IStreamIterator< TmplData > &  it)
protected
template<class TmplData >
void esys::lsm::IStreamIterator< TmplData >::readDataFromStream ( )
protectedvirtual

Reimplemented in esys::lsm::ParticleIterator.

Member Data Documentation

template<class TmplData>
TmplData esys::lsm::IStreamIterator< TmplData >::m_data
protected
template<class TmplData>
int esys::lsm::IStreamIterator< TmplData >::m_numRemaining
protected
template<class TmplData>
std::istream* esys::lsm::IStreamIterator< TmplData >::m_pIStream
protected

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