Convenience class for processing data with time restriction periods.
Given a vector of DateRange and a vector of MeteoData, compute which start/end indices fit within the time restriction periods. Then repeatedly calling getStart() / getEnd() will provide these indices while calling the ++ operator increment the time restriction period. Once isValid() returns false, there are no time restriction periods left.
#include <MeteoProcessor.h>
Public Member Functions | |
| RestrictionsIdx () | |
| RestrictionsIdx (const METEO_SET &vecMeteo, const std::vector< DateRange > &time_restrictions) | |
| bool | isValid () const |
| size_t | getStart () const |
| size_t | getEnd () const |
| RestrictionsIdx & | operator++ () |
| const std::string | toString () const |
|
inline |
| mio::RestrictionsIdx::RestrictionsIdx | ( | const METEO_SET & | vecMeteo, |
| const std::vector< DateRange > & | time_restrictions | ||
| ) |
| size_t mio::RestrictionsIdx::getEnd | ( | ) | const |
| size_t mio::RestrictionsIdx::getStart | ( | ) | const |
|
inline |
| RestrictionsIdx & mio::RestrictionsIdx::operator++ | ( | ) |
| const std::string mio::RestrictionsIdx::toString | ( | ) | const |