9#if !defined(OWL_CONTAIN_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
46#if defined(_OWLDLL) || defined(BI_APP_DLL)
93 void FreeItem(T* item);
110: items(0), count(0), limit(0), shouldDelete(
shldDel)
143 return *items[index];
150 InsertAt(count, item);
161 if (count-index != 0)
162 memmove(
reinterpret_cast<void*
>(&items[index+1]),
reinterpret_cast<void*
>(&items[index]),
163 (count-index)*
sizeof(T*));
173 if (index != count-1)
174 memmove(
reinterpret_cast<void*
>(&items[index]),
reinterpret_cast<void*
>(&items[index+1]),
175 (count-(index+1))*
sizeof(T*));
183 T& item = operator[](index);
192 for (
uint i = 0;
i < count;
i++)
193 FreeItem(&(
operator[](
i)));
#define PRECONDITION(condition)
Simple template holding pointers to Ts used internally by ObjectWindows Controls.
void RemoveAt(uint index)
TCollection(uint aLimit, bool shldDel=true)
void InsertAt(uint index, T *item)
void SetLimit(uint aLimit)
T & operator[](uint index) const
Object Windows Library (OWLNext Core)
TTypedArray< int, int, TStandardAllocator > TIntArray
TObjectArray< tstring > TStringArray
TPtrArrayIterator< LPARAM, TLParamArray > TLParamArrayIterator
TSortedObjectArray< tstring > TSortedStringArray
TPtrArrayIterator< uint32, TUint32Array > TUint32ArrayIterator
TTypedArray< uint32, uint32, TStandardAllocator > TUint32Array
TObjArrayIterator< tstring, TSortedStringArray > TSortedStringArrayIterator
TObjArrayIterator< tstring, TStringArray > TStringArrayIterator
TTypedArray< LPARAM, LPARAM, TStandardAllocator > TLParamArray
TPtrArrayIterator< int, TIntArray > TIntArrayIterator
const uint MAXENTRIES
Maximum number of entries in each Vector.
General definitions used by all ObjectWindows programs.
Definition of container classes used and made available by OWL.