35 #ifndef _BLAZE_UTIL_UNSIGNEDVALUE_H_ 36 #define _BLAZE_UTIL_UNSIGNEDVALUE_H_ 62 template<
typename T >
89 inline operator T()
const;
130 template<
typename T >
151 template<
typename T >
173 template<
typename T >
194 template<
typename T >
213 template<
typename T1,
typename T2 >
216 template<
typename T1,
typename T2 >
219 template<
typename T1,
typename T2 >
220 inline bool operator< ( const UnsignedValue<T1>& lhs,
const UnsignedValue<T2>& rhs );
222 template<
typename T1,
typename T2 >
225 template<
typename T1,
typename T2 >
226 inline bool operator<=( const UnsignedValue<T1>& lhs,
const UnsignedValue<T2>& rhs );
228 template<
typename T1,
typename T2 >
231 template<
typename T >
232 inline std::ostream& operator<<( std::ostream& os, const UnsignedValue<T>& uv );
234 template<
typename T >
247 template<
typename T1
251 return lhs.
get() == rhs.
get();
263 template<
typename T1
267 return lhs.
get() != rhs.
get();
279 template<
typename T1
283 return lhs.
get() < rhs.
get();
295 template<
typename T1
299 return lhs.
get() > rhs.
get();
311 template<
typename T1
315 return lhs.
get() <= rhs.
get();
327 template<
typename T1
331 return lhs.
get() >= rhs.
get();
343 template<
typename T >
344 inline std::ostream& operator<<( std::ostream& os, const UnsignedValue<T>& uv )
346 return os << uv.
get();
363 template<
typename T >
367 const std::istream::pos_type pos( is.tellg() );
373 if( is.peek() ==
'-' || !(is >> tmp) )
377 is.setstate( std::istream::failbit );
std::istream & operator>>(std::istream &is, UnsignedValue< T > &uv)
Global input operator for the UnsignedValue wrapper.
Definition: UnsignedValue.h:364
UnsignedValue(T value=0)
The default constructor for UnsignedInt.
Definition: UnsignedValue.h:131
#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:61
T value_
The wrapped built-in unsigned integral value.
Definition: UnsignedValue.h:104
Constraint on the data type.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
constexpr bool operator>(const NegativeAccuracy< A > &lhs, const T &rhs)
Greater-than comparison between a NegativeAccuracy object and a floating point value.
Definition: Accuracy.h:367
constexpr 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:443
constexpr bool operator==(const NegativeAccuracy< A > &lhs, const T &rhs)
Equality comparison between a NegativeAccuracy object and a floating point value. ...
Definition: Accuracy.h:250
UnsignedValue & operator=(T value)
Assignment of a built-in unsigned integral value.
Definition: UnsignedValue.h:152
constexpr bool operator!=(const NegativeAccuracy< A > &lhs, const T &rhs)
Inequality comparison between a NegativeAccuracy object and a floating point value.
Definition: Accuracy.h:290
T get() const
Access to the wrapped built-in unsigned integral value.
Definition: UnsignedValue.h:195
Implementation of a wrapper for built-in unsigned integral values.This class wraps a value of built-i...
Definition: UnsignedValue.h:63