Files
FESADev/include/fesa/analysis/thermal_time_grid.h
T

12 lines
619 B
C++

#ifndef FESA_ANALYSIS_THERMAL_TIME_GRID_H_
#define FESA_ANALYSIS_THERMAL_TIME_GRID_H_
#include <cstdint>
#include "fesa/core/status.h"
namespace fesa {
class ThermalTimeGrid final { public:
static Result<ThermalTimeGrid> Create(double period,double increment,std::uint32_t maximum);
std::uint32_t Count() const noexcept; double Time(std::uint32_t index) const noexcept; double Delta(std::uint32_t index) const noexcept;
private: ThermalTimeGrid(double p,double d,std::uint32_t n,bool close):period_(p),increment_(d),count_(n),close_(close){} double period_,increment_; std::uint32_t count_; bool close_; };
}
#endif