class TDArrayAsVectorImp
|
[INTERNAL USE ONLY]
More... |
|
|
Public Methods
Public Members
- typedef void (*IterFunc) (T&, void *)
- typedef int (*CondFunc) (const T&, void *)
Protected Methods
- const T& ItemAt ( int i ) const
[INTERNAL USE ONLY]
template class TDArrayAsVectorImp
Implements the fundamental array operations for direct arrays, using
a vector as the underlying implementation.
typedef void (*IterFunc) (T&, void *)
| (*IterFunc) |
typedef int (*CondFunc) (const T&, void *)
| (*CondFunc) |
TDArrayAsVectorImp ( int upper, int lower, int delta )
| TDArrayAsVectorImp |
int Add ( const T& t )
| Add |
int Detach ( const T& t )
| Detach |
remove an element from array
int Detach ( int loc )
| Detach |
remove the element at index
int Destroy ( const T& t )
| Destroy |
remove the element from array
int Destroy ( int loc )
| Destroy |
remove the element from array at specifiet index
int HasMember ( const T& t )
| HasMember |
[const]
true if the element is in the array
int Find ( const T& t )
| Find |
[const]
find an element in the array; return the index or UINT_MAX if not found
T& operator [] ( int loc )
| operator [] |
convenience operator for extract elements from array
T& operator [] ( int loc )
| operator [] |
[const]
convenience operator for extract elements from array
void ForEach ( IterFunc iter, void *args )
| ForEach |
auto iterator: use an iterator function calling it for every element of the array;
the function must have a prototype like this: void iterFunc(T&, void* args);
T * FirstThat ( CondFunc cond, void *args )
| FirstThat |
[const]
auto iterator: use a test function calling it for every element of the array;
the function must have a prototype like this: int testFunc(const T&, void* args);
the function must return 0 if the test fail, != 0 if test is ok; the first element
tested successful will be returned or NULL if no elements is ok
T * LastThat ( CondFunc cond, void *args )
| LastThat |
[const]
auto iterator: use a test function calling it for every element of the array;
the function must have a prototype like this: int testFunc(const T&, void* args);
the function must return 0 if the test fail, != 0 if test is ok; the last element
tested successful will be returned or NULL if no elements is ok
const T& ItemAt ( int i )
| ItemAt |
[protected const]
Generated by: nicola on gulliver.wadahome.it on Sun May 25 13:54:34 2003, using kdoc 2.0a53. |