Apache Mesos
Classes | Public Member Functions | List of all members
process::TimeSeries< T > Struct Template Reference

#include <timeseries.hpp>

Classes

struct  Value
 

Public Member Functions

 TimeSeries (const Duration &_window=TIME_SERIES_WINDOW, size_t _capacity=TIME_SERIES_CAPACITY)
 
void set (const T &value, const Time &time=Clock::now())
 
std::vector< Valueget (const Option< Time > &start=None(), const Option< Time > &stop=None()) const
 
Option< Valuelatest () const
 
bool empty () const
 
void truncate ()
 

Constructor & Destructor Documentation

template<typename T>
process::TimeSeries< T >::TimeSeries ( const Duration _window = TIME_SERIES_WINDOW,
size_t  _capacity = TIME_SERIES_CAPACITY 
)
inline

Member Function Documentation

template<typename T>
bool process::TimeSeries< T >::empty ( ) const
inline
template<typename T>
std::vector<Value> process::TimeSeries< T >::get ( const Option< Time > &  start = None(),
const Option< Time > &  stop = None() 
) const
inline
template<typename T>
Option<Value> process::TimeSeries< T >::latest ( ) const
inline
template<typename T>
void process::TimeSeries< T >::set ( const T &  value,
const Time time = Clock::now() 
)
inline
template<typename T>
void process::TimeSeries< T >::truncate ( )
inline

The documentation for this struct was generated from the following file: