library of assembled shared sources |
http://lass.cocamware.com |
#include <modulo.h>
Data Structures | |
struct | Rebind |
Public Types | |
typedef Modulo< N, T > | TSelf |
typedef util::CallTraits< T > ::TValue | TValue |
typedef util::CallTraits< T > ::TParam | TParam |
Public Member Functions | |
Modulo (TParam iValue=0) | |
Modulo< N, T > | operator+ () const |
Modulo< N, T > | operator- () const |
Modulo< N, T > & | operator++ () |
Modulo< N, T > & | operator-- () |
Modulo< N, T > | operator++ (int) |
Modulo< N, T > | operator-- (int) |
Modulo< N, T > & | operator+= (const Modulo< N, T > &iB) |
Modulo< N, T > & | operator-= (const Modulo< N, T > &iB) |
Modulo< N, T > & | operator*= (const Modulo< N, T > &iB) |
Modulo< N, T > & | operator/= (const Modulo< N, T > &iB) |
operator T () const | |
TParam | value () const |
Private Member Functions | |
bool | isInRange (TParam iValue) const |
Private Attributes | |
TValue | value_ |
Definition at line 66 of file modulo.h.
typedef Modulo<N, T> lass::num::Modulo< N, T >::TSelf |
typedef util::CallTraits<T>::TValue lass::num::Modulo< N, T >::TValue |
typedef util::CallTraits<T>::TParam lass::num::Modulo< N, T >::TParam |
lass::num::Modulo< N, T >::Modulo | ( | TParam | iValue = 0 |
) | [inline] |
Modulo< N, T > lass::num::Modulo< N, T >::operator+ | ( | ) | const [inline] |
Definition at line 71 of file modulo.inl.
Modulo< N, T > lass::num::Modulo< N, T >::operator- | ( | ) | const [inline] |
Modulo< N, T > & lass::num::Modulo< N, T >::operator++ | ( | ) | [inline] |
Definition at line 87 of file modulo.inl.
References lass::num::Modulo< N, T >::isInRange(), LASS_ASSERT, and lass::num::Modulo< N, T >::value_.
Modulo< N, T > & lass::num::Modulo< N, T >::operator-- | ( | ) | [inline] |
Definition at line 101 of file modulo.inl.
References lass::num::Modulo< N, T >::isInRange(), LASS_ASSERT, and lass::num::Modulo< N, T >::value_.
Modulo< N, T > lass::num::Modulo< N, T >::operator++ | ( | int | ) | [inline] |
Definition at line 115 of file modulo.inl.
Modulo< N, T > lass::num::Modulo< N, T >::operator-- | ( | int | ) | [inline] |
Definition at line 125 of file modulo.inl.
Modulo< N, T > & lass::num::Modulo< N, T >::operator+= | ( | const Modulo< N, T > & | iB | ) | [inline] |
Definition at line 135 of file modulo.inl.
References lass::num::Modulo< N, T >::isInRange(), LASS_ASSERT, and lass::num::Modulo< N, T >::value_.
Modulo< N, T > & lass::num::Modulo< N, T >::operator-= | ( | const Modulo< N, T > & | iB | ) | [inline] |
Definition at line 149 of file modulo.inl.
References lass::num::Modulo< N, T >::isInRange(), LASS_ASSERT, and lass::num::Modulo< N, T >::value_.
Modulo< N, T > & lass::num::Modulo< N, T >::operator*= | ( | const Modulo< N, T > & | iB | ) | [inline] |
Definition at line 163 of file modulo.inl.
References lass::num::Modulo< N, T >::isInRange(), LASS_ASSERT, lass::num::mod(), and lass::num::Modulo< N, T >::value_.
Modulo< N, T > & lass::num::Modulo< N, T >::operator/= | ( | const Modulo< N, T > & | iB | ) | [inline] |
Definition at line 174 of file modulo.inl.
References lass::num::Modulo< N, T >::isInRange(), LASS_ASSERT, lass::num::mod(), and lass::num::Modulo< N, T >::value_.
lass::num::Modulo< N, T >::operator T | ( | ) | const [inline] |
Modulo< N, T >::TParam lass::num::Modulo< N, T >::value | ( | ) | const [inline] |
Definition at line 193 of file modulo.inl.
References lass::num::Modulo< N, T >::value_.
Referenced by lass::num::operator==().
bool lass::num::Modulo< N, T >::isInRange | ( | TParam | iValue | ) | const [inline, private] |
Definition at line 207 of file modulo.inl.
Referenced by lass::num::Modulo< N, T >::operator*=(), lass::num::Modulo< N, T >::operator++(), lass::num::Modulo< N, T >::operator+=(), lass::num::Modulo< N, T >::operator--(), lass::num::Modulo< N, T >::operator-=(), and lass::num::Modulo< N, T >::operator/=().
TValue lass::num::Modulo< N, T >::value_ [private] |
Definition at line 103 of file modulo.h.
Referenced by lass::num::Modulo< N, T >::operator T(), lass::num::Modulo< N, T >::operator*=(), lass::num::Modulo< N, T >::operator++(), lass::num::Modulo< N, T >::operator+=(), lass::num::Modulo< N, T >::operator-(), lass::num::Modulo< N, T >::operator--(), lass::num::Modulo< N, T >::operator-=(), lass::num::Modulo< N, T >::operator/=(), and lass::num::Modulo< N, T >::value().
Generated on Mon Nov 10 14:22:10 2008 for Library of Assembled Shared Sources by 1.5.7.1 |