setContext
Category
User-defined function
Description
The
setContext function is a callback that automatically maintains an inverse
relation defined by means of the class templates
IlsInvertedRelation or
IlsInvertedRelationList. This function must be declared in the target class.
It is called automatically when the relation is established. It is paired with the function
unsetContext.
Related Pattern
Bridge
Definition
void setContext(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.