ONE - On-device Neural Engine
Loading...
Searching...
No Matches
flatbuffers::pointer_inside_vector< T, U > Class Template Reference

#include <reflection.h>

Public Member Functions

 pointer_inside_vector (T *ptr, std::vector< U > &vec)
 
T * operator* () const
 
T * operator-> () const
 

Detailed Description

template<typename T, typename U>
class flatbuffers::pointer_inside_vector< T, U >

Definition at line 392 of file reflection.h.

Constructor & Destructor Documentation

◆ pointer_inside_vector()

template<typename T , typename U >
flatbuffers::pointer_inside_vector< T, U >::pointer_inside_vector ( T *  ptr,
std::vector< U > &  vec 
)
inline

Definition at line 395 of file reflection.h.

396 : offset_(reinterpret_cast<uint8_t *>(ptr) -
397 reinterpret_cast<uint8_t *>(flatbuffers::vector_data(vec))),
398 vec_(vec)
399 {
400 }
T * vector_data(std::vector< T > &vector)

Member Function Documentation

◆ operator*()

template<typename T , typename U >
T * flatbuffers::pointer_inside_vector< T, U >::operator* ( ) const
inline

Definition at line 402 of file reflection.h.

403 {
404 return reinterpret_cast<T *>(reinterpret_cast<uint8_t *>(flatbuffers::vector_data(vec_)) +
405 offset_);
406 }

References flatbuffers::vector_data().

Referenced by flatbuffers::pointer_inside_vector< T, U >::operator->().

◆ operator->()

template<typename T , typename U >
T * flatbuffers::pointer_inside_vector< T, U >::operator-> ( ) const
inline

Definition at line 407 of file reflection.h.

407{ return operator*(); }

References flatbuffers::pointer_inside_vector< T, U >::operator*().


The documentation for this class was generated from the following file: