|
cesium-native 0.53.0
|
Accessor for use with AvailabilityView in order to safely obtain the contents of the view. More...
#include <CesiumGeometry/Availability.h>
Public Member Functions | |
| AvailabilityAccessor (const AvailabilityView &view, const AvailabilitySubtree &subtree) noexcept | |
| Creates a new AvailabilityAccessor. | |
| bool | isBufferView () const noexcept |
| Is this AvailabilityAccessor accessing a SubtreeBufferView? | |
| bool | isConstant () const noexcept |
| Is this AvailabilityAccessor accessing a ConstantAvailability? | |
| bool | getConstant () const |
| Obtains the constant value of the AvailabilityView. | |
| const std::span< const std::byte > & | getBufferAccessor () const |
| Obtains an accessor to the buffer used by the AvailabilityView. | |
| const std::byte & | operator[] (size_t i) const |
| Obtains the byte at the given index from the buffer used by the AvailabilityView. | |
| size_t | size () const |
| Obtains the size of the buffer used by the AvailabilityView. | |
Accessor for use with AvailabilityView in order to safely obtain the contents of the view.
Definition at line 138 of file Availability.h.
|
noexcept |
Creates a new AvailabilityAccessor.
| view | The view whose contents will be accessed by this accessor. |
| subtree | The subtree that corresponds to the view. |
|
inline |
Obtains an accessor to the buffer used by the AvailabilityView.
Definition at line 185 of file Availability.h.
|
inline |
Obtains the constant value of the AvailabilityView.
Definition at line 176 of file Availability.h.
|
inlinenoexcept |
Is this AvailabilityAccessor accessing a SubtreeBufferView?
Definition at line 157 of file Availability.h.
|
inlinenoexcept |
Is this AvailabilityAccessor accessing a ConstantAvailability?
Definition at line 168 of file Availability.h.
|
inline |
Obtains the byte at the given index from the buffer used by the AvailabilityView.
Definition at line 197 of file Availability.h.
|
inline |
Obtains the size of the buffer used by the AvailabilityView.
Definition at line 209 of file Availability.h.