revision: v0.14
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
515  : data_(pData)
516  { }

Member Function Documentation

◆ begin()

template<std::size_t NDIMS>
MercuryTimeStepIterator<NDIMS> MercuryDataFile::IteratorProxy< NDIMS >::begin ( )
inline
521  {
522  return data_->begin<NDIMS>();
523  }

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

◆ end()

template<std::size_t NDIMS>
MercuryTimeStepIterator<NDIMS> MercuryDataFile::IteratorProxy< NDIMS >::end ( )
inline
525  {
526  return data_->end<NDIMS>();
527  }

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:
MercuryDataFile::begin
MercuryTimeStepIterator< NDIMS > begin()
Returns a forwarditerator to the time steps Returns a forwarditerator to the time steps,...
Definition: MercuryData.h:547
MercuryDataFile::IteratorProxy::data_
MercuryDataFile * data_
Definition: MercuryData.h:518
MercuryDataFile::end
MercuryTimeStepIterator< NDIMS > end() const
Returns a forwarditerator one past the last time step.
Definition: MercuryData.h:557