![]() |
MAK Data Logger API Documentation for DIS
|
class 'DtUniqueEntryArray' More...
Collaboration diagram for MAKLogger::DtUniqueEntryArray:Public Member Functions | |
| DtUniqueEntryArray () | |
| Default constructor. | |
| ~DtUniqueEntryArray () | |
| Destructor. | |
| DtUniqueEntryArray (const DtUniqueEntryArray &src) | |
| Copy constructor. | |
| DtUniqueEntryArray & | operator= (const DtUniqueEntryArray &src) |
| Assignment operator. | |
| bool | operator== (const DtUniqueEntryArray &rhs) const |
| Comparison operators. | |
| bool | operator!= (const DtUniqueEntryArray &rhs) const |
| unsigned int | operator[] (int ix) const |
| Subscript operator. | |
| int | count () const |
| bool | isOK () const |
| unsigned int | error () const |
| unsigned int | minVal () const |
| unsigned int | maxVal () const |
| int | lookup (unsigned int val) const |
| int | remove (unsigned int val) |
| int | append (unsigned int val) |
| void | reset () |
Protected Member Functions | |
| void | removeAt (int ix) |
| bool | insertAt (int ix) |
| bool | resizeTo (int ix) |
Protected Attributes | |
| unsigned int * | myArray |
| int | sz_nu |
| int | sz_na |
| int | _isOK |
| unsigned int | ErrFlg |
class 'DtUniqueEntryArray'
The class 'DtUniqueEntryArray' implements a sorted-array storage for (unique) unsigned integer entries. Its "search", "add", and "remove" operations are based on fast bisection-search algorithms. The necessary memory (for the data) is managed automatically, with "smart" allocation (exponential growth with linear cutoff, producing log(n) actual reallocations for n consequtive expansions).
| MAKLogger::DtUniqueEntryArray::DtUniqueEntryArray | ( | ) |
Default constructor.
| MAKLogger::DtUniqueEntryArray::~DtUniqueEntryArray | ( | ) |
Destructor.
| MAKLogger::DtUniqueEntryArray::DtUniqueEntryArray | ( | const DtUniqueEntryArray & | src | ) |
Copy constructor.
| int MAKLogger::DtUniqueEntryArray::append | ( | unsigned int | val | ) |
|
inline |
References sz_nu.
|
inline |
References ErrFlg.
|
protected |
|
inline |
References _isOK.
| int MAKLogger::DtUniqueEntryArray::lookup | ( | unsigned int | val | ) | const |
| bool MAKLogger::DtUniqueEntryArray::operator!= | ( | const DtUniqueEntryArray & | rhs | ) | const |
| DtUniqueEntryArray& MAKLogger::DtUniqueEntryArray::operator= | ( | const DtUniqueEntryArray & | src | ) |
Assignment operator.
| bool MAKLogger::DtUniqueEntryArray::operator== | ( | const DtUniqueEntryArray & | rhs | ) | const |
Comparison operators.
|
inline |
Subscript operator.
! Definitions of the inlined methods of the 'DtUniqueEntryArray' class
| int MAKLogger::DtUniqueEntryArray::remove | ( | unsigned int | val | ) |
|
protected |
| void MAKLogger::DtUniqueEntryArray::reset | ( | ) |
|
protected |
|
protected |
Referenced by isOK().
|
protected |
Referenced by error().
|
protected |
Referenced by maxVal(), minVal(), and operator[]().
|
protected |
|
protected |
Referenced by count(), maxVal(), minVal(), and operator[]().