IODA Bundle
odc::sql::function::RegionCache Class Reference

#include <RegionCache.h>

Inheritance diagram for odc::sql::function::RegionCache:
[legend]
Collaboration diagram for odc::sql::function::RegionCache:
[legend]

Public Member Functions

 RegionCache ()
 
virtual ~RegionCache ()
 
double get_midlat (const double &, const double &)
 
double get_midlon (const double &, const double &, const double &)
 

Static Public Member Functions

static VectorRegionCacheinstance ()
 

Private Member Functions

virtual double get_resol (const double &val)
 
virtual void create_cache (const double &, const int &)
 
void get_cache (const double &)
 
void put_cache (const RegionCacheKind &kind, const double &, const int &, double[], double[], double[], double[], int[])
 
int find_latband (const double &)
 
int find_lonbox (const int &, const double &, double *, double *, double *)
 
int interval_bsearch (const double &, const int &, const double[], const double *, const double &, const double &)
 

Private Attributes

RegionCacheKindkind_
 
int * nboxes_
 
double * resol_
 
int * nbands_
 
double * latband_
 
double * midlat_
 
int * loncnt_
 
int * sum_loncnt_
 
double * stlon_
 
double * deltalon_
 
Lastlast_
 

Friends

class EqRegionCache
 
class RggRegionCache
 

Detailed Description

Definition at line 51 of file RegionCache.h.

Constructor & Destructor Documentation

◆ RegionCache()

odc::sql::function::RegionCache::RegionCache ( )

Definition at line 28 of file RegionCache.cc.

Here is the caller graph for this function:

◆ ~RegionCache()

odc::sql::function::RegionCache::~RegionCache ( )
virtual

Definition at line 32 of file RegionCache.cc.

Member Function Documentation

◆ create_cache()

void odc::sql::function::RegionCache::create_cache ( const double &  resol,
const int &  n 
)
privatevirtual

Reimplemented in odc::sql::function::RggRegionCache, and odc::sql::function::EqRegionCache.

Definition at line 226 of file RegionCache.cc.

Here is the caller graph for this function:

◆ find_latband()

int odc::sql::function::RegionCache::find_latband ( const double &  lat)
private

Definition at line 146 of file RegionCache.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_lonbox()

int odc::sql::function::RegionCache::find_lonbox ( const int &  jb,
const double &  lon,
double *  midlon,
double *  leftlon,
double *  rightlon 
)
private

Definition at line 83 of file RegionCache.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_cache()

void odc::sql::function::RegionCache::get_cache ( const double &  nval)
private

Definition at line 195 of file RegionCache.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_midlat()

double odc::sql::function::RegionCache::get_midlat ( const double &  resol,
const double &  lat 
)

Definition at line 173 of file RegionCache.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_midlon()

double odc::sql::function::RegionCache::get_midlon ( const double &  resol,
const double &  lat,
const double &  lon 
)

Definition at line 184 of file RegionCache.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_resol()

double odc::sql::function::RegionCache::get_resol ( const double &  val)
privatevirtual

Reimplemented in odc::sql::function::RggRegionCache, and odc::sql::function::EqRegionCache.

Definition at line 39 of file RegionCache.cc.

Here is the caller graph for this function:

◆ instance()

VectorRegionCache & odc::sql::function::RegionCache::instance ( )
static

Definition at line 34 of file RegionCache.cc.

Here is the caller graph for this function:

◆ interval_bsearch()

int odc::sql::function::RegionCache::interval_bsearch ( const double &  key,
const int &  n,
const double  x[],
const double *  delta,
const double &  add,
const double &  sign 
)
private

Definition at line 43 of file RegionCache.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ put_cache()

void odc::sql::function::RegionCache::put_cache ( const RegionCacheKind kind,
const double &  resol,
const int &  nb,
double  latband[],
double  midlat[],
double  stlon[],
double  deltalon[],
int  loncnt[] 
)
private

Definition at line 231 of file RegionCache.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ EqRegionCache

friend class EqRegionCache
friend

Definition at line 85 of file RegionCache.h.

◆ RggRegionCache

friend class RggRegionCache
friend

Definition at line 86 of file RegionCache.h.

Member Data Documentation

◆ deltalon_

double* odc::sql::function::RegionCache::deltalon_
private

Definition at line 72 of file RegionCache.h.

◆ kind_

RegionCacheKind* odc::sql::function::RegionCache::kind_
private

Definition at line 63 of file RegionCache.h.

◆ last_

Last* odc::sql::function::RegionCache::last_
private

Definition at line 73 of file RegionCache.h.

◆ latband_

double* odc::sql::function::RegionCache::latband_
private

Definition at line 67 of file RegionCache.h.

◆ loncnt_

int* odc::sql::function::RegionCache::loncnt_
private

Definition at line 69 of file RegionCache.h.

◆ midlat_

double* odc::sql::function::RegionCache::midlat_
private

Definition at line 68 of file RegionCache.h.

◆ nbands_

int* odc::sql::function::RegionCache::nbands_
private

Definition at line 66 of file RegionCache.h.

◆ nboxes_

int* odc::sql::function::RegionCache::nboxes_
private

Definition at line 64 of file RegionCache.h.

◆ resol_

double* odc::sql::function::RegionCache::resol_
private

Definition at line 65 of file RegionCache.h.

◆ stlon_

double* odc::sql::function::RegionCache::stlon_
private

Definition at line 71 of file RegionCache.h.

◆ sum_loncnt_

int* odc::sql::function::RegionCache::sum_loncnt_
private

Definition at line 70 of file RegionCache.h.


The documentation for this class was generated from the following files: