ONE - On-device Neural Engine
Loading...
Searching...
No Matches
coco::InstrIndex Class Referencefinal

A InstrIndex denotes the index of an instruction in an instruction list. More...

#include <InstrIndex.h>

Public Member Functions

 InstrIndex ()
 
 InstrIndex (uint32_t value)
 
bool valid (void) const
 
uint32_t value (void) const
 
void set (uint32_t value)
 
void reset (void)
 

Detailed Description

A InstrIndex denotes the index of an instruction in an instruction list.

Definition at line 28 of file InstrIndex.h.

Constructor & Destructor Documentation

◆ InstrIndex() [1/2]

coco::InstrIndex::InstrIndex ( )
inline

Definition at line 34 of file InstrIndex.h.

34 : _value{undefined}
35 {
36 // DO NOTHING
37 }

◆ InstrIndex() [2/2]

coco::InstrIndex::InstrIndex ( uint32_t  value)
inline

Definition at line 40 of file InstrIndex.h.

40{ set(value); }
void set(uint32_t value)
uint32_t value(void) const
Definition InstrIndex.h:46

References set(), and value().

Member Function Documentation

◆ reset()

void coco::InstrIndex::reset ( void  )
inline

Definition at line 50 of file InstrIndex.h.

50{ _value = undefined; }

Referenced by coco::DLinkedList< Child, Parent >::leaving().

◆ set()

void coco::InstrIndex::set ( uint32_t  value)

Definition at line 24 of file InstrIndex.cpp.

25{
26 assert(value != undefined);
27 _value = value;
28}

References value().

Referenced by InstrIndex().

◆ valid()

bool coco::InstrIndex::valid ( void  ) const
inline

Definition at line 43 of file InstrIndex.h.

43{ return _value != undefined; }

Referenced by coco::DLinkedList< Child, Parent >::joined(), and coco::DLinkedList< Child, Parent >::leaving().

◆ value()

uint32_t coco::InstrIndex::value ( void  ) const
inline

Definition at line 46 of file InstrIndex.h.

46{ return _value; }

Referenced by InstrIndex(), coco::DLinkedList< Child, Parent >::leaving(), and set().


The documentation for this class was generated from the following files: