|
Rosetta
|
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. More... | |
| BitVector (Bit const &i) | |
| Bit constructor (implicit) More... | |
| BitVector (Bit const &i, Bit const &j) | |
| 2 Bit constructor More... | |
| BitVector (Bit const &i, Bit const &j, Bit const &k) | |
| 3 Bit constructor More... | |
| BitVector (Bit const &i, Bit const &j, Bit const &k, Bit const &l) | |
| 4 Bit constructor More... | |
| BitVector (Bit const &i, Bit const &j, Bit const &k, Bit const &l, Bit const &m) | |
| 5 Bit constructor More... | |
| ~BitVector () | |
| Destructor. More... | |
| BitVector & | operator+= (BitVector const &s) |
| += BitVector: Union More... | |
| BitVector & | operator|= (BitVector const &s) |
| |= BitVector: Union More... | |
| BitVector & | operator-= (BitVector const &s) |
| -= BitVector: Difference More... | |
| BitVector & | operator+= (Bit const &i) |
| += Bit More... | |
| BitVector & | operator|= (Bit const &i) |
| |= Bit More... | |
| BitVector & | operator-= (Bit const &i) |
| -= Bit More... | |
| void | shrink () |
| Shrink the bit vector to remove unused capacity. More... | |
| void | expand (Size const &n) |
| Expand the bit vector if necessary to the specified size. More... | |
| void | expand_tight (Size const &n) |
| Expand the bit vector if necessary to the specified size and remove excess capacity. More... | |
| void | swap (BitVector &s) |
| swap( BitVector ) More... | |
| Size | size () const |
| Size. More... | |
| bool | empty () const |
| Empty? More... | |
| bool | operator[] (Bit const &i) const |
| BitVector[ 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 vector. More... | |
Friends | |
| BitVector | operator+ (BitVector const &a, BitVector const &b) |
| BitVector + BitVector: Union. More... | |
| BitVector | operator| (BitVector const &a, BitVector const &b) |
| BitVector | BitVector: Union. More... | |
| BitVector | operator- (BitVector const &a, BitVector const &b) |
| BitVector - BitVector: Difference. More... | |
| template<typename U > | |
| void | swap (BitVector< U > &a, BitVector< U > &b) |
| swap( BitVector, BitVector ) More... | |
| bool | operator== (BitVector const &a, BitVector const &b) |
| BitVector == BitVector. More... | |
| bool | operator!= (BitVector const &a, BitVector const &b) |
| BitVector != BitVector. More... | |
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 |
|
inline |
Default constructor.
|
inline |
Bit constructor (implicit)
References utility::BitVector< B >::bits_, and create_a3b_hbs::i.
|
inline |
2 Bit constructor
References utility::BitVector< B >::bits_, create_a3b_hbs::i, and create_a3b_hbs::j.
|
inline |
3 Bit constructor
References utility::BitVector< B >::bits_, create_a3b_hbs::i, create_a3b_hbs::j, and create_a3b_hbs::k.
|
inline |
4 Bit constructor
References utility::BitVector< B >::bits_, create_a3b_hbs::i, create_a3b_hbs::j, create_a3b_hbs::k, and extract_by_sidechain_sasa_score::l.
|
inline |
5 Bit constructor
References utility::BitVector< B >::bits_, create_a3b_hbs::i, create_a3b_hbs::j, create_a3b_hbs::k, extract_by_sidechain_sasa_score::l, and kmeans_adaptive_kernel_density_bb_dependent_rotlib::m.
|
inline |
Destructor.
|
inline |
Begin iterator.
References utility::BitVector< B >::bits_.
|
inline |
Begin iterator.
References utility::BitVector< B >::bits_.
|
inline |
Empty?
References utility::BitVector< B >::bits_.
|
inline |
End iterator.
References utility::BitVector< B >::bits_.
|
inline |
End iterator.
References utility::BitVector< B >::bits_.
|
inline |
Expand the bit vector if necessary to the specified size.
References utility::BitVector< B >::bits_, and kmeans_adaptive_kernel_density_bb_dependent_rotlib::n.
Referenced by utility::BitVector< B >::operator+=(), utility::BitVector< B >::operator-=(), and utility::BitVector< B >::operator|=().
|
inline |
Expand the bit vector if necessary to the specified size and remove excess capacity.
References utility::BitVector< B >::bits_, kmeans_adaptive_kernel_density_bb_dependent_rotlib::n, and utility::BitVector< B >::shrink().
Referenced by utility::BitVector< B >::operator+=(), utility::BitVector< B >::operator-=(), and utility::BitVector< B >::operator|=().
|
inline |
+= Bit
References utility::BitVector< B >::bits_, utility::BitVector< B >::expand(), and create_a3b_hbs::i.
|
inline |
+= BitVector: Union
References utility::BitVector< B >::bits_, test.T009_Exceptions::e, utility::BitVector< B >::expand_tight(), create_a3b_hbs::i, and docking::s.
|
inline |
-= Bit
References utility::BitVector< B >::bits_, utility::BitVector< B >::expand(), and create_a3b_hbs::i.
|
inline |
-= BitVector: Difference
References utility::BitVector< B >::bits_, test.T009_Exceptions::e, utility::BitVector< B >::expand_tight(), create_a3b_hbs::i, and docking::s.
|
inline |
BitVector[ i ] const.
References utility::BitVector< B >::bits_, and create_a3b_hbs::i.
|
inline |
|= Bit
References utility::BitVector< B >::bits_, utility::BitVector< B >::expand(), and create_a3b_hbs::i.
|
inline |
|= BitVector: Union
References utility::BitVector< B >::bits_, test.T009_Exceptions::e, utility::BitVector< B >::expand_tight(), create_a3b_hbs::i, and docking::s.
|
inline |
Shrink the bit vector to remove unused capacity.
References utility::BitVector< B >::bits_.
Referenced by utility::BitVector< B >::expand_tight().
|
inline |
Size.
References utility::BitVector< B >::bits_.
|
inline |
swap( BitVector )
References utility::BitVector< B >::bits_, and docking::s.
|
friend |
swap( BitVector, BitVector )
|
private |
Bit vector.
Referenced by utility::BitVector< B >::begin(), utility::BitVector< B >::BitVector(), utility::BitVector< B >::empty(), utility::BitVector< B >::end(), utility::BitVector< B >::expand(), utility::BitVector< B >::expand_tight(), utility::BitVector< B >::operator+=(), utility::BitVector< B >::operator-=(), utility::BitVector< B >::operator[](), utility::BitVector< B >::operator|=(), utility::BitVector< B >::shrink(), utility::BitVector< B >::size(), and utility::BitVector< B >::swap().