Indirection operator∗ for getting the sample value.

notice

Note: The behavior is undefined if the underlying sample is not valid, i.e. get() == nullptr.

notice

Caution: It is unsafe to call this function after resetting the SampleAllocateePtr. Although the SampleAllocateePtr(s) returned by the SkeletonEvent::Allocate API will always contain a valid sample, the risk remains.

Syntax

template<typename SampleType>
SampleDataType& ara::com::SampleAllocateePtr<SampleType>::operator*() const

Returns

Reference to the preallocated event sample.

Precondition

SampleAllocateePtr::get() must return a valid pointer.

Thread-safety, Reentrance, Result Delivery

  • Threadsafe : FALSE for same class instance, TRUE for different instances
  • Reentrant : FALSE for same class instance, TRUE for different instances
  • Synchronous : TRUE