class TShouldDelete
|
[INTERNAL USE ONLY]
More... |
Definition | #include <classlib/include/classlib/shddel.h> |
Inherited by | TCache, TCacheArray, TCacheBlock, TDictionary, TDictionaryAsHashTable, TIArray, TIArrayAsVector, TIArrayAsVectorImp, TIBag, TIBagAsVector, TIDeque, TIDequeAsDoubleList, TIDequeAsVector, TIDictionary, TIDictionaryAsHashTable, TIQueue, TIQueueAsDoubleList, TIQueueAsVector, TISArray, TISArrayAsVector, TISTQueue, TISet, TISetAsVector, TIStack, TIStackAsList, TIStackAsVector, TMDictionaryAsHashTable, TMIArrayAsVector, TMIBagAsVector, TMIDequeAsDoubleList, TMIDequeAsVector, TMIDictionaryAsHashTable, TMIQueueAsDoubleList, TMIQueueAsVector, TMISArrayAsVector, TMISetAsVector, TMIStackAsList, TMIStackAsVector, TPriorityCache |
List of all Methods |
|
|
Public Types
Public Methods
Private Members
[INTERNAL USE ONLY]
This class is included in every indirect container; it control the
ownership of the elements in the container. All container by default
turn on the ownership; it means that when the container will be destroyd
all elements in the container will be destroyed too.
This behavory can be change calling de OwnsElements() function with the
value 0; that turn off the ownership of the container. This function will be
in every indirect container class because every one include TShouldDelete.
enum DeleteType { NoDelete, DefDelete, Delete }
| DeleteType |
TShouldDelete ( DeleteType dt = Delete )
| TShouldDelete |
int OwnsElements ()
| OwnsElements |
get information about the ownership of the container
void OwnsElements ( int del )
| OwnsElements |
set the ownership of the container: OwnsElements(0) turn off the ownership
OwnsElements(1) turn on the ownership of the container
int DelObj ( DeleteType dt )
| DelObj |
called internally from the container to determine the behavory
int delObj ( DeleteType dt )
| delObj |
DeleteType ShouldDelete
| ShouldDelete |
[private]
Generated by: nicola on gulliver.wadahome.it on Sun May 25 13:54:34 2003, using kdoc 2.0a53. |