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 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_;
}; };

View File

@ -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

View File

@ -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);
}; };

View File

@ -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