A Fenwick tree of slot occupancy: how many occupied slots precede a slot.
More...
#include <view_change.hpp>
|
| | SlotCounter (std::size_t size) |
| | An empty counter over size slots.
|
| void | occupy (std::size_t slot) |
| | Marks a slot occupied.
|
| void | release (std::size_t slot) |
| | Marks a slot free.
|
| std::size_t | before (std::size_t slot) const |
| | Occupied slots before slot.
|
A Fenwick tree of slot occupancy: how many occupied slots precede a slot.
Definition at line 83 of file view_change.hpp.
◆ SlotCounter()
| morph::table::detail::SlotCounter::SlotCounter |
( |
std::size_t | size | ) |
|
|
inlineexplicit |
An empty counter over size slots.
- Parameters
-
Definition at line 87 of file view_change.hpp.
◆ occupy()
| void morph::table::detail::SlotCounter::occupy |
( |
std::size_t | slot | ) |
|
|
inline |
◆ release()
| void morph::table::detail::SlotCounter::release |
( |
std::size_t | slot | ) |
|
|
inline |
◆ before()
| std::size_t morph::table::detail::SlotCounter::before |
( |
std::size_t | slot | ) |
const |
|
inlinenodiscard |
Occupied slots before slot.
- Parameters
-
- Returns
- The count.
Definition at line 100 of file view_change.hpp.
The documentation for this class was generated from the following file: