tflite::TfLiteIntArrayView

#include <context_util.h>

Provides a range iterable wrapper for TfLiteIntArray* (C lists) that TfLite C api uses.

Summary

Constructors and Destructors

TfLiteIntArrayView(const TfLiteIntArray *int_array)
Construct a view of a TfLiteIntArray*.
TfLiteIntArrayView(const TfLiteIntArrayView &)

Public types

const_iterator typedef
const int *

Public functions

begin() const
const_iterator
end() const
const_iterator
operator=(const TfLiteIntArrayView & rhs)=default
operator[](size_t pos) const
int
size() const
size_t

Public types

const_iterator

const int * const_iterator

Public functions

TfLiteIntArrayView

 TfLiteIntArrayView(
  const TfLiteIntArray *int_array
)

Construct a view of a TfLiteIntArray*.

Note, int_array should be non-null and this view does not take ownership of it.

TfLiteIntArrayView

 TfLiteIntArrayView(
  const TfLiteIntArrayView &
)=default

begin

const_iterator begin() const 

end

const_iterator end() const 

operator=

TfLiteIntArrayView & operator=(
  const TfLiteIntArrayView & rhs
)=default

operator[]

int operator[](
  size_t pos
) const 

size

size_t size() const