26 lines
No EOL
692 B
C++
26 lines
No EOL
692 B
C++
|
|
#pragma once
|
|
|
|
#include "core/Object.hpp"
|
|
|
|
namespace obj {
|
|
|
|
struct FloatObject : Object {
|
|
tp::alnf val;
|
|
|
|
static ObjectType TypeData;
|
|
static ObjectTypeAriphmetics TypeAriphm;
|
|
|
|
|
|
static void constructor(FloatObject* self);
|
|
static void copy(FloatObject* self, const FloatObject* in);
|
|
static FloatObject* create(tp::alnf in);
|
|
|
|
static void from_int(FloatObject* self, tp::alni in);
|
|
static void from_float(FloatObject* self, tp::alnf in);
|
|
static void from_string(FloatObject* self, const std::string& in);
|
|
static std::string to_string(FloatObject* self);
|
|
static tp::alni to_int(FloatObject* self);
|
|
static tp::alnf to_float(FloatObject* self);
|
|
};
|
|
}; |