![]() |
Rosetta Utilities
2015.09
|
Simple bit set. More...
#include <BitSet.hh>
Public Types | |
typedef std::set< B > | Bits |
typedef B | value_type |
typedef B & | reference |
typedef B const & | const_reference |
typedef B * | pointer |
typedef B const * | const_pointer |
typedef Bits::iterator | iterator |
typedef Bits::const_iterator | const_iterator |
typedef Bits::size_type | size_type |
typedef B | Bit |
typedef B & | Reference |
typedef B const & | ConstReference |
typedef B * | Pointer |
typedef B const * | ConstPointer |
typedef Bits::iterator | Iterator |
typedef Bits::const_iterator | ConstIterator |
typedef Bits::size_type | Size |
Public Member Functions | |
BitSet () | |
Default constructor. More... | |
BitSet (Bit const &i) | |
Bit constructor (implicit) More... | |
BitSet (Bit const &i, Bit const &j) | |
2 Bit constructor More... | |
BitSet (Bit const &i, Bit const &j, Bit const &k) | |
3 Bit constructor More... | |
BitSet (Bit const &i, Bit const &j, Bit const &k, Bit const &l) | |
4 Bit constructor More... | |
BitSet (Bit const &i, Bit const &j, Bit const &k, Bit const &l, Bit const &m) | |
5 Bit constructor More... | |
~BitSet () | |
Destructor. More... | |
BitSet & | operator+= (BitSet const &s) |
+= BitSet: Union More... | |
BitSet & | operator|= (BitSet const &s) |
|= BitSet: Union More... | |
BitSet & | operator-= (BitSet const &s) |
-= BitSet: Difference More... | |
BitSet & | operator+= (Bit const &i) |
+= Bit More... | |
BitSet & | operator|= (Bit const &i) |
|= Bit More... | |
BitSet & | operator-= (Bit const &i) |
-= Bit More... | |
void | swap (BitSet &s) |
swap( BitSet ) More... | |
Size | size () const |
Size. More... | |
bool | empty () const |
Empty? More... | |
bool | operator[] (Bit const &i) const |
BitSet[ i ] const. More... | |
ConstIterator | begin () const |
Begin iterator. More... | |
Iterator | begin () |
Begin iterator. More... | |
ConstIterator | end () const |
End iterator. More... | |
Iterator | end () |
End iterator. More... | |
Private Attributes | |
Bits | bits_ |
Bit set. More... | |
Friends | |
BitSet | operator+ (BitSet const &a, BitSet const &b) |
BitSet + BitSet: Union. More... | |
BitSet | operator| (BitSet const &a, BitSet const &b) |
BitSet | BitSet: Union. More... | |
BitSet | operator- (BitSet const &a, BitSet const &b) |
BitSet - BitSet: Difference. More... | |
void | swap (BitSet &a, BitSet &b) |
swap( BitSet, BitSet ) More... | |
bool | operator== (BitSet const &a, BitSet const &b) |
BitSet == BitSet. More... | |
bool | operator!= (BitSet const &a, BitSet const &b) |
BitSet != BitSet. More... | |
Simple bit set.
typedef B utility::BitSet< B >::Bit |
typedef std::set< B > utility::BitSet< B >::Bits |
typedef Bits::const_iterator utility::BitSet< B >::const_iterator |
typedef B const* utility::BitSet< B >::const_pointer |
typedef B const& utility::BitSet< B >::const_reference |
typedef Bits::const_iterator utility::BitSet< B >::ConstIterator |
typedef B const* utility::BitSet< B >::ConstPointer |
typedef B const& utility::BitSet< B >::ConstReference |
typedef Bits::iterator utility::BitSet< B >::iterator |
typedef Bits::iterator utility::BitSet< B >::Iterator |
typedef B* utility::BitSet< B >::pointer |
typedef B* utility::BitSet< B >::Pointer |
typedef B& utility::BitSet< B >::reference |
typedef B& utility::BitSet< B >::Reference |
typedef Bits::size_type utility::BitSet< B >::Size |
typedef Bits::size_type utility::BitSet< B >::size_type |
typedef B utility::BitSet< B >::value_type |
|
inline |
Default constructor.
|
inline |
Bit constructor (implicit)
References utility::BitSet< B >::bits_.
|
inline |
2 Bit constructor
References utility::BitSet< B >::bits_.
|
inline |
3 Bit constructor
References utility::BitSet< B >::bits_.
|
inline |
4 Bit constructor
References utility::BitSet< B >::bits_.
|
inline |
5 Bit constructor
References utility::BitSet< B >::bits_.
|
inline |
Destructor.
|
inline |
Begin iterator.
References utility::BitSet< B >::bits_.
|
inline |
Begin iterator.
References utility::BitSet< B >::bits_.
|
inline |
Empty?
References utility::BitSet< B >::bits_.
|
inline |
End iterator.
References utility::BitSet< B >::bits_.
|
inline |
End iterator.
References utility::BitSet< B >::bits_.
|
inline |
+= BitSet: Union
References utility::BitSet< B >::bits_.
|
inline |
+= Bit
References utility::BitSet< B >::bits_.
|
inline |
-= BitSet: Difference
References utility::BitSet< B >::bits_.
|
inline |
-= Bit
References utility::BitSet< B >::bits_.
|
inline |
BitSet[ i ] const.
References utility::BitSet< B >::bits_.
|
inline |
|= BitSet: Union
References utility::BitSet< B >::bits_.
|
inline |
|= Bit
References utility::BitSet< B >::bits_.
|
inline |
Size.
References utility::BitSet< B >::bits_.
|
inline |
swap( BitSet )
References utility::BitSet< B >::bits_.
|
private |
Bit set.
Referenced by utility::BitSet< B >::begin(), utility::BitSet< B >::BitSet(), utility::BitSet< B >::empty(), utility::BitSet< B >::end(), utility::BitSet< B >::operator+=(), utility::BitSet< B >::operator-=(), utility::BitSet< B >::operator[](), utility::BitSet< B >::operator|=(), utility::BitSet< B >::size(), and utility::BitSet< B >::swap().