Rosetta 3.3
|
Simple bit vector. More...
#include <BitVector.hh>
Public Types | |
typedef B | Bit |
typedef std::vector< bool > | Bits |
typedef bool | value_type |
typedef bool & | reference |
typedef bool const & | const_reference |
typedef bool * | pointer |
typedef bool const * | const_pointer |
typedef Bits::iterator | iterator |
typedef Bits::const_iterator | const_iterator |
typedef Bits::size_type | size_type |
typedef bool | Value |
typedef bool & | Reference |
typedef bool const & | ConstReference |
typedef bool * | Pointer |
typedef bool const * | ConstPointer |
typedef Bits::iterator | Iterator |
typedef Bits::const_iterator | ConstIterator |
typedef Bits::size_type | Size |
Public Member Functions | |
BitVector () | |
Default constructor. | |
BitVector (Bit const &i) | |
Bit constructor (implicit) | |
BitVector (Bit const &i, Bit const &j) | |
2 Bit constructor | |
BitVector (Bit const &i, Bit const &j, Bit const &k) | |
3 Bit constructor | |
BitVector (Bit const &i, Bit const &j, Bit const &k, Bit const &l) | |
4 Bit constructor | |
BitVector (Bit const &i, Bit const &j, Bit const &k, Bit const &l, Bit const &m) | |
5 Bit constructor | |
~BitVector () | |
Destructor. | |
BitVector & | operator+= (BitVector const &s) |
+= BitVector: Union | |
BitVector & | operator|= (BitVector const &s) |
|= BitVector: Union | |
BitVector & | operator-= (BitVector const &s) |
-= BitVector: Difference | |
BitVector & | operator+= (Bit const &i) |
+= Bit | |
BitVector & | operator|= (Bit const &i) |
|= Bit | |
BitVector & | operator-= (Bit const &i) |
-= Bit | |
void | shrink () |
Shrink the bit vector to remove unused capacity. | |
void | expand (Size const &n) |
Expand the bit vector if necessary to the specified size. | |
void | expand_tight (Size const &n) |
Expand the bit vector if necessary to the specified size and remove excess capacity. | |
void | swap (BitVector &s) |
swap( BitVector ) | |
Size | size () const |
Size. | |
bool | empty () const |
Empty? | |
bool | operator[] (Bit const &i) const |
BitVector[ i ] const. | |
ConstIterator | begin () const |
Begin iterator. | |
Iterator | begin () |
Begin iterator. | |
ConstIterator | end () const |
End iterator. | |
Iterator | end () |
End iterator. | |
Friends | |
BitVector | operator+ (BitVector const &a, BitVector const &b) |
BitVector + BitVector: Union. | |
BitVector | operator| (BitVector const &a, BitVector const &b) |
BitVector | BitVector: Union. | |
BitVector | operator- (BitVector const &a, BitVector const &b) |
BitVector - BitVector: Difference. | |
void | swap (BitVector &a, BitVector &b) |
swap( BitVector, BitVector ) | |
bool | operator== (BitVector const &a, BitVector const &b) |
BitVector == BitVector. | |
bool | operator!= (BitVector const &a, BitVector const &b) |
BitVector != BitVector. |
Simple bit vector.
typedef B utility::BitVector< B >::Bit |
typedef std::vector< bool > utility::BitVector< B >::Bits |
typedef Bits::const_iterator utility::BitVector< B >::const_iterator |
typedef bool const* utility::BitVector< B >::const_pointer |
typedef bool const& utility::BitVector< B >::const_reference |
typedef Bits::const_iterator utility::BitVector< B >::ConstIterator |
typedef bool const* utility::BitVector< B >::ConstPointer |
typedef bool const& utility::BitVector< B >::ConstReference |
typedef Bits::iterator utility::BitVector< B >::Iterator |
typedef Bits::iterator utility::BitVector< B >::iterator |
typedef bool* utility::BitVector< B >::pointer |
typedef bool* utility::BitVector< B >::Pointer |
typedef bool& utility::BitVector< B >::reference |
typedef bool& utility::BitVector< B >::Reference |
typedef Bits::size_type utility::BitVector< B >::Size |
typedef Bits::size_type utility::BitVector< B >::size_type |
typedef bool utility::BitVector< B >::Value |
typedef bool utility::BitVector< B >::value_type |
utility::BitVector< B >::BitVector | ( | ) | [inline] |
Default constructor.
utility::BitVector< B >::BitVector | ( | Bit const & | i | ) | [inline] |
Bit constructor (implicit)
References color_pdb::i.
utility::BitVector< B >::BitVector | ( | Bit const & | i, |
Bit const & | j | ||
) | [inline] |
2 Bit constructor
References color_pdb::i.
utility::BitVector< B >::BitVector | ( | Bit const & | i, |
Bit const & | j, | ||
Bit const & | k | ||
) | [inline] |
3 Bit constructor
References color_pdb::i.
utility::BitVector< B >::BitVector | ( | Bit const & | i, |
Bit const & | j, | ||
Bit const & | k, | ||
Bit const & | l | ||
) | [inline] |
4 Bit constructor
References color_pdb::i, and basic::options::OptionKeys::in::file::l.
utility::BitVector< B >::BitVector | ( | Bit const & | i, |
Bit const & | j, | ||
Bit const & | k, | ||
Bit const & | l, | ||
Bit const & | m | ||
) | [inline] |
5 Bit constructor
References color_pdb::i, and basic::options::OptionKeys::in::file::l.
utility::BitVector< B >::~BitVector | ( | ) | [inline] |
Destructor.
ConstIterator utility::BitVector< B >::begin | ( | ) | const [inline] |
Begin iterator.
Iterator utility::BitVector< B >::begin | ( | ) | [inline] |
Begin iterator.
bool utility::BitVector< B >::empty | ( | ) | const [inline] |
Empty?
ConstIterator utility::BitVector< B >::end | ( | ) | const [inline] |
End iterator.
Iterator utility::BitVector< B >::end | ( | ) | [inline] |
End iterator.
void utility::BitVector< B >::expand | ( | Size const & | n | ) | [inline] |
Expand the bit vector if necessary to the specified size.
Referenced by utility::BitVector< B >::operator+=(), utility::BitVector< B >::operator-=(), and utility::BitVector< B >::operator|=().
void utility::BitVector< B >::expand_tight | ( | Size const & | n | ) | [inline] |
Expand the bit vector if necessary to the specified size and remove excess capacity.
References utility::BitVector< B >::shrink().
Referenced by utility::BitVector< B >::operator+=(), utility::BitVector< B >::operator-=(), and utility::BitVector< B >::operator|=().
BitVector& utility::BitVector< B >::operator+= | ( | Bit const & | i | ) | [inline] |
+= Bit
References utility::BitVector< B >::expand(), and color_pdb::i.
BitVector& utility::BitVector< B >::operator+= | ( | BitVector< B > const & | s | ) | [inline] |
+= BitVector: Union
References utility::BitVector< B >::expand_tight(), and color_pdb::i.
BitVector& utility::BitVector< B >::operator-= | ( | Bit const & | i | ) | [inline] |
-= Bit
References utility::BitVector< B >::expand(), and color_pdb::i.
BitVector& utility::BitVector< B >::operator-= | ( | BitVector< B > const & | s | ) | [inline] |
-= BitVector: Difference
References utility::BitVector< B >::expand_tight(), and color_pdb::i.
bool utility::BitVector< B >::operator[] | ( | Bit const & | i | ) | const [inline] |
BitVector[ i ] const.
BitVector& utility::BitVector< B >::operator|= | ( | BitVector< B > const & | s | ) | [inline] |
|= BitVector: Union
References utility::BitVector< B >::expand_tight(), and color_pdb::i.
BitVector& utility::BitVector< B >::operator|= | ( | Bit const & | i | ) | [inline] |
|= Bit
References utility::BitVector< B >::expand(), and color_pdb::i.
void utility::BitVector< B >::shrink | ( | ) | [inline] |
Shrink the bit vector to remove unused capacity.
Referenced by utility::BitVector< B >::expand_tight().
Size utility::BitVector< B >::size | ( | ) | const [inline] |
Size.
void utility::BitVector< B >::swap | ( | BitVector< B > & | s | ) | [inline] |
swap( BitVector )
swap( BitVector, BitVector )