golib  0.5
goNibbleArray Class Reference

#include <gospecialarrays.h>

Public Member Functions

 goNibbleArray (goSize_t numberOfNibbles)
 
void set (goSize_t i, goUInt8 nibble)
 
goUInt8 get (goSize_t nibbleNumber)
 
goUInt8 operator[] (goSize_t nibbleNumber)
 
void fill (goUInt8 f)
 
void OR (goUInt8 value, goSize_t nibbleNumber)
 
goArray< goNibbleArray_t > & getArray ()
 

Detailed Description

Provides an array of nibbles (4-bit units).

Attention
THERE IS A BUG IN THIS CLASS; IT IS A T L E A S T NOT THREADSAFE!
Author
Christian Gosch
Date
6.8.2001
See also
goResolutionManager

Constructor & Destructor Documentation

◆ goNibbleArray()

goNibbleArray::goNibbleArray ( goSize_t  numberOfNibbles)
inline
Parameters
numberOfNibblesSize of the array in nibbles

Member Function Documentation

◆ get()

goUInt8 goNibbleArray::get ( goSize_t  nibbleNumber)
inline
Parameters
nibbleNumberIndex of the nibble to be returned
Returns
Value of the nibble with index nibbleNumber. Only the lower 4 bits of the return value are used.

◆ operator[]()

goUInt8 goNibbleArray::operator[] ( goSize_t  nibbleNumber)
inline
Parameters
nibbleNumberIndex of the nibble to be returned
Returns
Value of the nibble with index nibbleNumber. Only the lower 4 bits of the return value are used.

◆ set()

void goNibbleArray::set ( goSize_t  i,
goUInt8  nibble 
)
inline
Parameters
iIndex of the nibble to be addressed
nibbleValue to set the nibble to (only the lower 4 bits may be used).

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