StelGeodesicGrid.hpp   StelGeodesicGrid.hpp 
skipping to change at line 166 skipping to change at line 166
const StelGeodesicGrid &grid; const StelGeodesicGrid &grid;
int **const zones; int **const zones;
int **const inside; int **const inside;
int **const border; int **const border;
}; };
class GeodesicSearchBorderIterator class GeodesicSearchBorderIterator
{ {
public: public:
GeodesicSearchBorderIterator(const GeodesicSearchResult &r,int level GeodesicSearchBorderIterator(const GeodesicSearchResult &ar,int alev
) el)
: r(r),level((level<0)?0:(level>r.grid.getMaxLevel()) : r(ar),level((alevel<0)?0:(alevel>ar.grid.getMaxLevel())
?r.grid.getMaxLevel():level), ?ar.grid.getMaxLevel():alevel),
end(r.zones[GeodesicSearchBorderIterator::level]+ end(ar.zones[GeodesicSearchBorderIterator::level]+
StelGeodesicGrid::nrOfZones(GeodesicSearchBorder Iterator::level)) StelGeodesicGrid::nrOfZones(GeodesicSearchBorder Iterator::level))
{reset();} {reset();}
void reset(void) {index = r.border[level];} void reset(void) {index = r.border[level];}
int next(void) // returns -1 when finished int next(void) // returns -1 when finished
{if (index < end) {return *index++;} return -1;} {if (index < end) {return *index++;} return -1;}
private: private:
const GeodesicSearchResult &r; const GeodesicSearchResult &r;
const int level; const int level;
const int *const end; const int *const end;
const int *index; const int *index;
}; };
class GeodesicSearchInsideIterator class GeodesicSearchInsideIterator
{ {
public: public:
GeodesicSearchInsideIterator(const GeodesicSearchResult &r,int level GeodesicSearchInsideIterator(const GeodesicSearchResult &ar,int alev
) el)
: r(r),maxLevel((level<0)?0:(level>r.grid.getMaxLevel()) : r(ar),
?r.grid.getMaxLevel():level) maxLevel((alevel<0)?0:(alevel>ar.grid.getMaxLevel())
?ar.grid.getMaxLevel():alevel)
{reset();} {reset();}
void reset(void); void reset(void);
int next(void); // returns -1 when finished int next(void); // returns -1 when finished
private: private:
const GeodesicSearchResult &r; const GeodesicSearchResult &r;
const int maxLevel; const int maxLevel;
int level; int level;
int maxCount; int maxCount;
int *indexP; int *indexP;
int *endP; int *endP;
 End of changes. 2 change blocks. 
9 lines changed or deleted 10 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/