mirror of https://github.com/ecmwf/eccodes.git
Modernisation: Make members private
This commit is contained in:
parent
408066a953
commit
e4df2db1a1
|
@ -35,15 +35,18 @@ public:
|
||||||
virtual bool has_next() = 0;
|
virtual bool has_next() = 0;
|
||||||
virtual Iterator* create() const = 0;
|
virtual Iterator* create() const = 0;
|
||||||
|
|
||||||
public:
|
unsigned long flags_;
|
||||||
|
|
||||||
|
protected:
|
||||||
grib_context* context_;
|
grib_context* context_;
|
||||||
grib_arguments* args_; /** args of iterator */
|
|
||||||
grib_handle* h_;
|
grib_handle* h_;
|
||||||
|
double* data_; /** data values */
|
||||||
long e_; /** current element */
|
long e_; /** current element */
|
||||||
size_t nv_; /** number of values */
|
size_t nv_; /** number of values */
|
||||||
double* data_; /** data values */
|
|
||||||
unsigned long flags_;
|
|
||||||
const char* class_name_;
|
const char* class_name_;
|
||||||
|
|
||||||
|
private:
|
||||||
|
grib_arguments* args_; /** args of iterator */
|
||||||
size_t size_;
|
size_t size_;
|
||||||
int inited_;
|
int inited_;
|
||||||
};
|
};
|
||||||
|
|
|
@ -33,10 +33,12 @@ public:
|
||||||
int destroy() override;
|
int destroy() override;
|
||||||
bool has_next() override;
|
bool has_next() override;
|
||||||
|
|
||||||
public:
|
protected:
|
||||||
// int get(double*, double*, double*);
|
|
||||||
int carg_;
|
int carg_;
|
||||||
|
|
||||||
|
private:
|
||||||
const char* missingValue_;
|
const char* missingValue_;
|
||||||
|
// int get(double*, double*, double*);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace geo
|
} // namespace geo
|
||||||
|
|
|
@ -30,13 +30,12 @@ public:
|
||||||
int next(double*, double*, double*) override;
|
int next(double*, double*, double*) override;
|
||||||
int destroy() override;
|
int destroy() override;
|
||||||
|
|
||||||
public:
|
private:
|
||||||
double* lats_;
|
double* lats_;
|
||||||
double* lons_;
|
double* lons_;
|
||||||
long Nsides_;
|
long Nsides_;
|
||||||
bool nested_;
|
bool nested_;
|
||||||
|
|
||||||
private:
|
|
||||||
int iterate_healpix(long N);
|
int iterate_healpix(long N);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -30,25 +30,24 @@ public:
|
||||||
int next(double*, double*, double*) override;
|
int next(double*, double*, double*) override;
|
||||||
int destroy() override;
|
int destroy() override;
|
||||||
|
|
||||||
public:
|
private:
|
||||||
double* lats_;
|
double* lats_;
|
||||||
double* lons_;
|
double* lons_;
|
||||||
long Nj_;
|
long Nj_;
|
||||||
|
|
||||||
private:
|
int init_sphere(grib_handle*,
|
||||||
int init_sphere(grib_handle*,
|
size_t, long, long,
|
||||||
size_t, long, long,
|
double, double, double,
|
||||||
double, double, double,
|
double, double,
|
||||||
double, double,
|
double, double,
|
||||||
double, double,
|
long, long, long);
|
||||||
long, long, long);
|
|
||||||
|
|
||||||
int init_oblate(grib_handle*,
|
int init_oblate(grib_handle*,
|
||||||
size_t, long, long,
|
size_t, long, long,
|
||||||
double, double, double, double,
|
double, double, double, double,
|
||||||
double, double,
|
double, double,
|
||||||
double, double,
|
double, double,
|
||||||
long, long, long);
|
long, long, long);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace geo
|
} // namespace geo
|
||||||
|
|
Loading…
Reference in New Issue