MI - Fimex
Public Member Functions | List of all members
MetNoFimex::DataIndex Class Reference

#include <fimex/DataIndex.h>

Public Member Functions

 DataIndex ()
 
 DataIndex (std::vector< std::size_t > dimSizes)
 
 ~DataIndex ()
 
const std::vector< std::size_t > & getDims () const
 
std::size_t getPos (std::vector< std::size_t > pos) const
 
std::size_t getPos (std::size_t a) const
 
std::size_t getPos (std::size_t a, std::size_t b) const
 
std::size_t getPos (std::size_t a, std::size_t b, std::size_t c) const
 
std::size_t getPos (std::size_t a, std::size_t b, std::size_t c, std::size_t d) const
 

Constructor & Destructor Documentation

MetNoFimex::DataIndex::DataIndex ( )
inline

References ~DataIndex().

MetNoFimex::DataIndex::DataIndex ( std::vector< std::size_t >  dimSizes)
explicit

Creates an index for an array with applied dimSizes. The first dimension is the fastest moving (fortran-array style).

MetNoFimex::DataIndex::~DataIndex ( )

Referenced by DataIndex().

Member Function Documentation

const std::vector<std::size_t>& MetNoFimex::DataIndex::getDims ( ) const
inline
Returns
a vector with all dimension sizes

Referenced by MetNoFimex::OceanSCoordinateGToDepthConverter::OceanSCoordinateGToDepthConverter().

std::size_t MetNoFimex::DataIndex::getPos ( std::vector< std::size_t >  pos) const
inline

The position named by pos. Uses 0 for all dimensions >= pos.size()

Parameters
pos
Returns
position within the array
Exceptions
out_of_rangeException if pos.size() > max(getDims().size(), 10)

References std::vector< _Tp, _Alloc >::at(), and std::vector< _Tp, _Alloc >::size().

std::size_t MetNoFimex::DataIndex::getPos ( std::size_t  a) const
inline
std::size_t MetNoFimex::DataIndex::getPos ( std::size_t  a,
std::size_t  b 
) const
inline
std::size_t MetNoFimex::DataIndex::getPos ( std::size_t  a,
std::size_t  b,
std::size_t  c 
) const
inline
std::size_t MetNoFimex::DataIndex::getPos ( std::size_t  a,
std::size_t  b,
std::size_t  c,
std::size_t  d 
) const
inline

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