Skip to main content

chronon::observe::TimelineCapacity

Used/free capacity helper backed by two counter tracks.

#include <TimelineObserve.hpp>

Public Functions

Name
template <typename Used ,typename Capacity >
void
sampleOnChange(Used used, Capacity total)
template <typename Cat ,typename Used ,typename Capacity >
void
sampleOnChange(Cat category, Used used, Capacity total)
template <typename Used ,typename Capacity >
void
sample(Used used, Capacity total)
template <typename Cat ,typename Used ,typename Capacity >
void
sample(Cat category, Used used, Capacity total)
TimelineCapacity(ObservableUnit * owner, std::string_view name, std::string_view unit ={})

Public Functions Documentation

function sampleOnChange

template <typename Used ,
typename Capacity >
inline void sampleOnChange(
Used used,
Capacity total
)

function sampleOnChange

template <typename Cat ,
typename Used ,
typename Capacity >
inline void sampleOnChange(
Cat category,
Used used,
Capacity total
)

function sample

template <typename Used ,
typename Capacity >
inline void sample(
Used used,
Capacity total
)

function sample

template <typename Cat ,
typename Used ,
typename Capacity >
inline void sample(
Cat category,
Used used,
Capacity total
)

function TimelineCapacity

inline TimelineCapacity(
ObservableUnit * owner,
std::string_view name,
std::string_view unit ={}
)

Updated on 2026-06-22 at 09:17:04 +0000