mxmNumberSet Class Reference
[modularMX Runtime Platform Core]

Leightweight Container holding non-negative int-valued numbers. More...

#include <mxmNumberSet.h>

Inheritance diagram for mxmNumberSet:

mxmObject List of all members.

Public Member Functions

void addNumber (int numba)
 If the number is not already in the set, it is added.
void deleteNumber (int numba)
 If the number is in the set, it is removed.
int size (void)
 Returns the number of numbers stored in the container.
void clear (void)
 Well, clears the container.
void addOffset (int offset)
 Adds the given offset to all numbers in the set.
void resetIterator (void)
 Prepares container for number readout.
int nextNumber (void)
 Returns next number or -1, if iteration finished or iterator otherwise invalidated.

Private Member Functions

bool locate (int numba, Bucket **bucket_ptr, int *index_ptr, mxmList::Iterator *bucket_iterator=0)

Private Attributes

mxmList NumbaBuckets
Bucket * LastBucket
int NumbaCount
bool IteratorValid
mxmList::Iterator BucketIterator
Bucket * CurrentBucket
int CurrentIndex
void * StableABIDataExtension

Classes

class  Bucket

Detailed Description

Leightweight Container holding non-negative int-valued numbers.

Note that since the items managed by this class are not subclassed from mxmObject, the class is not a true modularMX container, and as such it is not subclassed from mxmContainer.

Author:
[khe] Kai Hergenroether


Member Function Documentation

void mxmNumberSet::addNumber int  numba  ) 
 

If the number is not already in the set, it is added.

If a negative number is passed as argument, the method does nothing.

The inbuilt iterator is invalidated.

void mxmNumberSet::addOffset int  offset  ) 
 

Adds the given offset to all numbers in the set.

Invalidates the crappy inbuilt iterator.

void mxmNumberSet::clear void   ) 
 

Well, clears the container.

Invalidates the inbuilt iterator.

void mxmNumberSet::deleteNumber int  numba  ) 
 

If the number is in the set, it is removed.

Invalidates the inbuilt iterator.

bool mxmNumberSet::locate int  numba,
Bucket **  bucket_ptr,
int *  index_ptr,
mxmList::Iterator bucket_iterator = 0
[private]
 

If the number is in the set, the method returns true and writes its location info to bucket_ptr and index_ptr. If the number is not in the set, the method returns false..


The documentation for this class was generated from the following files:
Generated on Fri Jun 29 17:21:04 2007 for MxPEG SDK by  doxygen 1.4.6