#include <mlinknode.h>
Inheritance diagram for LinkNode:
Public Methods | |
StsLnNB | connect (LinkNode const &other) |
StsLnNd | reserve (LinkNode const &other) |
StsLnNd | release (IndLnNd iOther) |
StsLnNd | disconnect (LinkNode const &other, IndLnNd iOther) |
void | disconnectAll () |
void | releaseAll () |
Bool | isConnected (IndLnNd iOther) const |
Bool | isConnected (ClassName clsName) const |
void | addProtect () |
void | removeProtect () |
NodeLink const * | iterConnection (LinkNodeIndex &i) const |
NodeLink const * | findConnection (LinkNode const &item) const |
virtual CPtr | getHost (ClassName className) const |
Definition at line 29 of file mlinknode.h.
|
Sets the node as protected (actually increments a protection counter). When the node is protected, no notifications are sent to it. Definition at line 108 of file mlinknode.h. Referenced by connect(), disconnect(), disconnectAll(), release(), and reserve(). |
|
Creates a bi-directional connection between this and the other node.
Definition at line 16 of file mlinknode.cc. References addProtect(), and removeProtect(). |
|
Disconnects the connection in both directions.
Definition at line 26 of file mlinknode.cc. References addProtect(), getHost(), and removeProtect(). Referenced by disconnectAll(). |
|
Disconnects all connections.
Definition at line 87 of file mlinknode.cc. References addProtect(), disconnect(), iterConnection(), and removeProtect(). Referenced by SuspendLinkNodeNotify::releaseAll(). |
|
Finds and returns the NodeLink object connecting this node to the other given node.
Definition at line 125 of file mlinknode.h. |
|
Returns the owner object for the node, in case the node is owned as an attribute, not inherited. If it is inherited, returns pointer to itself. Reimplemented in IndirLinkNode. Definition at line 139 of file mlinknode.h. Referenced by disconnect(). |
|
Is the node connected to any LinkNode belonging to the given class?
Definition at line 104 of file mlinknode.cc. |
|
Is the node connected to any other LinkNode.
Definition at line 93 of file mlinknode.h. |
|
Connection iteration. Returns NULL when the value is over... Definition at line 116 of file mlinknode.h. Referenced by disconnectAll(). |
|
Releases a reservation, but does not disconnect the other object.
Definition at line 71 of file mlinknode.cc. References addProtect(), removeProtect(), and setReleasedBy(). |
|
Releases all connections, but does not disconnect them.
Reimplemented in SuspendLinkNodeNotify. |
|
Removes protection from the node (decrements a protection counter).
Definition at line 262 of file mlinknode.cc. Referenced by connect(), disconnect(), disconnectAll(), release(), and reserve(). |
|
Creates a connection that reserves the other object. Reservation implies an ownership relation (reserver owns the reservee). Definition at line 53 of file mlinknode.cc. References addProtect(), and removeProtect(). |