ArmNN
 24.02
TypedIterator< T, Base > Class Template Reference

#include <BaseIterator.hpp>

Inheritance diagram for TypedIterator< T, Base >:
[legend]
Collaboration diagram for TypedIterator< T, Base >:
[legend]

Public Member Functions

 TypedIterator (T *data=nullptr)
 
void Reset (void *data) override
 
TypedIteratoroperator++ () override
 
TypedIteratoroperator+= (const unsigned int increment) override
 
TypedIteratoroperator-= (const unsigned int increment) override
 
TypedIteratoroperator[] (const unsigned int index) override
 

Protected Attributes

T * m_Iterator
 
T * m_Start
 

Detailed Description

template<typename T, typename Base>
class armnn::TypedIterator< T, Base >

Definition at line 66 of file BaseIterator.hpp.

Constructor & Destructor Documentation

◆ TypedIterator()

TypedIterator ( T *  data = nullptr)
inline

Definition at line 69 of file BaseIterator.hpp.

70  : m_Iterator(data), m_Start(data)
71  {}

Member Function Documentation

◆ operator++()

TypedIterator& operator++ ( )
inlineoverride

Definition at line 79 of file BaseIterator.hpp.

80  {
82  ++m_Iterator;
83  return *this;
84  }

◆ operator+=()

TypedIterator& operator+= ( const unsigned int  increment)
inlineoverride

Definition at line 86 of file BaseIterator.hpp.

87  {
89  m_Iterator += increment;
90  return *this;
91  }

◆ operator-=()

TypedIterator& operator-= ( const unsigned int  increment)
inlineoverride

Definition at line 93 of file BaseIterator.hpp.

94  {
96  m_Iterator -= increment;
97  return *this;
98  }

◆ operator[]()

TypedIterator& operator[] ( const unsigned int  index)
inlineoverride

Definition at line 100 of file BaseIterator.hpp.

101  {
103  m_Iterator = m_Start + index;
104  return *this;
105  }

◆ Reset()

void Reset ( void *  data)
inlineoverride

Definition at line 73 of file BaseIterator.hpp.

74  {
75  m_Iterator = reinterpret_cast<T*>(data);
77  }

Member Data Documentation

◆ m_Iterator

◆ m_Start


The documentation for this class was generated from the following file:
ARMNN_ASSERT
#define ARMNN_ASSERT(COND)
Definition: Assert.hpp:14
armnn::TypedIterator::m_Iterator
T * m_Iterator
Definition: BaseIterator.hpp:108
armnn::TypedIterator::m_Start
T * m_Start
Definition: BaseIterator.hpp:109