MeteoIODoc 20241230.207bde49
mio::RestrictionsIdx Class Reference

Detailed Description

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.

Author
Mathias Bavay

#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
 
RestrictionsIdxoperator++ ()
 
const std::string toString () const
 

Constructor & Destructor Documentation

◆ RestrictionsIdx() [1/2]

mio::RestrictionsIdx::RestrictionsIdx ( )
inline

◆ RestrictionsIdx() [2/2]

mio::RestrictionsIdx::RestrictionsIdx ( const METEO_SET vecMeteo,
const std::vector< DateRange > &  time_restrictions 
)

Member Function Documentation

◆ getEnd()

size_t mio::RestrictionsIdx::getEnd ( ) const

◆ getStart()

size_t mio::RestrictionsIdx::getStart ( ) const

◆ isValid()

bool mio::RestrictionsIdx::isValid ( ) const
inline

◆ operator++()

RestrictionsIdx & mio::RestrictionsIdx::operator++ ( )

◆ toString()

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

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