summaryrefslogtreecommitdiff
path: root/include/hashmember.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-10-20 14:25:24 -0700
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-10-20 14:25:24 -0700
commit87462517ca9ae8ece9ef3f97d3f105c72e74a4d7 (patch)
treeb1f53acdcb1e33a774cfea6e17b950c6db54f8a9 /include/hashmember.h
parent61ba30d716dab670a5f2ed0ee2f6650375b2058d (diff)
long types have been replaced with int16, int32 and int64 types to make code more readable and easier portable between architectures
longType and decimalType have been replace by numericType and floatType Many arithmetic operators have been added to the value class Solved various issues with copying and moving value objects
Diffstat (limited to 'include/hashmember.h')
-rw-r--r--include/hashmember.h26
1 files changed, 22 insertions, 4 deletions
diff --git a/include/hashmember.h b/include/hashmember.h
index 2724836..d476b55 100644
--- a/include/hashmember.h
+++ b/include/hashmember.h
@@ -71,12 +71,30 @@ public:
}
/**
- * Cast to a long
- * @return long
+ * Cast to a integer
+ * @return int16_t
*/
- operator long () const
+ operator int16_t () const
{
- return _base.get(_index).longValue();
+ return _base.get(_index).numericValue();
+ }
+
+ /**
+ * Cast to a integer
+ * @return int32_t
+ */
+ operator int32_t () const
+ {
+ return _base.get(_index).numericValue();
+ }
+
+ /**
+ * Cast to a integer
+ * @return int64_t
+ */
+ operator int64_t () const
+ {
+ return _base.get(_index).numericValue();
}
/**