ONE - On-device Neural Engine
Loading...
Searching...
No Matches
flatbuffers::VectorIterator< T, IT > Struct Template Reference

#include <flatbuffers.h>

Public Types

typedef std::random_access_iterator_tag iterator_category
 
typedef IT value_type
 
typedef ptrdiff_t difference_type
 
typedef IT * pointer
 
typedef IT & reference
 

Public Member Functions

 VectorIterator (const uint8_t *data, uoffset_t i)
 
 VectorIterator (const VectorIterator &other)
 
 VectorIterator ()
 
VectorIteratoroperator= (const VectorIterator &other)
 
VectorIteratoroperator= (VectorIterator &&other)
 
bool operator== (const VectorIterator &other) const
 
bool operator< (const VectorIterator &other) const
 
bool operator!= (const VectorIterator &other) const
 
difference_type operator- (const VectorIterator &other) const
 
IT operator* () const
 
IT operator-> () const
 
VectorIteratoroperator++ ()
 
VectorIterator operator++ (int)
 
VectorIterator operator+ (const uoffset_t &offset) const
 
VectorIteratoroperator+= (const uoffset_t &offset)
 
VectorIteratoroperator-- ()
 
VectorIterator operator-- (int)
 
VectorIterator operator- (const uoffset_t &offset) const
 
VectorIteratoroperator-= (const uoffset_t &offset)
 

Detailed Description

template<typename T, typename IT>
struct flatbuffers::VectorIterator< T, IT >

Definition at line 142 of file flatbuffers.h.

Member Typedef Documentation

◆ difference_type

template<typename T , typename IT >
typedef ptrdiff_t flatbuffers::VectorIterator< T, IT >::difference_type

Definition at line 146 of file flatbuffers.h.

◆ iterator_category

template<typename T , typename IT >
typedef std::random_access_iterator_tag flatbuffers::VectorIterator< T, IT >::iterator_category

Definition at line 144 of file flatbuffers.h.

◆ pointer

template<typename T , typename IT >
typedef IT* flatbuffers::VectorIterator< T, IT >::pointer

Definition at line 147 of file flatbuffers.h.

◆ reference

template<typename T , typename IT >
typedef IT& flatbuffers::VectorIterator< T, IT >::reference

Definition at line 148 of file flatbuffers.h.

◆ value_type

template<typename T , typename IT >
typedef IT flatbuffers::VectorIterator< T, IT >::value_type

Definition at line 145 of file flatbuffers.h.

Constructor & Destructor Documentation

◆ VectorIterator() [1/3]

template<typename T , typename IT >
flatbuffers::VectorIterator< T, IT >::VectorIterator ( const uint8_t *  data,
uoffset_t  i 
)
inline

Definition at line 150 of file flatbuffers.h.

152 {
153 }
const T * data(const std::vector< T, Alloc > &v)
static const size_t element_stride

◆ VectorIterator() [2/3]

template<typename T , typename IT >
flatbuffers::VectorIterator< T, IT >::VectorIterator ( const VectorIterator< T, IT > &  other)
inline

Definition at line 154 of file flatbuffers.h.

154: data_(other.data_) {}

◆ VectorIterator() [3/3]

template<typename T , typename IT >
flatbuffers::VectorIterator< T, IT >::VectorIterator ( )
inline

Definition at line 155 of file flatbuffers.h.

155: data_(nullptr) {}

Referenced by flatbuffers::VectorIterator< T, IT >::operator+(), and flatbuffers::VectorIterator< T, IT >::operator-().

Member Function Documentation

◆ operator!=()

template<typename T , typename IT >
bool flatbuffers::VectorIterator< T, IT >::operator!= ( const VectorIterator< T, IT > &  other) const
inline

Definition at line 176 of file flatbuffers.h.

176{ return data_ != other.data_; }

◆ operator*()

template<typename T , typename IT >
IT flatbuffers::VectorIterator< T, IT >::operator* ( ) const
inline

Definition at line 185 of file flatbuffers.h.

185{ return IndirectHelper<T>::Read(data_, 0); }
static return_type Read(const uint8_t *p, uoffset_t i)

References flatbuffers::IndirectHelper< T >::Read().

◆ operator+()

template<typename T , typename IT >
VectorIterator flatbuffers::VectorIterator< T, IT >::operator+ ( const uoffset_t &  offset) const
inline

Definition at line 204 of file flatbuffers.h.

205 {
207 }
__global uchar * offset(const Image *img, int x, int y)
Definition helpers.h:540

References offset(), and flatbuffers::VectorIterator< T, IT >::VectorIterator().

◆ operator++() [1/2]

template<typename T , typename IT >
VectorIterator & flatbuffers::VectorIterator< T, IT >::operator++ ( )
inline

Definition at line 191 of file flatbuffers.h.

192 {
194 return *this;
195 }

◆ operator++() [2/2]

template<typename T , typename IT >
VectorIterator flatbuffers::VectorIterator< T, IT >::operator++ ( int  )
inline

Definition at line 197 of file flatbuffers.h.

198 {
199 VectorIterator temp(data_, 0);
201 return temp;
202 }

◆ operator+=()

template<typename T , typename IT >
VectorIterator & flatbuffers::VectorIterator< T, IT >::operator+= ( const uoffset_t &  offset)
inline

Definition at line 209 of file flatbuffers.h.

210 {
212 return *this;
213 }

References offset().

◆ operator-() [1/2]

template<typename T , typename IT >
VectorIterator flatbuffers::VectorIterator< T, IT >::operator- ( const uoffset_t &  offset) const
inline

Definition at line 228 of file flatbuffers.h.

229 {
231 }

References offset(), and flatbuffers::VectorIterator< T, IT >::VectorIterator().

◆ operator-() [2/2]

template<typename T , typename IT >
difference_type flatbuffers::VectorIterator< T, IT >::operator- ( const VectorIterator< T, IT > &  other) const
inline

Definition at line 178 of file flatbuffers.h.

179 {
180 return (data_ - other.data_) / IndirectHelper<T>::element_stride;
181 }

◆ operator--() [1/2]

template<typename T , typename IT >
VectorIterator & flatbuffers::VectorIterator< T, IT >::operator-- ( )
inline

Definition at line 215 of file flatbuffers.h.

216 {
218 return *this;
219 }

◆ operator--() [2/2]

template<typename T , typename IT >
VectorIterator flatbuffers::VectorIterator< T, IT >::operator-- ( int  )
inline

Definition at line 221 of file flatbuffers.h.

222 {
223 VectorIterator temp(data_, 0);
225 return temp;
226 }

◆ operator-=()

template<typename T , typename IT >
VectorIterator & flatbuffers::VectorIterator< T, IT >::operator-= ( const uoffset_t &  offset)
inline

Definition at line 233 of file flatbuffers.h.

234 {
236 return *this;
237 }

References offset().

◆ operator->()

template<typename T , typename IT >
IT flatbuffers::VectorIterator< T, IT >::operator-> ( ) const
inline

Definition at line 189 of file flatbuffers.h.

189{ return IndirectHelper<T>::Read(data_, 0); }

References flatbuffers::IndirectHelper< T >::Read().

◆ operator<()

template<typename T , typename IT >
bool flatbuffers::VectorIterator< T, IT >::operator< ( const VectorIterator< T, IT > &  other) const
inline

Definition at line 174 of file flatbuffers.h.

174{ return data_ < other.data_; }

◆ operator=() [1/2]

template<typename T , typename IT >
VectorIterator & flatbuffers::VectorIterator< T, IT >::operator= ( const VectorIterator< T, IT > &  other)
inline

Definition at line 157 of file flatbuffers.h.

158 {
159 data_ = other.data_;
160 return *this;
161 }

◆ operator=() [2/2]

template<typename T , typename IT >
VectorIterator & flatbuffers::VectorIterator< T, IT >::operator= ( VectorIterator< T, IT > &&  other)
inline

Definition at line 164 of file flatbuffers.h.

165 {
166 data_ = other.data_;
167 return *this;
168 }

◆ operator==()

template<typename T , typename IT >
bool flatbuffers::VectorIterator< T, IT >::operator== ( const VectorIterator< T, IT > &  other) const
inline

Definition at line 172 of file flatbuffers.h.

172{ return data_ == other.data_; }

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