1 #ifndef GCP_UTIL_COORDAXES_H
2 #define GCP_UTIL_COORDAXES_H
13 #include "gcp/util/common/Coord.h"
14 #include "gcp/util/common/CoordRange.h"
15 #include "gcp/util/common/Range.h"
34 CoordAxes(
unsigned nel0,
unsigned nel1,
unsigned nel2);
69 unsigned int nEl(
int axis=-1);
148 std::vector<unsigned int> nEl_;
154 void privateConstructor();
159 void checkValidityOf(
Coord& coord);
164 std::vector<Range<unsigned> >::iterator
170 void computeRanges(std::vector<
Range<unsigned> >& ranges,
unsigned iAxis,
177 unsigned startIndex,
unsigned stopIndex);
187 #endif // End #ifndef GCP_UTIL_COORDAXES_H
Definition: CoordAxes.h:25
virtual ~CoordAxes()
Definition: CoordAxes.cc:121
void operator=(CoordAxes &axes)
Definition: CoordAxes.cc:74
void fillRange(CoordRange &range)
Definition: CoordAxes.cc:466
friend std::ostream & operator<<(std::ostream &os, CoordAxes axes)
bool rangeIsValid(CoordRange &range)
Definition: CoordAxes.cc:351
Definition: CoordRange.h:20
CoordAxes()
Definition: CoordAxes.cc:23
bool operator==(CoordAxes &axes)
Definition: CoordAxes.cc:501
std::vector< Range< unsigned > > getRanges(CoordRange range)
Definition: CoordAxes.cc:219
void reset()
Definition: CoordAxes.cc:84
unsigned int elementOffsetOf(Coord &coord)
Definition: CoordAxes.cc:160
void setAxis(unsigned nAxis, unsigned nEl)
Definition: CoordAxes.cc:92
unsigned int nEl(int axis=-1)
Definition: CoordAxes.cc:136
Coord coordOf(unsigned element)
Definition: CoordAxes.cc:428
unsigned int nAxis()
Definition: CoordAxes.cc:128