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

A BlockIndex denotes the index of a block in a block list. More...

#include <BlockIndex.h>

Public Member Functions

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

Detailed Description

A BlockIndex denotes the index of a block in a block list.

Definition at line 28 of file BlockIndex.h.

Constructor & Destructor Documentation

◆ BlockIndex() [1/2]

coco::BlockIndex::BlockIndex ( )
inline

Definition at line 34 of file BlockIndex.h.

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

◆ BlockIndex() [2/2]

coco::BlockIndex::BlockIndex ( uint32_t  value)
inline

Definition at line 40 of file BlockIndex.h.

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

References set(), and value().

Member Function Documentation

◆ reset()

void coco::BlockIndex::reset ( void  )
inline

Definition at line 50 of file BlockIndex.h.

50{ _value = undefined; }

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

◆ set()

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

Definition at line 24 of file BlockIndex.cpp.

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

References value().

Referenced by BlockIndex().

◆ valid()

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

Definition at line 43 of file BlockIndex.h.

43{ return _value != undefined; }

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

◆ value()

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

Definition at line 46 of file BlockIndex.h.

46{ return _value; }

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


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