|
CeresEngine 0.2.0
A game development framework
|
#include <CeresEngine/Foundation/Container/BitView.hpp>
Public Types | |
| using | Word = typename std::remove_reference< decltype(std::declval< Container >()[0])>::type |
Public Member Functions | |
| constexpr | BitView (Container &container) noexcept |
| size_t | size () const noexcept(noexcept(mContainer.size())) |
| Returns the number of bits that fit in the container. | |
| void | resize (size_t N, const bool v=false) noexcept(noexcept(mContainer.resize(0, 0))) |
Resizes the container to hold at least N bits. | |
| constexpr BitReference< Word > | operator[] (size_t i) noexcept(noexcept(mContainer[0])) |
Returns a BitReference to the bit at position i. | |
| constexpr BitReference< const Word > | operator[] (size_t i) const noexcept(noexcept(mContainer[0])) |
Returns a BitReference to the bit at position i. | |
| constexpr auto | begin () noexcept(noexcept(mContainer.begin())) |
| constexpr auto | end () noexcept(noexcept(mContainer.begin())) |
| constexpr auto | begin () const noexcept(noexcept(mContainer.begin())) |
| constexpr auto | end () const noexcept(noexcept(mContainer.begin())) |
| Container & | data () noexcept |
| Get the underlying data container. | |
| const Container & | data () const noexcept |
| Get the underlying data container. | |
Static Public Attributes | |
| static constexpr auto | WORD_SIZE = WordSize<Word>::value |
Private Attributes | |
| Container & | mContainer |
| using CeresEngine::BitView< Container >::Word = typename std::remove_reference<decltype(std::declval<Container>()[0])>::type |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
Get the underlying data container.
|
inlinenoexcept |
Get the underlying data container.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Returns a BitReference to the bit at position i.
|
inlineconstexprnoexcept |
Returns a BitReference to the bit at position i.
|
inlinenoexcept |
Resizes the container to hold at least N bits.
|
inlinenoexcept |
Returns the number of bits that fit in the container.
|
private |
|
staticconstexpr |