This class template is used to maintain the integrity of set-relations in which an object whose key is to be modified is involved. More...
#include <ilserver/model.h>
Public Types | |
| typedef IlsSetContextList< KeyType > | Myself |
Myself is the type of the instantiated template class. | |
Public Member Functions | |
| IlsSetContextList (IlsRefCounted &holder) | |
This constructor takes a reference of type IlsRefCounted to the object holding the IlsSetContextList instance, generally *this. | |
| Myself & | operator<< (Context *context) |
This operator is used by the callback setSetContext() to add a set to the list of sets maintained by IlsSetContextList. | |
| Myself & | operator>> (Context *context) |
This operator is used by the callback unsetSetContext() to remove a set from the list of sets maintained by an instance of IlsSetContextList. | |
| void | rehash (CKeyTypeR oldt, CKeyTypeR newt) |
| You must call this function each time you modify the key associated with an object. | |
This class template is used to maintain the integrity of set-relations in which an object whose key is to be modified is involved.
Library: server
It is declared as a data member of each class that may be put in a set. It contains the list of the sets – in the form of pointers to instances of type IlsSetContext – to which an instance of the class in which it is declared belongs.
IlsOwnsSet, IlsSetContext, IlsUsesSet, setSetContext(), unsetSetContext().