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

holded array pointers to strings More...

#include <owl/template.h>

Inheritance diagram for owl::TMObjectArray< T, A >:
owl::TArrayBase owl::TMSortedObjectArray< T, TStandardAllocator > owl::TMSortedObjectArray< T, A > owl::TSortedObjectArray< T >

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::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)
 
bool DetachItem (const T &t)
 
bool Detach (int loc)
 

Protected Attributes

T ** Data
 
TMMemBlocks< AMem
 
- 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 auto NPOS = -1
 

Detailed Description

template<class T, class A = TStandardAllocator>
class owl::TMObjectArray< T, A >

holded array pointers to strings

Definition at line 630 of file template.h.

Member Typedef Documentation

◆ CondFunc

template<class T , class A = TStandardAllocator>
typedef bool(* owl::TMObjectArray< T, A >::CondFunc) (const T &, void *)

Definition at line 638 of file template.h.

◆ Iterator

template<class T , class A = TStandardAllocator>
typedef TObjArrayIterator<T, TMObjectArray<T, A> > owl::TMObjectArray< T, A >::Iterator

Definition at line 640 of file template.h.

◆ iterator

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

Definition at line 642 of file template.h.

◆ IterFunc

template<class T , class A = TStandardAllocator>
typedef void(* owl::TMObjectArray< T, A >::IterFunc) (T &, void *)

Definition at line 637 of file template.h.

Constructor & Destructor Documentation

◆ TMObjectArray() [1/3]

template<class T , class A = TStandardAllocator>
owl::TMObjectArray< T, A >::TMObjectArray ( int upper,
int lower = 0,
int = 0 )
inline

Definition at line 644 of file template.h.

References owl::TMObjectArray< T, A >::Resize().

◆ TMObjectArray() [2/3]

template<class T , class A = TStandardAllocator>
owl::TMObjectArray< T, A >::TMObjectArray ( )
inline

Definition at line 646 of file template.h.

◆ ~TMObjectArray()

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

Definition at line 1114 of file template.h.

◆ TMObjectArray() [3/3]

Member Function Documentation

◆ Add()

template<class T , class A >
int owl::TMObjectArray< T, A >::Add ( const T & t)
inline

Definition at line 1139 of file template.h.

◆ AddAt()

template<class T , class A >
void owl::TMObjectArray< T, A >::AddAt ( const T & t,
uint index )

Definition at line 1147 of file template.h.

◆ Destroy()

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

Definition at line 1178 of file template.h.

References owl::__owl_destruct().

◆ DestroyItem()

template<class T , class A >
bool owl::TMObjectArray< T, A >::DestroyItem ( const T & t)
inline

Definition at line 1164 of file template.h.

References owl::__owl_destruct().

◆ Detach()

template<class T , class A = TStandardAllocator>
bool owl::TMObjectArray< T, A >::Detach ( int loc)
protected

◆ DetachItem()

template<class T , class A = TStandardAllocator>
bool owl::TMObjectArray< T, A >::DetachItem ( const T & t)
protected

◆ Find()

template<class T , class A >
int owl::TMObjectArray< T, A >::Find ( const T & t) const

Definition at line 1196 of file template.h.

◆ FirstThat()

template<class T , class A >
T * owl::TMObjectArray< T, A >::FirstThat ( CondFunc cond,
void * args ) const

Definition at line 1225 of file template.h.

◆ Flush()

template<class T , class A >
void owl::TMObjectArray< T, A >::Flush ( )

Definition at line 1243 of file template.h.

References owl::__owl_destruct().

◆ ForEach()

template<class T , class A >
void owl::TMObjectArray< T, A >::ForEach ( IterFunc iter,
void * args )

Definition at line 1218 of file template.h.

◆ GetAllocator()

template<class T , class A = TStandardAllocator>
TMMemBlocks< A > & owl::TMObjectArray< T, A >::GetAllocator ( )
inline

Definition at line 650 of file template.h.

References owl::TMObjectArray< T, A >::Mem.

◆ Grow()

template<class T , class A >
void owl::TMObjectArray< T, A >::Grow ( int index)
inline

Definition at line 1253 of file template.h.

◆ HasMember()

template<class T , class A >
bool owl::TMObjectArray< T, A >::HasMember ( const T & t) const
inline

Definition at line 1191 of file template.h.

◆ LastThat()

template<class T , class A >
T * owl::TMObjectArray< T, A >::LastThat ( CondFunc cond,
void * args ) const

Definition at line 1234 of file template.h.

◆ operator=()

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

Definition at line 1122 of file template.h.

◆ operator[]() [1/2]

template<class T , class A >
T & owl::TMObjectArray< T, A >::operator[] ( int loc)
inline

Definition at line 1204 of file template.h.

References PRECONDITION.

◆ operator[]() [2/2]

template<class T , class A >
const T & owl::TMObjectArray< T, A >::operator[] ( int loc) const
inline

Definition at line 1211 of file template.h.

References PRECONDITION.

◆ Remove()

template<class T , class A >
void owl::TMObjectArray< T, A >::Remove ( int index)
inlineprotected

Definition at line 1280 of file template.h.

◆ RemoveEntry()

template<class T , class A = TStandardAllocator>
void owl::TMObjectArray< T, A >::RemoveEntry ( int loc)
inline

Definition at line 652 of file template.h.

References owl::TMObjectArray< T, A >::Remove().

◆ Resize()

template<class T , class A >
void owl::TMObjectArray< T, A >::Resize ( int delta)
protected

Definition at line 1261 of file template.h.

◆ SqueezeEntry()

template<class T , class A = TStandardAllocator>
void owl::TMObjectArray< T, A >::SqueezeEntry ( unsigned loc)
inline

Definition at line 653 of file template.h.

References owl::TMObjectArray< T, A >::Remove().

Friends And Related Symbol Documentation

◆ TObjArrayIterator< T, TMObjectArray< T, A > >

template<class T , class A = TStandardAllocator>
friend class TObjArrayIterator< T, TMObjectArray< T, A > >
friend

Definition at line 640 of file template.h.

Member Data Documentation

◆ Data

template<class T , class A = TStandardAllocator>
T** owl::TMObjectArray< T, A >::Data
protected

Definition at line 680 of file template.h.

◆ Mem

template<class T , class A = TStandardAllocator>
TMMemBlocks<A> owl::TMObjectArray< T, A >::Mem
protected

Definition at line 681 of file template.h.


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