Modernisation: Make members private

This commit is contained in:
Eugen Betke 2024-10-17 13:32:00 +02:00
parent 408066a953
commit e4df2db1a1
4 changed files with 25 additions and 22 deletions

View File

@ -35,15 +35,18 @@ public:
virtual bool has_next() = 0;
virtual Iterator* create() const = 0;
public:
unsigned long flags_;
protected:
grib_context* context_;
grib_arguments* args_; /** args of iterator */
grib_handle* h_;
double* data_; /** data values */
long e_; /** current element */
size_t nv_; /** number of values */
double* data_; /** data values */
unsigned long flags_;
const char* class_name_;
private:
grib_arguments* args_; /** args of iterator */
size_t size_;
int inited_;
};

View File

@ -33,10 +33,12 @@ public:
int destroy() override;
bool has_next() override;
public:
// int get(double*, double*, double*);
protected:
int carg_;
private:
const char* missingValue_;
// int get(double*, double*, double*);
};
} // namespace geo

View File

@ -30,13 +30,12 @@ public:
int next(double*, double*, double*) override;
int destroy() override;
public:
private:
double* lats_;
double* lons_;
long Nsides_;
bool nested_;
private:
int iterate_healpix(long N);
};

View File

@ -30,25 +30,24 @@ public:
int next(double*, double*, double*) override;
int destroy() override;
public:
private:
double* lats_;
double* lons_;
long Nj_;
private:
int init_sphere(grib_handle*,
size_t, long, long,
double, double, double,
double, double,
double, double,
long, long, long);
int init_sphere(grib_handle*,
size_t, long, long,
double, double, double,
double, double,
double, double,
long, long, long);
int init_oblate(grib_handle*,
size_t, long, long,
double, double, double, double,
double, double,
double, double,
long, long, long);
int init_oblate(grib_handle*,
size_t, long, long,
double, double, double, double,
double, double,
double, double,
long, long, long);
};
} // namespace geo