Commit Graph

7 Commits

Author SHA1 Message Date
Tomasz Grabiec
5d92ef267a types: Expand the interface of abstract_type 2015-02-04 10:29:00 +01:00
Tomasz Grabiec
25cdd44144 types: Fix compare_unsigned()
In lexicographical order length is compared second.
2015-02-04 10:28:51 +01:00
Tomasz Grabiec
22b7010c6d types: Introduce non-polymorphic serialization/deserialization helper functions
All usages I could find which deserialize value are
non-polymorphic. So there is no need to use boost::any() indirection
and polymorphic calls in most, if not all, cases.

Let the type class define deserialize_value/serialize_value
non-polymorphic members which work direclty on "value_type" and not
boost::any.
2015-01-29 15:02:27 +01:00
Tomasz Grabiec
37ef4bf635 types: Rename simple_compare to serialized_compare
To be in line with serialized_equal and serialized_hash
2015-01-29 15:02:27 +01:00
Tomasz Grabiec
65d2707794 types: Add support for equality and hashing of serialized values 2015-01-29 15:02:27 +01:00
Tomasz Grabiec
c14891adfd types: Mark is_byte_order_comparable() as const 2015-01-29 15:02:26 +01:00
Tomasz Grabiec
17b9babd91 Extract types related stuff from database.{cc,hh} to types.{cc,hh} 2015-01-29 15:02:19 +01:00