5 #ifndef JODA_CONSTANTNUMBER_H
6 #define JODA_CONSTANTNUMBER_H
27 std::vector<std::unique_ptr<IValueProvider>> &¶meters)
29 if (parameters.size() != 0) {
35 :
AtomProvider<typename Calc::AtomType>(Calc::value()) {}
37 std::string
getName()
const override {
return std::string(Calc::name); }
49 static constexpr
auto name =
"PI";
51 static constexpr
auto value() {
return M_PI; }
61 static constexpr
auto name =
"NOW";
64 auto ms = std::chrono::duration_cast<std::chrono::milliseconds>(
65 std::chrono::system_clock::now().time_since_epoch());
#define CREATE_FACTORY(FCLASS)
Definition: IValueProvider.h:20
Definition: AtomProvider.h:22
Definition: ConstantNumber.h:24
std::string getName() const override
Definition: ConstantNumber.h:37
ConstantNumber()
Definition: ConstantNumber.h:34
std::string toString() const override
Definition: ConstantNumber.h:39
ConstantNumber(std::vector< std::unique_ptr< IValueProvider >> &¶meters)
Definition: ConstantNumber.h:26
Definition: IValueProvider.h:96
Definition: AttributeStatAggregator.h:12
ConstantNumber< PiConstantFunction > PiProvider
Definition: ConstantNumber.h:54
ConstantNumber< NowConstantFunction > NowProvider
Definition: ConstantNumber.h:70
Definition: ConstantNumber.h:59
uint64_t AtomType
Definition: ConstantNumber.h:60
static auto value()
Definition: ConstantNumber.h:63
static constexpr auto name
Definition: ConstantNumber.h:61
Definition: ConstantNumber.h:47
static constexpr auto name
Definition: ConstantNumber.h:49
static constexpr auto value()
Definition: ConstantNumber.h:51
double AtomType
Definition: ConstantNumber.h:48