35 #ifndef _BLAZE_UTIL_UNSIGNEDVALUE_H_
36 #define _BLAZE_UTIL_UNSIGNEDVALUE_H_
63 template<
typename T >
90 inline operator T()
const;
131 template<
typename T >
152 template<
typename T >
174 template<
typename T >
195 template<
typename T >
214 template<
typename T1,
typename T2 >
217 template<
typename T1,
typename T2 >
220 template<
typename T1,
typename T2 >
221 inline bool operator< ( const UnsignedValue<T1>& lhs,
const UnsignedValue<T2>& rhs );
223 template<
typename T1,
typename T2 >
226 template<
typename T1,
typename T2 >
227 inline bool operator<=( const UnsignedValue<T1>& lhs,
const UnsignedValue<T2>& rhs );
229 template<
typename T1,
typename T2 >
232 template<
typename T >
233 inline std::ostream& operator<<( std::ostream& os, const UnsignedValue<T>& uv );
235 template<
typename T >
248 template<
typename T1
252 return lhs.
get() == rhs.
get();
264 template<
typename T1
268 return lhs.
get() != rhs.
get();
280 template<
typename T1
284 return lhs.
get() < rhs.get();
296 template<
typename T1
300 return lhs.
get() > rhs.
get();
312 template<
typename T1
316 return lhs.
get() <= rhs.get();
328 template<
typename T1
332 return lhs.
get() >= rhs.
get();
344 template<
typename T >
345 inline std::ostream& operator<<( std::ostream& os, const UnsignedValue<T>& uv )
347 return os << uv.get();
364 template<
typename T >
368 const std::istream::pos_type pos( is.tellg() );
374 if( is.peek() ==
'-' || !(is >> tmp) )
378 is.setstate( std::istream::failbit );
UnsignedValue(T value=0)
The default constructor for UnsignedInt.
Definition: UnsignedValue.h:132
bool operator>(const NegativeAccuracy< A > &lhs, const T &rhs)
Greater-than comparison between a NegativeAccuracy object and a floating point value.
Definition: Accuracy.h:366
bool operator>=(const NegativeAccuracy< A > &, const T &rhs)
Greater-or-equal-than comparison between a NegativeAccuracy object and a floating point value...
Definition: Accuracy.h:442
#define BLAZE_CONSTRAINT_MUST_BE_UNSIGNED_TYPE(T)
Constraint on the data type.In case the given data type T is not an unsigned integral data type...
Definition: Unsigned.h:79
std::istream & operator>>(std::istream &is, InputString &str)
Global input operator for the InputString class.
Definition: InputString.h:392
T value_
The wrapped built-in unsigned integral value.
Definition: UnsignedValue.h:105
T get() const
Access to the wrapped built-in unsigned integral value.
Definition: UnsignedValue.h:196
Constraint on the data type.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
UnsignedValue & operator=(T value)
Assignment of a built-in unsigned integral value.
Definition: UnsignedValue.h:153
Implementation of a wrapper for built-in unsigned integral values.This class wraps a value of built-i...
Definition: UnsignedValue.h:64
bool operator==(const NegativeAccuracy< A > &lhs, const T &rhs)
Equality comparison between a NegativeAccuracy object and a floating point value. ...
Definition: Accuracy.h:249
bool operator!=(const NegativeAccuracy< A > &lhs, const T &rhs)
Inequality comparison between a NegativeAccuracy object and a floating point value.
Definition: Accuracy.h:289