A handle to an array element containing an object or an array of objects.
More...
#include <memory/Array_ObjectHandle.hpp>
template<typename Type>
class xentara::memory::Array::ObjectHandle< Type >
A handle to an array element containing an object or an array of objects.
This handle can be used to get the element from a reader or writer
- Examples
- LoadingElementConfig.cpp, and PublishingConfigAttributes.cpp.
◆ Element
◆ TargetObject
The object type describing the structure.
◆ ObjectHandle()
Default constructor.
This constructor creates an invalid handle. Do not attempt to use this handle, the associated memory may not be valid.
◆ member()
template<typename Type >
template<typename TypeOrBase , typename MemberType >
requires std::derived_from<Type, TypeOrBase>
Returns a handle to a member.
- Parameters
-
- Returns
- A handle to the member at the specified offset
◆ offset()
Gets the offset within the array data.
◆ operator ObjectHandle< Base >()
template<typename Type >
template<typename Base >
requires std::derived_from<Type, Base>
Gets a handle to an unambiguous base class.
◆ operator++() [1/2]
Increments the handle by a one element.
- Attention
- This can make the handle point to invalid data. It is your respoinsibility to ensure that the handle does not end up pointing outside of the array's data.
- Returns
- Returns a reference to this object
◆ operator++() [2/2]
Increments the handle by a one element.
- Attention
- This can make the handle point to invalid data. It is your respoinsibility to ensure that the handle does not end up pointing outside of the array's data.
- Returns
- The old value of the handle
◆ operator+=()
Offsets the handle by a specific number of elements.
- Attention
- This can make the handle point to invalid data. It is your respoinsibility to ensure that the handle does not end up pointing outside of the array's data.
- Parameters
-
count | The number of elements to move the handle |
- Returns
- Returns a reference to this object
◆ operator--() [1/2]
Decrements the handle by a one element.
- Attention
- This can make the handle point to invalid data. It is your respoinsibility to ensure that the handle does not end up pointing outside of the array's data.
- Returns
- Returns a reference to this object
◆ operator--() [2/2]
Decrements the handle by a one element.
- Attention
- This can make the handle point to invalid data. It is your respoinsibility to ensure that the handle does not end up pointing outside of the array's data.
- Returns
- The old value of the handle
◆ operator-=()
Offsets the handle by a specific number of elements.
- Attention
- This can make the handle point to invalid data. It is your respoinsibility to ensure that the handle does not end up pointing outside of the array's data.
- Parameters
-
count | The negative number of elements to move the handle |
- Returns
- Returns a reference to this object
◆ operator<=>()
◆ operator==()
◆ rawHandle()