ArmNN
 24.08
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 624 of file BaseIterator.hpp.

Constructor & Destructor Documentation

◆ Int32Encoder() [1/2]

Int32Encoder ( int32_t *  data)
inline

Definition at line 627 of file BaseIterator.hpp.

628  : TypedIterator(data) {}

◆ Int32Encoder() [2/2]

Int32Encoder ( )
inline

Definition at line 630 of file BaseIterator.hpp.

631  : Int32Encoder(nullptr) {}

Member Function Documentation

◆ Get()

float Get ( ) const
inlineoverride

Definition at line 638 of file BaseIterator.hpp.

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

◆ Set()

void Set ( float  right)
inlineoverridevirtual

Implements Encoder< float >.

Definition at line 633 of file BaseIterator.hpp.

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

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:107
armnn::TypedIterator< int32_t, Encoder< float > >::TypedIterator
TypedIterator(int32_t *data=nullptr)
Definition: BaseIterator.hpp:68
armnn::Int32Encoder::Int32Encoder
Int32Encoder()
Definition: BaseIterator.hpp:630