class TMDequeAsVector

More...

Definition#include <classlib/include/classlib/deques.h>
Template formTMDequeAsVector<class T>
InheritsTDequeAsVectorImp [public ]
Inherited byTDeque, TDequeAsVector, TMQueueAsVector, TQueue, TQueueAsVector
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members

Private Types


Detailed Description

template class TMDequeAsVector

Implements a managed dequeue of objects of type T, using a vector as the underlying implementation.

typedef TDequeAsVectorImp<TMVectorImp,T> Parent

Parent

[private]

friend class TMDequeAsVectorIterator

TMDequeAsVectorIterator

typedef void  (*IterFunc) (T&, void *)

(*IterFunc)

typedef int  (*CondFunc) (const T&, void *)

(*CondFunc)

 TMDequeAsVector ( unsigned max = DEFAULT_DEQUE_SIZE )

TMDequeAsVector

const T&  PeekLeft ()

PeekLeft

[const]

const T&  PeekRight ()

PeekRight

[const]

T  GetLeft ()

GetLeft

T  GetRight ()

GetRight

void  PutLeft ( const T& )

PutLeft

void  PutRight ( const T& )

PutRight

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

void  Flush ()

Flush

Discarge every element in the queue

template T  GetRight ()

GetRight

template void  PutRight ( const T& t )

PutRight

template T  GetLeft ()

GetLeft

template void  PutLeft ( const T& t )

PutLeft

template void  ForEach ( IterFunc iter, void *args )

ForEach

template T * FirstThat ( CondFunc cond, void *args )

FirstThat

[const]

template T * LastThat ( CondFunc cond, void *args )

LastThat

[const]


Generated by: nicola on gulliver.wadahome.it on Sun May 25 13:54:34 2003, using kdoc 2.0a53.