A class to buffer gridded data. This class buffers Grid2D objects. It implements a proper ring buffer, thus removing old buffered grids when necessary.
#include <Buffer.h>
Public Member Functions | |
GridBuffer (const size_t &in_max_grids) | |
bool | empty () const |
void | clear () |
size_t | size () const |
void | setMaxGrids (const size_t &in_max_grids) |
bool | get (DEMObject &grid, const std::string &grid_hash) const |
bool | get (Grid2DObject &grid, const std::string &grid_hash) const |
bool | get (Grid2DObject &grid, const std::string &grid_hash, std::string &grid_info) const |
bool | get (Grid2DObject &grid, const MeteoGrids::Parameters ¶meter, const Date &date) const |
bool | has (const std::string &grid_hash) const |
bool | has (const MeteoGrids::Parameters ¶meter, const Date &date) const |
void | push (const DEMObject &grid, const std::string &grid_hash) |
void | push (const Grid2DObject &grid, const std::string &grid_hash) |
void | push (const Grid2DObject &grid, const std::string &grid_hash, const std::string &grid_info) |
void | push (const Grid2DObject &grid, const MeteoGrids::Parameters ¶meter, const Date &date) |
const std::string | toString () const |
mio::GridBuffer::GridBuffer | ( | const size_t & | in_max_grids | ) |
|
inline |
|
inline |
bool mio::GridBuffer::get | ( | DEMObject & | grid, |
const std::string & | grid_hash | ||
) | const |
bool mio::GridBuffer::get | ( | Grid2DObject & | grid, |
const MeteoGrids::Parameters & | parameter, | ||
const Date & | date | ||
) | const |
bool mio::GridBuffer::get | ( | Grid2DObject & | grid, |
const std::string & | grid_hash | ||
) | const |
bool mio::GridBuffer::get | ( | Grid2DObject & | grid, |
const std::string & | grid_hash, | ||
std::string & | grid_info | ||
) | const |
bool mio::GridBuffer::has | ( | const MeteoGrids::Parameters & | parameter, |
const Date & | date | ||
) | const |
bool mio::GridBuffer::has | ( | const std::string & | grid_hash | ) | const |
void mio::GridBuffer::push | ( | const DEMObject & | grid, |
const std::string & | grid_hash | ||
) |
void mio::GridBuffer::push | ( | const Grid2DObject & | grid, |
const MeteoGrids::Parameters & | parameter, | ||
const Date & | date | ||
) |
void mio::GridBuffer::push | ( | const Grid2DObject & | grid, |
const std::string & | grid_hash | ||
) |
void mio::GridBuffer::push | ( | const Grid2DObject & | grid, |
const std::string & | grid_hash, | ||
const std::string & | grid_info | ||
) |
|
inline |
|
inline |
const std::string mio::GridBuffer::toString | ( | ) | const |