6 #include "knowrob/terms/Numeric.h"
7 #include "knowrob/integration/python/utils.h"
16 static auto trueAtom = std::make_shared<Boolean>(
true);
21 static auto falseAtom = std::make_shared<Boolean>(
false);
29 class_<Numeric, std::shared_ptr<Numeric>, bases<XSDAtomic>, boost::noncopyable>
33 class_<Double, std::shared_ptr<Double>, bases<Numeric>>
34 (
"Double", init<double>())
35 .def(init<std::string_view>())
38 class_<Float, std::shared_ptr<Float>, bases<Numeric>>
39 (
"Float", init<float>())
40 .def(init<std::string_view>())
43 class_<Integer, std::shared_ptr<Integer>, bases<Numeric>>
44 (
"Integer", init<int>())
45 .def(init<std::string_view>())
48 class_<Long, std::shared_ptr<Long>, bases<Numeric>>
49 (
"Long", init<long>())
50 .def(init<std::string_view>())
53 class_<Short, std::shared_ptr<Short>, bases<Numeric>>
54 (
"Short", init<short>())
55 .def(init<std::string_view>())
static std::shared_ptr< Numeric > trueAtom()
bool isFloatingNumber() const
virtual bool isSameNumeric(const Numeric &other) const =0
static std::shared_ptr< Numeric > falseAtom()
std::string_view stringForm() const override
void createType< Numeric >()