Member access operator -> for accessing the values inside the sample.

notice

Note: The behavior is undefined if the underlying sample is not valid, i.e. Get() == nullptr or SamplePtr::GetProfileCheckStatus() returns E2ECheckStatus::Error.

notice

Caution: It is unsafe to call this function after the SampleAllocateePtr has been reset.

Syntax

template<…>
SampleType amsr::socal::r20_11::events::SamplePtr<…>::operator->() const

Returns

Pointer to the underlying sample

Preconditions

Must NOT be called on

  • SamplePtrs created via default constructor prior to being swapped with a valid SamplePtr,
  • SamplePtrs created via explicit constructor taking a nullptr,
  • Reset SamplePtrs,
  • E2E related SamplePtrs if SamplePtr::GetProfileCheckStatus() returns E2ECheckStatus::Error.

Thread-safety, Reentrance, Result Delivery

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