MeteoIODoc 20241230.207bde49
mio::GridBuffer Class Reference

Detailed Description

A class to buffer gridded data. This class buffers Grid2D objects. It implements a proper ring buffer, thus removing old buffered grids when necessary.

Author
Mathias Bavay
Date
2015-02-06

#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 &parameter, const Date &date) const
 
bool has (const std::string &grid_hash) const
 
bool has (const MeteoGrids::Parameters &parameter, 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 &parameter, const Date &date)
 
const std::string toString () const
 

Constructor & Destructor Documentation

◆ GridBuffer()

mio::GridBuffer::GridBuffer ( const size_t &  in_max_grids)

Member Function Documentation

◆ clear()

void mio::GridBuffer::clear ( )
inline

◆ empty()

bool mio::GridBuffer::empty ( ) const
inline

◆ get() [1/4]

bool mio::GridBuffer::get ( DEMObject grid,
const std::string &  grid_hash 
) const

◆ get() [2/4]

bool mio::GridBuffer::get ( Grid2DObject grid,
const MeteoGrids::Parameters parameter,
const Date date 
) const

◆ get() [3/4]

bool mio::GridBuffer::get ( Grid2DObject grid,
const std::string &  grid_hash 
) const

◆ get() [4/4]

bool mio::GridBuffer::get ( Grid2DObject grid,
const std::string &  grid_hash,
std::string &  grid_info 
) const

◆ has() [1/2]

bool mio::GridBuffer::has ( const MeteoGrids::Parameters parameter,
const Date date 
) const

◆ has() [2/2]

bool mio::GridBuffer::has ( const std::string &  grid_hash) const

◆ push() [1/4]

void mio::GridBuffer::push ( const DEMObject grid,
const std::string &  grid_hash 
)

◆ push() [2/4]

void mio::GridBuffer::push ( const Grid2DObject grid,
const MeteoGrids::Parameters parameter,
const Date date 
)

◆ push() [3/4]

void mio::GridBuffer::push ( const Grid2DObject grid,
const std::string &  grid_hash 
)

◆ push() [4/4]

void mio::GridBuffer::push ( const Grid2DObject grid,
const std::string &  grid_hash,
const std::string &  grid_info 
)

◆ setMaxGrids()

void mio::GridBuffer::setMaxGrids ( const size_t &  in_max_grids)
inline

◆ size()

size_t mio::GridBuffer::size ( ) const
inline

◆ toString()

const std::string mio::GridBuffer::toString ( ) const

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