|
CeresEngine 0.2.0
A game development framework
|
Creates a BitView that owns its data. More...
#include <CeresEngine/Foundation/Container/BitView.hpp>
Public Member Functions | |
| constexpr | BitContainer () noexcept(noexcept(C())) |
| constexpr | BitContainer (const BitContainer &other) noexcept(noexcept(C(std::declval< const C & >()))) |
| constexpr | BitContainer (BitContainer &&other) noexcept(noexcept(C(std::declval< C && >()))) |
| template<typename... Args> | |
| BitContainer (Args &&... args) | |
Public Member Functions inherited from CeresEngine::BitView< C > | |
| constexpr | BitView (C &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 | begin () const noexcept(noexcept(mContainer.begin())) |
| constexpr auto | end () noexcept(noexcept(mContainer.begin())) |
| constexpr auto | end () const noexcept(noexcept(mContainer.begin())) |
| C & | data () noexcept |
| Get the underlying data container. | |
| const C & | data () const noexcept |
| Get the underlying data container. | |
Private Attributes | |
| C | mDataContainer |
Additional Inherited Members | |
Public Types inherited from CeresEngine::BitView< C > | |
| using | Word = typename std::remove_reference< decltype(std::declval< C >()[0])>::type |
Static Public Attributes inherited from CeresEngine::BitView< C > | |
| static constexpr auto | WORD_SIZE |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inline |
|
private |