class TMIDequeAsDoubleList

More...

Definition#include <classlib/include/classlib/deques.h>
Template formTMIDequeAsDoubleList<class T>
InheritsTDequeAsDoubleListImp [public ], TShouldDelete [public ]
Inherited byTIDequeAsDoubleList, TIQueueAsDoubleList, TISTQueue, TMIQueueAsDoubleList
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members

Private Types


Detailed Description

template class TMIDequeAsDoubleList template class TMIDequeAsDoubleListIterator

Implements a managed dequeue of pointers to objects of type T, using a double-linked list as the underlying implementation.

typedef TDequeAsDoubleListImp<TMIDoubleListImp,T *> Parent

Parent

[private]

friend class TMIDequeAsDoubleListIterator

TMIDequeAsDoubleListIterator

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

(*IterFunc)

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

(*CondFunc)

T * GetLeft ()

GetLeft

T * GetRight ()

GetRight

void  PutLeft ( T *t )

PutLeft

void  PutRight ( T *t )

PutRight

T * PeekLeft ()

PeekLeft

[const]

T * PeekRight ()

PeekRight

[const]

void  Flush ( TShouldDelete::DeleteType dt = TShouldDelete::DefDelete )

Flush

empty the array; if the ownership is on also the elements in the array will be destroyed

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 that testing 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 that testing successful will be returned or NULL if no elements is ok

int  Detach ( T *t, TShouldDelete::DeleteType dt = TShouldDelete::NoDelete )

Detach

remove an element from queue without destroing it if need

template T * GetLeft ()

GetLeft

template T * GetRight ()

GetRight


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