|
|
constexpr | static_array () |
| | Default constructor initializer the bin with an invalid value.
|
| constexpr | static_array (const static_array &other)=default |
| | Copies a bin and its contents.
|
| constexpr | static_array (static_array &&other) noexcept=default |
| | Moves a bin and its contents.
|
| constexpr dindex | capacity () const noexcept |
| constexpr auto | init (darray< entry_t, N > content) -> static_array & |
| | Initialize from an entire bin content content.
|
| constexpr auto | init (entry_t entry=detail::invalid_value< entry_t >()) -> static_array & |
| | Initialize with a single entry filled.
|
| static_array & | operator= (const static_array &other) noexcept=default |
| | Copies another bin's contents.
|
| constexpr bool | operator== (const static_array &rhs) const |
| | Equality operator.
|
| template<typename E = entry_t> |
| constexpr void | push_back (E &&entry) noexcept |
| | Add a new entry to the bin.
|
| constexpr dindex | size () const |
| bin_iterator_t | begin () |
| | Returns an iterator to the first valid entry.
|
| bin_iterator_t | end () |
| | Returns an iterator one past the last valid entry.
|
| const_bin_iterator_t | begin () const |
| | Returns a const iterator to the first valid entry.
|
| const_bin_iterator_t | end () const |
| | Returns a const iterator one past the last valid entry.
|
| constexpr decltype(auto) | back () const |
| | Return a reference to the last element.
|
| constexpr auto | data () const |
| | Return a pointer to the first element, or null for an empty view.
|
| constexpr auto | empty () const -> bool |
| | Check whether the view contains no elements.
|
| constexpr decltype(auto) | front () const |
| | Return a reference to the first element.
|
| constexpr | operator bool () const |
| | Test whether the view contains at least one element.
|
| constexpr decltype(auto) | operator[] (const dindex i) const |
| | Subscript operator that takes detray dindex.
|
| constexpr auto | size () const |
| | Return the number of elements in the view.
|
template<typename entry_t, std::size_t N>
class detray::bins::static_array< entry_t, N >
Bin that holds a collection of entries.
Keeps an additional counter to track the number of entries per bin. The bin capacity is static.