MercuryDPM  Beta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MercuryDataFile::IteratorProxy< NDIMS > Class Template Reference

#include <MercuryData.h>

Public Member Functions

MercuryTimeStepIterator< NDIMS > begin ()
 
MercuryTimeStepIterator< NDIMS > end ()
 

Private Member Functions

 IteratorProxy (MercuryDataFile *pData)
 

Private Attributes

MercuryDataFiledata_
 

Friends

class MercuryDataFile
 

Detailed Description

template<std::size_t NDIMS>
class MercuryDataFile::IteratorProxy< NDIMS >

Proxy class because the compiler needs more information about the iterable type (namely the dimension). This can't be inferred as it needs two levels of inferrence while the standard allows for only one.

Definition at line 504 of file MercuryData.h.

Constructor & Destructor Documentation

template<std::size_t NDIMS>
MercuryDataFile::IteratorProxy< NDIMS >::IteratorProxy ( MercuryDataFile pData)
inlineprivate

Definition at line 507 of file MercuryData.h.

508  : data_(pData)
509  { }

Member Function Documentation

template<std::size_t NDIMS>
MercuryTimeStepIterator<NDIMS> MercuryDataFile::IteratorProxy< NDIMS >::begin ( )
inline

Definition at line 513 of file MercuryData.h.

References MercuryDataFile::begin(), and MercuryDataFile::IteratorProxy< NDIMS >::data_.

514  {
515  return data_->begin<NDIMS>();
516  }
MercuryTimeStepIterator< NDIMS > begin()
Returns a forwarditerator to the timesteps Returns a forwarditerator to the timesteps, invalidating any other valid iterators in the process (since this is a lazy loader and does not actually load the entire file in memory). End iterators do not get invalidated. This function makes no guarantee for the validity of the file-state.
Definition: MercuryData.h:540
template<std::size_t NDIMS>
MercuryTimeStepIterator<NDIMS> MercuryDataFile::IteratorProxy< NDIMS >::end ( )
inline

Definition at line 517 of file MercuryData.h.

References MercuryDataFile::IteratorProxy< NDIMS >::data_, and MercuryDataFile::end().

518  {
519  return data_->end<NDIMS>();
520  }
MercuryTimeStepIterator< NDIMS > end() const
Returns a forwarditerator one past the last timestep.
Definition: MercuryData.h:550

Friends And Related Function Documentation

template<std::size_t NDIMS>
friend class MercuryDataFile
friend

Definition at line 521 of file MercuryData.h.

Member Data Documentation

template<std::size_t NDIMS>
MercuryDataFile* MercuryDataFile::IteratorProxy< NDIMS >::data_
private

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