|
mmcfilters
Public API documentation
|
Indexed finite set of translated-sample offsets. More...
#include <LocalEventModel.hpp>
Public Member Functions | |
| ObservationWindow (std::vector< WindowOffset > offsets) | |
| Builds and validates a window. | |
| ObservationWindow (std::initializer_list< WindowOffset > offsets) | |
| Builds and validates a window. | |
| template<std::size_t N> | |
| ObservationWindow (const std::array< WindowOffset, N > &offsets) | |
| Builds and validates a fixed-size window. | |
| std::size_t | size () const noexcept |
| Returns the number of offsets. | |
| const WindowOffset & | operator[] (std::size_t index) const noexcept |
| Returns one offset without bounds checking. | |
| std::span< const WindowOffset > | offsets () const noexcept |
| Returns all ordered offsets. | |
| auto | begin () const noexcept |
| Returns the first offset iterator. | |
| auto | end () const noexcept |
| Returns the past-the-end offset iterator. | |
Static Public Attributes | |
| static constexpr std::size_t | maxNumOffsets = 32 |
| Maximum number of offsets representable by one visibility bit mask. | |
Indexed finite set of translated-sample offsets.
The offset order permanently identifies visibility-state coordinates. A valid window contains (0, 0) exactly once, has no duplicates, and contains at most 32 offsets because the production state is a std::uint32_t mask.
Definition at line 32 of file LocalEventModel.hpp.
|
inlineexplicit |
Builds and validates a window.
| offsets | Ordered translated-sample offsets. |
Definition at line 38 of file LocalEventModel.hpp.
|
inline |
Builds and validates a window.
| offsets | Ordered translated-sample offsets. |
Definition at line 40 of file LocalEventModel.hpp.
|
inlineexplicit |
Builds and validates a fixed-size window.
| N | Number of offsets. |
| offsets | Ordered translated-sample offsets. |
Definition at line 44 of file LocalEventModel.hpp.
|
inlinenoexcept |
Returns the first offset iterator.
Definition at line 53 of file LocalEventModel.hpp.
|
inlinenoexcept |
Returns the past-the-end offset iterator.
Definition at line 55 of file LocalEventModel.hpp.
|
inlinenoexcept |
Returns all ordered offsets.
Definition at line 51 of file LocalEventModel.hpp.
|
inlinenoexcept |
Returns one offset without bounds checking.
| index | Window coordinate. |
index. Definition at line 49 of file LocalEventModel.hpp.
|
inlinenoexcept |
Returns the number of offsets.
Definition at line 47 of file LocalEventModel.hpp.
|
staticconstexpr |
Maximum number of offsets representable by one visibility bit mask.
Definition at line 35 of file LocalEventModel.hpp.