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.

Constructor & Destructor Documentation

◆ IteratorProxy()

template<std::size_t NDIMS>
MercuryDataFile::IteratorProxy< NDIMS >::IteratorProxy ( MercuryDataFile pData)
inlineprivate
514  : data_(pData)
515  { }
MercuryDataFile * data_
Definition: MercuryData.h:517

Member Function Documentation

◆ begin()

template<std::size_t NDIMS>
MercuryTimeStepIterator<NDIMS> MercuryDataFile::IteratorProxy< NDIMS >::begin ( )
inline
520  {
521  return data_->begin<NDIMS>();
522  }
MercuryTimeStepIterator< NDIMS > begin()
Returns a forwarditerator to the time steps Returns a forwarditerator to the time steps,...
Definition: MercuryData.h:546

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

◆ end()

template<std::size_t NDIMS>
MercuryTimeStepIterator<NDIMS> MercuryDataFile::IteratorProxy< NDIMS >::end ( )
inline
524  {
525  return data_->end<NDIMS>();
526  }
MercuryTimeStepIterator< NDIMS > end() const
Returns a forwarditerator one past the last time step.
Definition: MercuryData.h:556

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

Friends And Related Function Documentation

◆ MercuryDataFile

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

Member Data Documentation

◆ data_


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