OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TMIPtrArray< T, R, A > Class Template Reference

#include <owl/template.h>

Inheritance diagram for owl::TMIPtrArray< T, R, A >:
owl::TTypedArray< T, R, TStandardAllocator > owl::TStandardAllocator owl::TArrayBase

Public Types

typedef TPtrArrayIterator< R, TMIPtrArray< T, R, A > > Iterator
typedef Iterator iterator
Public Types inherited from owl::TTypedArray< T, R, TStandardAllocator >
typedef void(*) IterFunc(R, void *)
typedef bool(*) CondFunc(R, void *)
typedef TPtrArrayIterator< R, TTypedArray< T, R, TStandardAllocator > > Iterator
typedef Iterator iterator

Public Member Functions

 TMIPtrArray ()
 TMIPtrArray (int upper, int lower=0, int delta=0)
 ~TMIPtrArray ()
 TMIPtrArray (const TMIPtrArray< T, R, A > &array)
TMIPtrArray< T, R, A > & operator= (const TMIPtrArray< T, R, A > &array)
bool DestroyItem (R t)
bool Destroy (int loc)
void Flush (bool del=true)
Public Member Functions inherited from owl::TTypedArray< T, R, TStandardAllocator >
 TTypedArray ()
 ~TTypedArray ()
TTypedArray< T, R, TStandardAllocator > & operator= (const TTypedArray< T, R, TStandardAllocator > &array)
void RemoveEntry (int loc)
void SqueezeEntry (unsigned loc)
void Grow (int index)
int Add (R t)
void AddAt (R t, uint index)
bool DetachItem (R t)
bool Detach (int loc)
bool DestroyItem (R t)
bool Destroy (int loc)
bool HasMember (R t) const
int Find (R t) const
T & operator[] (int loc)
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

Friends

class TPtrArrayIterator< R, TMIPtrArray< T, R, A > >

Additional Inherited Members

Static Public Attributes inherited from owl::TArrayBase
static const int NPOS = -1
Protected Member Functions inherited from owl::TTypedArray< T, R, TStandardAllocator >
void Resize (int delta)
void Remove (int index)
Protected Attributes inherited from owl::TTypedArray< T, R, TStandardAllocator >
T * Data
Protected Attributes inherited from owl::TArrayBase
uint ItemCnt
uint Reserved

Detailed Description

template<class T, class R, class A = TStandardAllocator>
class owl::TMIPtrArray< T, R, A >

Definition at line 976 of file template.h.

Member Typedef Documentation

◆ Iterator

template<class T, class R, class A = TStandardAllocator>
typedef TPtrArrayIterator<R, TMIPtrArray<T, R, A> > owl::TMIPtrArray< T, R, A >::Iterator

Definition at line 981 of file template.h.

◆ iterator

template<class T, class R, class A = TStandardAllocator>
typedef Iterator owl::TMIPtrArray< T, R, A >::iterator

Definition at line 983 of file template.h.

Constructor & Destructor Documentation

◆ TMIPtrArray() [1/3]

template<class T, class R, class A>
owl::TMIPtrArray< T, R, A >::TMIPtrArray ( )
inline

Definition at line 1784 of file template.h.

◆ TMIPtrArray() [2/3]

template<class T, class R, class A>
owl::TMIPtrArray< T, R, A >::TMIPtrArray ( int upper,
int lower = 0,
int delta = 0 )
inline

◆ ~TMIPtrArray()

template<class T, class R, class A>
owl::TMIPtrArray< T, R, A >::~TMIPtrArray ( )
inline

Definition at line 1788 of file template.h.

References Flush().

◆ TMIPtrArray() [3/3]

template<class T, class R, class A>
owl::TMIPtrArray< T, R, A >::TMIPtrArray ( const TMIPtrArray< T, R, A > & array)
inline

Member Function Documentation

◆ Destroy()

template<class T, class R, class A>
bool owl::TMIPtrArray< T, R, A >::Destroy ( int loc)
inline

◆ DestroyItem()

◆ Flush()

template<class T, class R, class A>
void owl::TMIPtrArray< T, R, A >::Flush ( bool del = true)

◆ operator=()

template<class T, class R, class A>
TMIPtrArray< T, R, A > & owl::TMIPtrArray< T, R, A >::operator= ( const TMIPtrArray< T, R, A > & array)
inline

Definition at line 1794 of file template.h.

References TMIPtrArray(), Flush(), and owl::TTypedArray< T, R, A >::operator=().

◆ TPtrArrayIterator< R, TMIPtrArray< T, R, A > >

template<class T, class R, class A = TStandardAllocator>
friend class TPtrArrayIterator< R, TMIPtrArray< T, R, A > >
friend

Definition at line 981 of file template.h.


The documentation for this class was generated from the following file: