generic type_wrapper class More...
#include <type_wrapper.hh>
Public Member Functions | |
type_wrapper () | |
default constructor | |
type_wrapper (const T &i) | |
conversion constructor | |
type_wrapper (const type_wrapper &idx) | |
copy constructor | |
const T & | val () const |
casting to T | |
bool | operator== (const type_wrapper &x) const |
equal | |
bool | operator!= (const type_wrapper &x) const |
inequal | |
bool | operator<= (const type_wrapper &x) const |
less equal | |
bool | operator< (const type_wrapper &x) const |
less | |
bool | operator>= (const type_wrapper &x) const |
greater equal | |
bool | operator> (const type_wrapper &x) const |
greater | |
type_wrapper | operator+ (const type_wrapper &x) const |
add | |
type_wrapper | operator- (const type_wrapper &x) const |
subtract | |
type_wrapper | operator+ (const T &x) const |
add | |
type_wrapper | operator- (const T &x) const |
subtract | |
const type_wrapper & | operator++ () |
prefix increment | |
const type_wrapper & | operator-- () |
prefix decrement | |
const type_wrapper & | operator++ (int) |
postfix increment | |
const type_wrapper & | operator-- (int) |
postfix decrement |
generic type_wrapper class
wrap a comparable type with +/- operations
bool LocARNA::type_wrapper< T >::operator!= | ( | const type_wrapper< T > & | x | ) | const [inline] |
inequal
x |
type_wrapper LocARNA::type_wrapper< T >::operator+ | ( | const type_wrapper< T > & | x | ) | const [inline] |
add
x |
type_wrapper LocARNA::type_wrapper< T >::operator+ | ( | const T & | x | ) | const [inline] |
add
x |
const type_wrapper& LocARNA::type_wrapper< T >::operator++ | ( | ) | [inline] |
prefix increment
const type_wrapper& LocARNA::type_wrapper< T >::operator++ | ( | int | ) | [inline] |
postfix increment
type_wrapper LocARNA::type_wrapper< T >::operator- | ( | const type_wrapper< T > & | x | ) | const [inline] |
subtract
x |
type_wrapper LocARNA::type_wrapper< T >::operator- | ( | const T & | x | ) | const [inline] |
subtract
x |
const type_wrapper& LocARNA::type_wrapper< T >::operator-- | ( | ) | [inline] |
prefix decrement
const type_wrapper& LocARNA::type_wrapper< T >::operator-- | ( | int | ) | [inline] |
postfix decrement
bool LocARNA::type_wrapper< T >::operator< | ( | const type_wrapper< T > & | x | ) | const [inline] |
less
x |
bool LocARNA::type_wrapper< T >::operator<= | ( | const type_wrapper< T > & | x | ) | const [inline] |
less equal
x |
bool LocARNA::type_wrapper< T >::operator== | ( | const type_wrapper< T > & | x | ) | const [inline] |
equal
x |
bool LocARNA::type_wrapper< T >::operator> | ( | const type_wrapper< T > & | x | ) | const [inline] |
greater
x |
bool LocARNA::type_wrapper< T >::operator>= | ( | const type_wrapper< T > & | x | ) | const [inline] |
greater equal
x |
const T& LocARNA::type_wrapper< T >::val | ( | ) | const [inline] |
casting to T