Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BitMask< WordType, num_bits > Class Template Reference

#include <bitMask.h>

List of all members.

Public Member Functions

INLINE void generate_hash (ChecksumHashGenerator &hashgen) const

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Private Member Functions

INLINE BitMask (WordType init_value)
INLINE BitMask (const BitMask< WordType, num_bits > &copy)
INLINE void operator= (const BitMask< WordType, num_bits > &copy)
INLINE ~BitMask ()
INLINE int get_num_bits () const
INLINE bool get_bit (int index) const
INLINE void set_bit (int index)
INLINE void clear_bit (int index)
INLINE void set_bit_to (int index, bool value)
INLINE bool is_zero () const
INLINE WordType extract (int low_bit, int size) const
INLINE void store (WordType value, int low_bit, int size)
INLINE WordType get_word () const
INLINE void set_word (WordType value)
INLINE void invert_in_place ()
INLINE void clear ()
void output (ostream &out) const
void output_binary (ostream &out, int spaces_every=4) const
void output_hex (ostream &out, int spaces_every=4) const
void write (ostream &out, int indent_level=0) const
INLINE bool operator== (const BitMask< WordType, num_bits > &other) const
INLINE bool operator!= (const BitMask< WordType, num_bits > &other) const
INLINE bool operator< (const BitMask< WordType, num_bits > &other) const
INLINE int compare_to (const BitMask< WordType, num_bits > &other) const
INLINE BitMask< WordType,
num_bits > 
operator & (const BitMask< WordType, num_bits > &other) const
INLINE BitMask< WordType,
num_bits > 
operator| (const BitMask< WordType, num_bits > &other) const
INLINE BitMask< WordType,
num_bits > 
operator^ (const BitMask< WordType, num_bits > &other) const
INLINE BitMask< WordType,
num_bits > 
operator~ () const
INLINE BitMask< WordType,
num_bits > 
operator<< (int shift) const
INLINE BitMask< WordType,
num_bits > 
operator>> (int shift) const
INLINE void operator &= (const BitMask< WordType, num_bits > &other)
INLINE void operator|= (const BitMask< WordType, num_bits > &other)
INLINE void operator^= (const BitMask< WordType, num_bits > &other)
INLINE void operator<<= (int shift)
INLINE void operator>>= (int shift)

Static Private Member Functions

INLINE BitMask< WordType,
num_bits > 
all_on ()
INLINE BitMask< WordType,
num_bits > 
all_off ()
INLINE BitMask< WordType,
num_bits > 
lower_on (int on_bits)
INLINE BitMask< WordType,
num_bits > 
bit (int index)

Private Attributes

PUBLISHED __pad0__: INLINE BitMask()
WordType _word

Static Private Attributes

TypeHandle _type_handle

template<class WordType, int num_bits>
class BitMask< WordType, num_bits >


Constructor & Destructor Documentation

template<class WordType, int num_bits>
INLINE BitMask< WordType, num_bits >::BitMask WordType  init_value  )  [private]
 

template<class WordType, int num_bits>
INLINE BitMask< WordType, num_bits >::BitMask const BitMask< WordType, num_bits > &  copy  )  [private]
 

template<class WordType, int num_bits>
INLINE BitMask< WordType, num_bits >::~BitMask  )  [private]
 


Member Function Documentation

template<class WordType, int num_bits>
INLINE BitMask<WordType, num_bits> BitMask< WordType, num_bits >::all_off  )  [static, private]
 

template<class WordType, int num_bits>
INLINE BitMask<WordType, num_bits> BitMask< WordType, num_bits >::all_on  )  [static, private]
 

template<class WordType, int num_bits>
INLINE BitMask<WordType, num_bits> BitMask< WordType, num_bits >::bit int  index  )  [static, private]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::clear  )  [private]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::clear_bit int  index  )  [private]
 

template<class WordType, int num_bits>
INLINE int BitMask< WordType, num_bits >::compare_to const BitMask< WordType, num_bits > &  other  )  const [private]
 

template<class WordType, int num_bits>
INLINE WordType BitMask< WordType, num_bits >::extract int  low_bit,
int  size
const [private]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::generate_hash ChecksumHashGenerator hashgen  )  const
 

template<class WordType, int num_bits>
INLINE bool BitMask< WordType, num_bits >::get_bit int  index  )  const [private]
 

template<class WordType, int num_bits>
TypeHandle BitMask< WordType, num_bits >::get_class_type void   )  [inline, static]
 

Definition at line 108 of file bitMask.h.

template<class WordType, int num_bits>
INLINE int BitMask< WordType, num_bits >::get_num_bits  )  const [private]
 

template<class WordType, int num_bits>
INLINE WordType BitMask< WordType, num_bits >::get_word  )  const [private]
 

template<class WordType, int num_bits>
void BitMask< WordType, num_bits >::init_type  )  [static]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::invert_in_place  )  [private]
 

template<class WordType, int num_bits>
INLINE bool BitMask< WordType, num_bits >::is_zero  )  const [private]
 

template<class WordType, int num_bits>
INLINE BitMask<WordType, num_bits> BitMask< WordType, num_bits >::lower_on int  on_bits  )  [static, private]
 

template<class WordType, int num_bits>
INLINE BitMask<WordType, num_bits> BitMask< WordType, num_bits >::operator & const BitMask< WordType, num_bits > &  other  )  const [private]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::operator &= const BitMask< WordType, num_bits > &  other  )  [private]
 

template<class WordType, int num_bits>
INLINE bool BitMask< WordType, num_bits >::operator!= const BitMask< WordType, num_bits > &  other  )  const [private]
 

template<class WordType, int num_bits>
INLINE bool BitMask< WordType, num_bits >::operator< const BitMask< WordType, num_bits > &  other  )  const [private]
 

template<class WordType, int num_bits>
INLINE BitMask<WordType, num_bits> BitMask< WordType, num_bits >::operator<< int  shift  )  const [private]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::operator<<= int  shift  )  [private]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::operator= const BitMask< WordType, num_bits > &  copy  )  [private]
 

template<class WordType, int num_bits>
INLINE bool BitMask< WordType, num_bits >::operator== const BitMask< WordType, num_bits > &  other  )  const [private]
 

template<class WordType, int num_bits>
INLINE BitMask<WordType, num_bits> BitMask< WordType, num_bits >::operator>> int  shift  )  const [private]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::operator>>= int  shift  )  [private]
 

template<class WordType, int num_bits>
INLINE BitMask<WordType, num_bits> BitMask< WordType, num_bits >::operator^ const BitMask< WordType, num_bits > &  other  )  const [private]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::operator^= const BitMask< WordType, num_bits > &  other  )  [private]
 

template<class WordType, int num_bits>
INLINE BitMask<WordType, num_bits> BitMask< WordType, num_bits >::operator| const BitMask< WordType, num_bits > &  other  )  const [private]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::operator|= const BitMask< WordType, num_bits > &  other  )  [private]
 

template<class WordType, int num_bits>
INLINE BitMask<WordType, num_bits> BitMask< WordType, num_bits >::operator~  )  const [private]
 

template<class WordType, int num_bits>
void BitMask< WordType, num_bits >::output ostream &  out  )  const [private]
 

template<class WordType, int num_bits>
void BitMask< WordType, num_bits >::output_binary ostream &  out,
int  spaces_every = 4
const [private]
 

template<class WordType, int num_bits>
void BitMask< WordType, num_bits >::output_hex ostream &  out,
int  spaces_every = 4
const [private]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::set_bit int  index  )  [private]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::set_bit_to int  index,
bool  value
[private]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::set_word WordType  value  )  [private]
 

template<class WordType, int num_bits>
INLINE void BitMask< WordType, num_bits >::store WordType  value,
int  low_bit,
int  size
[private]
 

template<class WordType, int num_bits>
void BitMask< WordType, num_bits >::write ostream &  out,
int  indent_level = 0
const [private]
 


Member Data Documentation

template<class WordType, int num_bits>
PUBLISHED BitMask< WordType, num_bits >::__pad0__ [private]
 

Definition at line 40 of file bitMask.h.

template<class WordType, int num_bits>
TypeHandle BitMask< WordType, num_bits >::_type_handle [static, private]
 

Definition at line 114 of file bitMask.h.

Referenced by BitMask< PN_uint32, 32 >::get_class_type().

template<class WordType, int num_bits>
WordType BitMask< WordType, num_bits >::_word [private]
 

Definition at line 105 of file bitMask.h.


The documentation for this class was generated from the following file:
Generated on Fri Apr 18 00:11:23 2003 for Panda by doxygen1.3