CARMA C++
RegCoord.h
Go to the documentation of this file.
1 #ifndef SZA_UTIL_REGCOORD_H
2 #define SZA_UTIL_REGCOORD_H
3 
11 #include <vector>
12 
13 namespace sza {
14  namespace util {
15 
20  class RegCoord {
21  public:
22 
26  RegCoord();
27  RegCoord(RegCoord* coord);
28  RegCoord(unsigned ind1);
29  RegCoord(unsigned ind1, unsigned ind2);
30  RegCoord(unsigned ind1, unsigned ind2, unsigned ind3);
31 
35  virtual ~RegCoord();
36 
40  void setIndex(unsigned nAxis, unsigned index);
41 
45  void reset(unsigned nAxis=1);
46 
50  unsigned nAxis();
51 
55  unsigned int getIndex(unsigned iAxis);
56 
57  private:
58 
59  std::vector<unsigned int> ind_;
60 
61  }; // End class RegCoord
62 
63  } // End namespace util
64 } // End namespace sza
65 
66 
67 
68 #endif // End #ifndef SZA_UTIL_REGCOORD_H
virtual ~RegCoord()
Destructor.
unsigned nAxis()
Return the number of axes in this coordinate nTuplet.
A class for specifying a coordinate in a multi-dimensional space.
Definition: RegCoord.h:20
unsigned int getIndex(unsigned iAxis)
Return the coordinate index for axis iAxis.
RegCoord()
Constructors.
void setIndex(unsigned nAxis, unsigned index)
Set the coordinate index of the requested axis.
void reset(unsigned nAxis=1)
Reset the coordinate ntuplet.