MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
MAKLogger::DtUniqueEntryArray Class Reference

class 'DtUniqueEntryArray' More...

+ Collaboration diagram for MAKLogger::DtUniqueEntryArray:

Public Member Functions

 DtUniqueEntryArray ()
 Default constructor. More...
 
 ~DtUniqueEntryArray ()
 Destructor. More...
 
 DtUniqueEntryArray (const DtUniqueEntryArray &src)
 Copy constructor. More...
 
DtUniqueEntryArrayoperator= (const DtUniqueEntryArray &src)
 Assignment operator. More...
 
bool operator== (const DtUniqueEntryArray &rhs) const
 Comparison operators. More...
 
bool operator!= (const DtUniqueEntryArray &rhs) const
 
unsigned int operator[] (int ix) const
 Subscript operator. More...
 
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
 

Detailed Description

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).

Constructor & Destructor Documentation

MAKLogger::DtUniqueEntryArray::DtUniqueEntryArray ( )

Default constructor.

MAKLogger::DtUniqueEntryArray::~DtUniqueEntryArray ( )

Destructor.

MAKLogger::DtUniqueEntryArray::DtUniqueEntryArray ( const DtUniqueEntryArray src)

Copy constructor.

Member Function Documentation

int MAKLogger::DtUniqueEntryArray::append ( unsigned int  val)
int MAKLogger::DtUniqueEntryArray::count ( ) const
inline

References sz_nu.

unsigned int MAKLogger::DtUniqueEntryArray::error ( ) const
inline

References ErrFlg.

bool MAKLogger::DtUniqueEntryArray::insertAt ( int  ix)
protected
bool MAKLogger::DtUniqueEntryArray::isOK ( ) const
inline

References _isOK.

int MAKLogger::DtUniqueEntryArray::lookup ( unsigned int  val) const
unsigned int MAKLogger::DtUniqueEntryArray::maxVal ( ) const
inline

References myArray, and sz_nu.

unsigned int MAKLogger::DtUniqueEntryArray::minVal ( ) const
inline

References myArray, and sz_nu.

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.

unsigned int MAKLogger::DtUniqueEntryArray::operator[] ( int  ix) const
inline

Subscript operator.

! Definitions of the inlined methods of the 'DtUniqueEntryArray' class

References myArray, and sz_nu.

int MAKLogger::DtUniqueEntryArray::remove ( unsigned int  val)
void MAKLogger::DtUniqueEntryArray::removeAt ( int  ix)
protected
void MAKLogger::DtUniqueEntryArray::reset ( )
bool MAKLogger::DtUniqueEntryArray::resizeTo ( int  ix)
protected

Member Data Documentation

int MAKLogger::DtUniqueEntryArray::_isOK
protected

Referenced by isOK().

unsigned int MAKLogger::DtUniqueEntryArray::ErrFlg
protected

Referenced by error().

unsigned int* MAKLogger::DtUniqueEntryArray::myArray
protected

Referenced by maxVal(), minVal(), and operator[]().

int MAKLogger::DtUniqueEntryArray::sz_na
protected
int MAKLogger::DtUniqueEntryArray::sz_nu
protected

Referenced by count(), maxVal(), minVal(), and operator[]().


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

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)