cesium-native 0.43.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 137 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 184 of file Availability.h.
|
inline |
Obtains the constant value of the AvailabilityView.
Definition at line 175 of file Availability.h.
|
inlinenoexcept |
Is this AvailabilityAccessor accessing a SubtreeBufferView?
Definition at line 156 of file Availability.h.
|
inlinenoexcept |
Is this AvailabilityAccessor accessing a ConstantAvailability?
Definition at line 167 of file Availability.h.
|
inline |
Obtains the byte at the given index from the buffer used by the AvailabilityView.
Definition at line 195 of file Availability.h.
|
inline |
Obtains the size of the buffer used by the AvailabilityView.
Definition at line 206 of file Availability.h.