1 #ifndef INCLUDED_ObjexxFCL_ubyte_hh
2 #define INCLUDED_ObjexxFCL_ubyte_hh
48 ubyte(
unsigned short int const i ) :
64 operator unsigned short int()
const
66 return static_cast< unsigned short int >(
b_ );
142 ubyte const old( *
this );
163 ubyte const old( *
this );
186 return ubyte( -static_cast< unsigned short int >(
b_ ) );
257 return ubyte(
b_ >> static_cast< unsigned short int >( n ) );
275 return ubyte(
b_ << static_cast< unsigned short int >( n ) );
348 return ( i.
b_ == j.
b_ );
358 return ( i.
b_ != j.
b_ );
368 return ( i.
b_ < j.
b_ );
378 return ( i.
b_ <= j.
b_ );
388 return ( i.
b_ > j.
b_ );
398 return ( i.
b_ >= j.
b_ );
412 unsigned short int s;
511 #endif // INCLUDED_ObjexxFCL_ubyte_HH
std::istream & operator>>(std::istream &stream, byte &b)
Stream Input.
friend ubyte operator|(ubyte const &i, ubyte const &j)
ubyte | ubyte
friend bool operator==(ubyte const &i, ubyte const &j)
ubyte == ubyte
ubyte(unsigned short int const i)
Constructor.
bool operator!=(byte const &i, byte const &j)
byte != byte
friend bool operator<(ubyte const &i, ubyte const &j)
ubyte < ubyte
friend bool operator>=(ubyte const &i, ubyte const &j)
ubyte >= ubyte
bool operator>=(byte const &i, byte const &j)
byte >= byte
byte operator&(byte const &i, byte const &j)
byte & byte
ubyte & operator/=(unsigned short int const i)
/= short
friend bool operator<=(ubyte const &i, ubyte const &j)
ubyte <= ubyte
ubyte & operator-=(unsigned short int const i)
-= short
bool operator<=(byte const &i, byte const &j)
byte <= byte
ubyte operator~() const
~ubyte
byte operator-(byte const &i, byte const &j)
byte - byte
ubyte & operator--()
–ubyte
ubyte operator+() const
+ubyte
ubyte operator<<(std::size_t const n) const
ubyte << std::size_t
byte operator+(byte const &i, byte const &j)
byte + byte
friend ubyte operator*(ubyte const &i, ubyte const &j)
ubyte * ubyte
byte operator^(byte const &i, byte const &j)
byte ^ byte
friend bool operator>(ubyte const &i, ubyte const &j)
ubyte > ubyte
ubyte & operator++()
++ubyte
ubyte & operator|=(ubyte const &i)
|= ubyte
ubyte & operator^=(ubyte const &i)
^= ubyte
friend ubyte operator&(ubyte const &i, ubyte const &j)
ubyte & ubyte
ubyte & operator*=(unsigned short int const i)
*= short
byte operator|(byte const &i, byte const &j)
byte | byte
bool operator>(byte const &i, byte const &j)
byte > byte
ubyte()
Default Constructor.
ubyte & operator+=(unsigned short int const i)
+= short
ubyte & operator&=(ubyte const &i)
&= ubyte
bool operator<(byte const &i, byte const &j)
byte < byte
friend ubyte operator^(ubyte const &i, ubyte const &j)
ubyte ^ ubyte
byte operator*(byte const &i, byte const &j)
byte * byte
friend bool operator!=(ubyte const &i, ubyte const &j)
ubyte != ubyte
bool operator==(byte const &i, byte const &j)
byte == byte
friend ubyte operator/(ubyte const &i, ubyte const &j)
ubyte / ubyte
ubyte operator-() const
-ubyte
ubyte operator>>(std::size_t const n) const
ubyte >> std::size_t
ubyte & operator=(unsigned short int const i)
= short
byte operator/(byte const &i, byte const &j)
byte / byte