ArmNN
 24.02
Int32Encoder Class Reference

#include <BaseIterator.hpp>

Inheritance diagram for Int32Encoder:
[legend]
Collaboration diagram for Int32Encoder:
[legend]

Public Member Functions

 Int32Encoder (int32_t *data)
 
 Int32Encoder ()
 
void Set (float right) override
 
float Get () const override
 
- Public Member Functions inherited from TypedIterator< int32_t, Encoder< float > >
 TypedIterator (int32_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
 
- Public Member Functions inherited from Encoder< float >
 Encoder ()
 
virtual ~Encoder ()
 
virtual float Get () const=0
 
- Public Member Functions inherited from BaseIterator
 BaseIterator ()
 
virtual ~BaseIterator ()
 

Additional Inherited Members

- Protected Attributes inherited from TypedIterator< int32_t, Encoder< float > >
int32_t * m_Iterator
 
int32_t * m_Start
 

Detailed Description

Definition at line 625 of file BaseIterator.hpp.

Constructor & Destructor Documentation

◆ Int32Encoder() [1/2]

Int32Encoder ( int32_t *  data)
inline

Definition at line 628 of file BaseIterator.hpp.

629  : TypedIterator(data) {}

◆ Int32Encoder() [2/2]

Int32Encoder ( )
inline

Definition at line 631 of file BaseIterator.hpp.

632  : Int32Encoder(nullptr) {}

Member Function Documentation

◆ Get()

float Get ( ) const
inlineoverride

Definition at line 639 of file BaseIterator.hpp.

640  {
641  return static_cast<float>(*m_Iterator);
642  }

◆ Set()

void Set ( float  right)
inlineoverridevirtual

Implements Encoder< float >.

Definition at line 634 of file BaseIterator.hpp.

635  {
636  *m_Iterator = static_cast<int32_t>(right);
637  }

References TypedIterator< int32_t, Encoder< float > >::m_Iterator.


The documentation for this class was generated from the following file:
armnn::TypedIterator< int32_t, Encoder< float > >::m_Iterator
int32_t * m_Iterator
Definition: BaseIterator.hpp:108
armnn::TypedIterator< int32_t, Encoder< float > >::TypedIterator
TypedIterator(int32_t *data=nullptr)
Definition: BaseIterator.hpp:69
armnn::Int32Encoder::Int32Encoder
Int32Encoder()
Definition: BaseIterator.hpp:631