19 #ifndef TORC_COMMON_ENCAPSULATEDINTEGER_HPP
20 #define TORC_COMMON_ENCAPSULATEDINTEGER_HPP
22 #include "boost/functional/hash.hpp"
53 operator const T&(void)
const {
return m; }
55 operator T&(void) {
return m; }
70 #endif // TORC_COMMON_ENCAPSULATEDINTEGER_HPP
EncapsulatedInteger(void)
Null constructor.
friend std::size_t hash_value(const type &rhs)
Return a hash value for the specified encapsulated integer.
EncapsulatedInteger(const T &rhs)
Copy constructor.
type & operator=(const type &rhs)
Assignment operator (from encapsulated type).
static pod undefined(void)
EncapsulatedInteger(const type &rhs)
Copy constructor.
Template base for encapsulated integers, to enforce strong typing.
bool isUndefined(void) const
bool operator==(const type &rhs) const
Equality operator (against encapsulated type).
std::size_t hash_value(const Arc &inArc)
EncapsulatedInteger< T > type
Alias for the instantiated class type.
T pod
Alias for the encapsulated Plain-Old-Data type.