summaryrefslogtreecommitdiffstats
path: root/src/UInt.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/UInt.vala')
-rw-r--r--src/UInt.vala28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/UInt.vala b/src/UInt.vala
index a7ea4f8..84e09aa 100644
--- a/src/UInt.vala
+++ b/src/UInt.vala
@@ -1,7 +1,33 @@
namespace Eva {
- public class UInt : Object, Term {
+ public class UInt : Object, Term, Numeric {
public ulong value {get; construct;}
+ public int int_value {
+ get {
+ return (int)value;
+ }
+ }
+ public uint uint_value {
+ get {
+ return (uint)value;
+ }
+ }
+ public long long_value {
+ get {
+ return (long)value;
+ }
+ }
+ public ulong ulong_value {
+ get {
+ return value;
+ }
+ }
+ public double double_value {
+ get {
+ return value;
+ }
+ }
+
public UInt(ulong v) {
Object(value: v);
}