famouso::mw::afp::defrag::detail::BitArray< N, Allocator > Class Template Reference
#include <BitArray.h>
Public Member Functions | |
| BitArray (bool init_value=false) | |
| Constructor. | |
| Bit | operator[] (size_t bit_idx) |
| Access a bit. | |
| const Bit | operator[] (size_t bit_idx) const |
| Access a bit. | |
| size_t | size () const |
| Return number of bits this array consists of (N). | |
| bool | resize (size_t count) |
| Resize array (not supported for constant length BitArray). | |
template<size_t N, class Allocator = object::Allocator>
class famouso::mw::afp::defrag::detail::BitArray< N, Allocator >
Constructor & Destructor Documentation
template<size_t N, class Allocator = object::Allocator>
| famouso::mw::afp::defrag::detail::BitArray< N, Allocator >::BitArray | ( | bool | init_value = false |
) | [inline] |
Constructor.
- Parameters:
-
init_value If true, bits are initially set to one. Otherwise they are all cleared to zero.
- Note:
- After construction you can access N bits immediatly.
Member Function Documentation
template<size_t N, class Allocator = object::Allocator>
| const Bit famouso::mw::afp::defrag::detail::BitArray< N, Allocator >::operator[] | ( | size_t | bit_idx | ) | const [inline] |
Access a bit.
- Parameters:
-
bit_idx Number of the Bit (ranging from zero to N-1.
- Note:
- bit_idx only checked by assert.
template<size_t N, class Allocator = object::Allocator>
| Bit famouso::mw::afp::defrag::detail::BitArray< N, Allocator >::operator[] | ( | size_t | bit_idx | ) | [inline] |
Access a bit.
- Parameters:
-
bit_idx Number of the Bit (ranging from zero to N-1.
- Note:
- bit_idx only checked by assert.
template<size_t N, class Allocator = object::Allocator>
| bool famouso::mw::afp::defrag::detail::BitArray< N, Allocator >::resize | ( | size_t | count | ) | [inline] |
Resize array (not supported for constant length BitArray).
- Returns:
- Always returns false
Referenced by famouso::mw::afp::defrag::DuplicateChecker< DCP >::new_fragment().
template<size_t N, class Allocator = object::Allocator>
| size_t famouso::mw::afp::defrag::detail::BitArray< N, Allocator >::size | ( | ) | const [inline] |
Return number of bits this array consists of (N).
Referenced by famouso::mw::afp::defrag::DuplicateChecker< DCP >::new_fragment().
The documentation for this class was generated from the following file:
- include/mw/afp/defrag/detail/BitArray.h