Lines Matching defs:wxBitset
15 // wxBitset should be applied to an enum, then this can be used like
21 template <class T> class wxBitset
25 // creates a wxBitset<> object with all flags initialized to 0
26 wxBitset() { m_data = 0; }
28 // created a wxBitset<> object initialized according to the bits of the
30 wxBitset(unsigned long val) { m_data = val ; }
32 // copies the content in the new wxBitset<> object from another one
33 wxBitset(const wxBitset &src) { m_data = src.m_data; }
35 // creates a wxBitset<> object that has the specific flag set
36 wxBitset(const T el) { m_data |= 1 << el; }
42 wxBitset &operator =(const wxBitset &rhs)
50 wxBitset &operator |=(const wxBitset &rhs)
58 wxBitset &operator ^=(const wxBitset &rhs) // difference
66 wxBitset &operator &=(const wxBitset &rhs) // intersection
74 wxBitset operator |(const wxBitset &bitset2) const // union
76 wxBitset<T> s;
83 wxBitset operator ^(const wxBitset &bitset2) const // difference
85 wxBitset<T> s;
92 wxBitset operator &(const wxBitset &bitset2) const // intersection
94 wxBitset<T> s;
100 wxBitset& set(const T el) //Add element
107 wxBitset& reset(const T el) //remove element
114 wxBitset& reset()
139 bool operator ==(const wxBitset &rhs) const
145 bool operator !=(const wxBitset &rhs) const