let's try operator WType
This commit is contained in:
parent
4818adb5ed
commit
0b4654d512
|
|
@ -821,6 +821,18 @@ operator >>= (int shift) {
|
|||
_word >>= shift;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: BitMask::operator WType
|
||||
// Access: Published
|
||||
// Description: Used to cast this BitMask back into the
|
||||
// underlying integer type.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
template<class WType, int nbits>
|
||||
INLINE BitMask<WType, nbits>::
|
||||
operator WType () const {
|
||||
return _word;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: BitMask::get_key
|
||||
// Access: Published
|
||||
|
|
|
|||
|
|
@ -118,6 +118,8 @@ PUBLISHED:
|
|||
INLINE void operator <<= (int shift);
|
||||
INLINE void operator >>= (int shift);
|
||||
|
||||
INLINE operator WType () const;
|
||||
|
||||
INLINE void flood_down_in_place();
|
||||
INLINE void flood_up_in_place();
|
||||
INLINE BitMask<WType, nbits> flood_bits_down() const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue