Server
API Reference Guide
Product Documentation:

Rogue Wave Server
Documentation Home
List of all members | Public Types | Public Member Functions
IlsSetContextList< KeyType > Class Template Reference

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.
 
Myselfoperator<< (Context *context)
 This operator is used by the callback setSetContext() to add a set to the list of sets maintained by IlsSetContextList.
 
Myselfoperator>> (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.
 

Detailed Description

template<class KeyType>
class IlsSetContextList< KeyType >

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.

Related Pattern
Bridge
See also
IlsOwnsSet, IlsSetContext, IlsUsesSet, setSetContext(), unsetSetContext().