6 template<
typename Type>
12 static_assert(
sizeof(
Type) == 1 ||
sizeof(
Type) == 2 ||
sizeof(
Type) == 4 ||
sizeof(
Type) == 8,
"be_val invalid type size");
45 template<
typename Other>
bool operator == (
const Other &rhs)
const {
return value() ==
static_cast<Type>(rhs); }
46 template<
typename Other>
bool operator != (
const Other &rhs)
const {
return value() !=
static_cast<Type>(rhs); }
47 template<
typename Other>
bool operator >= (
const Other &rhs)
const {
return value() >=
static_cast<Type>(rhs); }
48 template<
typename Other>
bool operator <= (
const Other &rhs)
const {
return value() <=
static_cast<Type>(rhs); }
49 template<
typename Other>
bool operator > (
const Other &rhs)
const {
return value() >
static_cast<Type>(rhs); }
50 template<
typename Other>
bool operator < (
const Other &rhs)
const {
return value() <
static_cast<Type>(rhs); }
Type operator-(const Other &rhs) const
Definition: be_val.h:62
be_val & operator-=(const Other &rhs)
Definition: be_val.h:53
be_val & operator--()
Definition: be_val.h:41
Type operator/(const Other &rhs) const
Definition: be_val.h:64
bool operator==(const Other &rhs) const
Definition: be_val.h:45
Type operator+(const Other &rhs) const
Definition: be_val.h:61
bool operator!=(const Other &rhs) const
Definition: be_val.h:46
bool operator>(const Other &rhs) const
Definition: be_val.h:49
be_val(Type value)
Definition: be_val.h:18
Type mValue
Definition: be_val.h:71
be_val & operator^=(const Other &rhs)
Definition: be_val.h:59
be_val & operator/=(const Other &rhs)
Definition: be_val.h:55
be_val & operator++()
Definition: be_val.h:40
Type operator*(const Other &rhs) const
Definition: be_val.h:63
be_val operator++(int)
Definition: be_val.h:43
bool operator>=(const Other &rhs) const
Definition: be_val.h:47
be_val operator--(int)
Definition: be_val.h:42
be_val & operator+=(const Other &rhs)
Definition: be_val.h:52
std::enable_if_t< std::is_assignable< Type &, Other >::value, be_val & > operator=(const Other &rhs)
Definition: be_val.h:34
be_val & operator*=(const Other &rhs)
Definition: be_val.h:54
Type operator%(const Other &rhs) const
Definition: be_val.h:65
bool operator<=(const Other &rhs) const
Definition: be_val.h:48
Type byte_swap(Type src)
Definition: utils.h:97
be_val & operator&=(const Other &rhs)
Definition: be_val.h:58
Type value() const
Definition: be_val.h:23
Type operator &(const Other &rhs) const
Definition: be_val.h:67
Type operator|(const Other &rhs) const
Definition: be_val.h:66
GLsizei const GLfloat * value
Definition: glext.h:6709
bool operator<(const Other &rhs) const
Definition: be_val.h:50
be_val & operator%=(const Other &rhs)
Definition: be_val.h:56
Type
Type of JSON value.
Definition: rapidjson.h:603
Type operator^(const Other &rhs) const
Definition: be_val.h:68
be_val()
Definition: be_val.h:14
be_val & operator|=(const Other &rhs)
Definition: be_val.h:57