torc-master
|
Template base for encapsulated integers, to enforce strong typing. More...
#include <EncapsulatedInteger.hpp>
Public Types | |
typedef EncapsulatedInteger< T > | type |
Alias for the instantiated class type. More... | |
typedef T | pod |
Alias for the encapsulated Plain-Old-Data type. More... | |
Public Member Functions | |
EncapsulatedInteger (void) | |
Null constructor. More... | |
EncapsulatedInteger (const type &rhs) | |
Copy constructor. More... | |
EncapsulatedInteger (const T &rhs) | |
Copy constructor. More... | |
type & | operator= (const type &rhs) |
Assignment operator (from encapsulated type). More... | |
type & | operator= (const T &rhs) |
Assignment operator. More... | |
bool | operator== (const type &rhs) const |
Equality operator (against encapsulated type). More... | |
bool | operator== (const T &rhs) const |
Equality operator. More... | |
operator const T & (void) const | |
Constant cast operator. More... | |
operator T & (void) | |
Non-constant cast operator. More... | |
bool | isUndefined (void) const |
Static Public Member Functions | |
static pod | undefined (void) |
Protected Attributes | |
T | m |
Encapsulated integer. More... | |
Friends | |
std::size_t | hash_value (const type &rhs) |
Return a hash value for the specified encapsulated integer. More... | |
Template base for encapsulated integers, to enforce strong typing.
Definition at line 28 of file EncapsulatedInteger.hpp.
typedef T torc::common::EncapsulatedInteger< T >::pod |
Alias for the encapsulated Plain-Old-Data type.
Definition at line 35 of file EncapsulatedInteger.hpp.
typedef EncapsulatedInteger<T> torc::common::EncapsulatedInteger< T >::type |
Alias for the instantiated class type.
Definition at line 34 of file EncapsulatedInteger.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 61 of file EncapsulatedInteger.hpp.
|
inline |
|
inline |
|
inline |
Assignment operator (from encapsulated type).
Definition at line 45 of file EncapsulatedInteger.hpp.
|
inline |
|
inline |
Equality operator (against encapsulated type).
Definition at line 49 of file EncapsulatedInteger.hpp.
|
inline |
|
inlinestatic |
Definition at line 60 of file EncapsulatedInteger.hpp.
|
friend |
Return a hash value for the specified encapsulated integer.
Definition at line 58 of file EncapsulatedInteger.hpp.
|
protected |
Encapsulated integer.
Definition at line 31 of file EncapsulatedInteger.hpp.