#include <ShapeIterator.h>
Definition at line 27 of file ShapeIterator.h.
◆ difference_type
◆ iterator_category
◆ pointer
◆ reference
◆ value_type
Definition of this iterator's traits that can be accessed by std::iterator_traits<It>
Definition at line 30 of file ShapeIterator.h.
◆ ShapeIterator()
nnfw::cker::ShapeIterator::ShapeIterator |
( |
const Shape & |
s | ) |
|
|
inline |
Definition at line 36 of file ShapeIterator.h.
36: _shape{
s}, _current{0}, _last{
s.DimensionsCount()} {}
◆ end_iterator()
◆ operator!=()
bool nnfw::cker::ShapeIterator::operator!= |
( |
const ShapeIterator & |
other | ) |
const |
|
inline |
Definition at line 66 of file ShapeIterator.h.
66{ return _current != other._current; }
◆ operator*()
value_type nnfw::cker::ShapeIterator::operator* |
( |
| ) |
const |
|
inline |
Because the underlying method returns by-value, this operator does the same instead of returning by-reference like most iterators do.
Definition at line 71 of file ShapeIterator.h.
71{
return _shape.
Dims(_current); }
int32_t Dims(int i) const
References nnfw::cker::Shape::Dims().
◆ operator++() [1/2]
Definition at line 39 of file ShapeIterator.h.
40 {
41 ++_current;
42 return *this;
43 }
◆ operator++() [2/2]
Definition at line 46 of file ShapeIterator.h.
47 {
48 auto copy = *this;
49 ++_current;
50 return copy;
51 }
◆ operator--() [1/2]
Definition at line 53 of file ShapeIterator.h.
54 {
55 --_current;
56 return *this;
57 }
◆ operator--() [2/2]
Definition at line 59 of file ShapeIterator.h.
60 {
61 auto copy = *this;
62 --_current;
63 return copy;
64 }
◆ operator==()
bool nnfw::cker::ShapeIterator::operator== |
( |
const ShapeIterator & |
other | ) |
const |
|
inline |
Definition at line 67 of file ShapeIterator.h.
67{ return _current == other._current; }
The documentation for this struct was generated from the following file: