unsetContext
Category
User-defined function
Description
The unsetContext function is a callback that is used to invert relations. It is paired with the function setContext. This function must be declared in the target class. It is called automatically when the relation is broken.
Related Pattern
Bridge
Definition
void unsetContext(OriginType, Relation*, IlsRelationId);
This function takes the following arguments:
a reference to the origin of the relation or to an instance of a class from which it derives;
a pointer to the relation itself or
void*the relation identifier. This identifier helps you differentiate relations of the same type that have the same origin.
See Also
Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.