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

Simple template holding pointers to Ts used internally by ObjectWindows Controls. More...

#include <owl/contain.h>

Public Member Functions

 TCollection (uint aLimit, bool shldDel=true)
 
 ~TCollection ()
 
T & operator[] (uint index) const
 
int GetCount () const
 
int Append (T *item)
 
void InsertAt (uint index, T *item)
 
void RemoveAt (uint index)
 
void RemoveAll ()
 
void FreeAt (uint index)
 
void FreeAll ()
 

Protected Member Functions

void SetLimit (uint aLimit)
 

Detailed Description

template<class T>
class owl::TCollection< T >

Simple template holding pointers to Ts used internally by ObjectWindows Controls.

Definition at line 71 of file contain.h.

Constructor & Destructor Documentation

◆ TCollection()

template<class T >
owl::TCollection< T >::TCollection ( uint aLimit,
bool shldDel = true )

Definition at line 109 of file contain.h.

References owl::TCollection< T >::SetLimit().

◆ ~TCollection()

template<class T >
owl::TCollection< T >::~TCollection ( )

Definition at line 117 of file contain.h.

Member Function Documentation

◆ Append()

template<class T >
int owl::TCollection< T >::Append ( T * item)

Definition at line 148 of file contain.h.

◆ FreeAll()

template<class T >
void owl::TCollection< T >::FreeAll ( )

Definition at line 190 of file contain.h.

◆ FreeAt()

template<class T >
void owl::TCollection< T >::FreeAt ( uint index)

Definition at line 181 of file contain.h.

◆ GetCount()

template<class T >
int owl::TCollection< T >::GetCount ( ) const

Definition at line 126 of file contain.h.

◆ InsertAt()

template<class T >
void owl::TCollection< T >::InsertAt ( uint index,
T * item )

Definition at line 156 of file contain.h.

References PRECONDITION.

◆ operator[]()

template<class T >
T & owl::TCollection< T >::operator[] ( uint index) const

Definition at line 140 of file contain.h.

References PRECONDITION.

◆ RemoveAll()

template<class T >
void owl::TCollection< T >::RemoveAll ( )

Definition at line 133 of file contain.h.

◆ RemoveAt()

template<class T >
void owl::TCollection< T >::RemoveAt ( uint index)

Definition at line 170 of file contain.h.

References PRECONDITION.

◆ SetLimit()

template<class T >
void owl::TCollection< T >::SetLimit ( uint aLimit)
protected

Definition at line 206 of file contain.h.

References CHECK, and owl::MAXENTRIES.


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