OWLNext 7.0
Borland's Object Windows Library for the modern age
|
#include <owl/template.h>
Public Types | |
typedef void(* | IterFunc) (T &, void *) |
typedef bool(* | CondFunc) (const T &, void *) |
typedef TBaseListIterator< T > | Iterator |
typedef Iterator | iterator |
Public Member Functions | |
TBaseList () | |
TBaseList (int, int lower=0, int delta=0) | |
~TBaseList () | |
int | LowerBound () const |
uint | Size () const |
int | UpperBound () const |
uint | ArraySize () const |
bool | IsFull () const |
bool | Empty () const |
bool | IsEmpty () const |
uint | GetItemsInContainer () const |
void | Add (const T &data) |
add new item at end of list | |
void | Add (TBaseListIterator< T > *iter, const T &data) |
add new item after iterator, if 0 add before first | |
void | Push (const T &data) |
add new item at begin of list | |
void | PushBack (const T &data) |
add new item at end of list | |
T | Pop () |
remove 1 item return data item | |
const T & | Top () |
return top of list | |
const T & | Bottom () |
return bottom of array | |
void | Flush () |
Flush all items. | |
bool | DetachItem (const T &t) |
DetachItem( detach item and delete it. | |
bool | Detach (int loc) |
Detach( but and delete it. | |
bool | HasMember (const T &t) const |
check item in container | |
TBaseNode< T > * | Find (const T &t) const |
Find. | |
void | ForEach (IterFunc iter, void *args) |
iterates all strings | |
T * | FirstThat (CondFunc cond, void *args) const |
FirstThat( return first member. | |
T * | LastThat (CondFunc cond, void *args) const |
LastThat return last member. | |
Protected Member Functions | |
bool | Remove (TBaseNode< T > *t) |
remove item from list not delete node | |
int | Add (TBaseNode< T > *node, const T &data) |
add new item after item, if 0 add before first return index | |
int | Add (TBaseNode< T > *node) |
add new item at end of list return index | |
int | Add (TBaseNode< T > *item, TBaseNode< T > *node) |
add new item after item, if 0 add before first | |
Protected Attributes | |
TBaseNode< T > * | First |
TBaseNode< T > * | Last |
uint | ItemSize |
optimization for Size() | |
Static Protected Attributes | |
static const auto | NPOS = -1 |
Friends | |
class | TBaseListIterator< T > |
Definition at line 935 of file template.h.
typedef bool(* owl::TBaseList< T >::CondFunc) (const T &, void *) |
Definition at line 938 of file template.h.
typedef TBaseListIterator<T> owl::TBaseList< T >::Iterator |
Definition at line 940 of file template.h.
typedef Iterator owl::TBaseList< T >::iterator |
Definition at line 942 of file template.h.
typedef void(* owl::TBaseList< T >::IterFunc) (T &, void *) |
Definition at line 937 of file template.h.
|
inline |
Definition at line 1900 of file template.h.
|
inline |
Definition at line 1908 of file template.h.
|
inline |
Definition at line 1916 of file template.h.
|
inline |
add new item at end of list
Definition at line 1923 of file template.h.
|
inline |
add new item after iterator, if 0 add before first
Definition at line 1931 of file template.h.
|
protected |
add new item after item, if 0 add before first
Definition at line 2116 of file template.h.
|
protected |
add new item at end of list return index
Definition at line 2098 of file template.h.
|
inlineprotected |
add new item after item, if 0 add before first return index
Definition at line 2091 of file template.h.
|
inline |
Definition at line 952 of file template.h.
References owl::TBaseList< T >::Size().
|
inline |
return bottom of array
Definition at line 1969 of file template.h.
bool owl::TBaseList< T >::Detach | ( | int | loc | ) |
Detach( but and delete it.
Definition at line 2001 of file template.h.
bool owl::TBaseList< T >::DetachItem | ( | const T & | t | ) |
DetachItem( detach item and delete it.
Definition at line 1989 of file template.h.
|
inline |
Definition at line 954 of file template.h.
References owl::TBaseList< T >::First.
TBaseNode< T > * owl::TBaseList< T >::Find | ( | const T & | t | ) | const |
Find.
Definition at line 2024 of file template.h.
T * owl::TBaseList< T >::FirstThat | ( | CondFunc | cond, |
void * | args ) const |
FirstThat( return first member.
Definition at line 2042 of file template.h.
void owl::TBaseList< T >::Flush | ( | ) |
Flush all items.
Definition at line 1976 of file template.h.
void owl::TBaseList< T >::ForEach | ( | IterFunc | iter, |
void * | args ) |
iterates all strings
Definition at line 2034 of file template.h.
|
inline |
Definition at line 956 of file template.h.
References owl::TBaseList< T >::Size().
|
inline |
check item in container
Definition at line 2017 of file template.h.
|
inline |
Definition at line 955 of file template.h.
References owl::TBaseList< T >::Empty().
|
inline |
Definition at line 953 of file template.h.
T * owl::TBaseList< T >::LastThat | ( | CondFunc | cond, |
void * | args ) const |
LastThat return last member.
Definition at line 2052 of file template.h.
|
inline |
Definition at line 949 of file template.h.
|
inline |
remove 1 item return data item
Definition at line 1952 of file template.h.
|
inline |
add new item at begin of list
Definition at line 1938 of file template.h.
|
inline |
add new item at end of list
Definition at line 1945 of file template.h.
|
protected |
remove item from list not delete node
Definition at line 2062 of file template.h.
|
inline |
Definition at line 950 of file template.h.
References owl::TBaseList< T >::ItemSize.
|
inline |
return top of list
Definition at line 1962 of file template.h.
|
inline |
Definition at line 951 of file template.h.
References owl::TBaseList< T >::Size().
|
friend |
Definition at line 940 of file template.h.
|
protected |
Definition at line 1003 of file template.h.
|
protected |
optimization for Size()
Definition at line 1005 of file template.h.
|
protected |
Definition at line 1004 of file template.h.
|
staticprotected |
Definition at line 1007 of file template.h.