|
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Holds array pointers to strings. More...
#include <owl/template.h>
Public Types | |
| typedef void(*) | IterFunc(T &, void *) |
| typedef bool(*) | CondFunc(const T &, void *) |
| typedef TObjArrayIterator< T, TMObjectArray< T, A > > | Iterator |
| typedef Iterator | iterator |
Public Member Functions | |
| TMObjectArray (int upper, int lower=0, int=0) | |
| TMObjectArray () | |
| ~TMObjectArray () | |
| TMObjectArray (const TMObjectArray< T, A > &array) | |
| TMObjectArray< T, A > & | operator= (const TMObjectArray< T, A > &array) |
| TMMemBlocks< A > & | GetAllocator () |
| void | RemoveEntry (int loc) |
| void | SqueezeEntry (unsigned loc) |
| void | Grow (int index) |
| int | Add (const T &t) |
| void | AddAt (const T &t, uint index) |
| bool | DestroyItem (const T &t) |
| bool | Destroy (int loc) |
| bool | HasMember (const T &t) const |
| int | Find (const T &t) const |
| T & | operator[] (int loc) |
| const T & | operator[] (int loc) const |
| void | ForEach (IterFunc iter, void *args) |
| T * | FirstThat (CondFunc cond, void *args) const |
| T * | LastThat (CondFunc cond, void *args) const |
| void | Flush () |
| Public Member Functions inherited from owl::TStandardAllocator | |
| void | operator delete (void *ptr) |
| void * | operator new (size_t sz) |
| void * | Alloc (size_t sz) |
| void | Free (void *ptr) |
| void * | ReAlloc (void *ptr, size_t sz) |
| Public Member Functions inherited from owl::TArrayBase | |
| TArrayBase () | |
| uint | GetItemsInContainer () const |
| int | LowerBound () const |
| int | UpperBound () const |
| uint | ArraySize () const |
| bool | IsFull () const |
| bool | IsEmpty () const |
| uint | Size () const |
| uint | Count () const |
| bool | Empty () const |
| uint | size () const |
| bool | empty () const |
Protected Member Functions | |
| void | Resize (int delta) |
| void | Remove (int index) |
Protected Attributes | |
| T ** | Data |
| TMMemBlocks< A > | Mem |
| Protected Attributes inherited from owl::TArrayBase | |
| uint | ItemCnt |
| uint | Reserved |
Friends | |
| class | TObjArrayIterator< T, TMObjectArray< T, A > > |
Additional Inherited Members | |
| Static Public Attributes inherited from owl::TArrayBase | |
| static const int | NPOS = -1 |
Holds array pointers to strings.
Definition at line 697 of file template.h.
| typedef bool(*) owl::TMObjectArray< T, A >::CondFunc(const T &, void *) |
Definition at line 703 of file template.h.
| typedef TObjArrayIterator<T, TMObjectArray<T, A> > owl::TMObjectArray< T, A >::Iterator |
Definition at line 705 of file template.h.
| typedef Iterator owl::TMObjectArray< T, A >::iterator |
Definition at line 707 of file template.h.
| typedef void(*) owl::TMObjectArray< T, A >::IterFunc(T &, void *) |
Definition at line 702 of file template.h.
|
inline |
Definition at line 709 of file template.h.
|
inline |
Definition at line 711 of file template.h.
|
inline |
Definition at line 1252 of file template.h.
| owl::TMObjectArray< T, A >::TMObjectArray | ( | const TMObjectArray< T, A > & | array | ) |
Definition at line 1239 of file template.h.
References TMObjectArray(), owl::__owl_construct(), Data, owl::TArrayBase::ItemCnt, Mem, owl::TArrayBase::Reserved, and Resize().
|
inline |
Definition at line 1278 of file template.h.
References owl::__owl_construct(), Data, owl::TArrayBase::ItemCnt, Mem, owl::TArrayBase::Reserved, and Resize().
| void owl::TMObjectArray< T, A >::AddAt | ( | const T & | t, |
| uint | index ) |
Definition at line 1287 of file template.h.
References owl::__owl_construct(), Add(), Data, owl::TArrayBase::ItemCnt, Mem, owl::TArrayBase::Reserved, Resize(), and owl::TArrayBase::Size().
|
inline |
Definition at line 1320 of file template.h.
References owl::__owl_destruct(), Data, Mem, Remove(), and owl::TArrayBase::Size().
|
inline |
Definition at line 1305 of file template.h.
References owl::__owl_destruct(), Data, Find(), Mem, owl::TArrayBase::NPOS, and Remove().
| int owl::TMObjectArray< T, A >::Find | ( | const T & | t | ) | const |
Definition at line 1340 of file template.h.
References Data, owl::TArrayBase::NPOS, and owl::TArrayBase::Size().
| T * owl::TMObjectArray< T, A >::FirstThat | ( | CondFunc | cond, |
| void * | args ) const |
Definition at line 1370 of file template.h.
References Data, and owl::TArrayBase::Size().
| void owl::TMObjectArray< T, A >::Flush | ( | ) |
Definition at line 1388 of file template.h.
References owl::__owl_destruct(), Data, owl::TArrayBase::ItemCnt, Mem, and owl::TArrayBase::Size().
| void owl::TMObjectArray< T, A >::ForEach | ( | IterFunc | iter, |
| void * | args ) |
Definition at line 1363 of file template.h.
References Data, and owl::TArrayBase::Size().
|
inline |
Definition at line 715 of file template.h.
References Mem.
|
inline |
Definition at line 1399 of file template.h.
References owl::TArrayBase::Reserved, and Resize().
|
inline |
Definition at line 1334 of file template.h.
References Find(), and owl::TArrayBase::NPOS.
| T * owl::TMObjectArray< T, A >::LastThat | ( | CondFunc | cond, |
| void * | args ) const |
Definition at line 1379 of file template.h.
References Data, and owl::TArrayBase::Size().
| TMObjectArray< T, A > & owl::TMObjectArray< T, A >::operator= | ( | const TMObjectArray< T, A > & | array | ) |
Definition at line 1260 of file template.h.
References TMObjectArray(), owl::__owl_construct(), Data, Flush(), owl::TArrayBase::ItemCnt, Mem, owl::TArrayBase::Reserved, and Resize().
|
inline |
Definition at line 1349 of file template.h.
References Data, PRECONDITION, and owl::TArrayBase::Size().
|
inline |
Definition at line 1356 of file template.h.
References Data, PRECONDITION, and owl::TArrayBase::Size().
|
inlineprotected |
Definition at line 1428 of file template.h.
References Data, and owl::TArrayBase::ItemCnt.
|
inline |
Definition at line 717 of file template.h.
References Remove().
|
protected |
Definition at line 1407 of file template.h.
References Data, and owl::TArrayBase::Reserved.
|
inline |
Definition at line 718 of file template.h.
References Remove().
|
friend |
Definition at line 705 of file template.h.
|
protected |
Definition at line 745 of file template.h.
|
protected |
Definition at line 746 of file template.h.