KJB
|
This caches a bunch (potentially) of one-degree grids for you. More...
#include <nedgrid.h>
Public Member Functions | |
Ned13_grid_cache (const std::vector< std::string > &path=std::vector< std::string >()) | |
virtual | ~Ned13_grid_cache () |
dtor cleans up (releases all grid objects in the cache) More... | |
const Ned13_one_degree_grid & | fetch (const Ned13_one_degree_grid::IntegralLL &) |
return reference to grid with the given exact NW corner point More... | |
const Ned13_one_degree_grid & | fetch (double, double) |
reference to grid, reading from cache or loading if necessary More... | |
const Ned13_one_degree_grid & | fetch (const TopoFusion::pt &p) |
return reference to grid, from cache or loading if necessary More... | |
size_t | cache_size () const |
return the number of grids in the cache More... | |
This caches a bunch (potentially) of one-degree grids for you.
|
inline |
|
inlinevirtual |
dtor cleans up (releases all grid objects in the cache)
|
inline |
return the number of grids in the cache
This is useful to prevent your cache from getting TOO big, because those tile files are quite large. So, you can poll the size occasionally, and throw away the cache when it gets excessive.
const Ned13_one_degree_grid & kjb::Ned13_grid_cache::fetch | ( | const Ned13_one_degree_grid::IntegralLL & | nw_corner | ) |
return reference to grid with the given exact NW corner point
const Ned13_one_degree_grid & kjb::Ned13_grid_cache::fetch | ( | double | deg_lat, |
double | deg_long | ||
) |
reference to grid, reading from cache or loading if necessary
deg_lat | degrees of latitude of some point within the grid |
deg_long | degrees of longitude (negative in USA) of point within grid |
|
inline |
return reference to grid, from cache or loading if necessary