A template class to create an IObservableNode object for accessing a Graph node.
More...
#include <murl_logic_graph_observable_node.h>
template<class NodeType>
class Murl::Logic::GraphObservableNode< NodeType >
A template class to create an IObservableNode object for accessing a Graph node.
◆ ~GraphObservableNode()
The destructor.
Removes the reference from the graph node.
◆ IsValid()
◆ RemoveReference()
◆ GetReference() [1/2]
Get a reference to a graph node.
- Parameters
-
- Returns
- true if successful.
◆ GetReference() [2/2]
Get a reference to a graph node by identifier relative to a namespace.
- Parameters
-
namespaceNode | The graph namespace node. |
nodeIdPath | The node ID to find, with optional path specification when searching in sub-namespaces. |
- Returns
- true if successful.
◆ ResolveReference() [1/2]
Get a reference to a graph node by resolving a Graph::IReference node.
- Parameters
-
- Returns
- true if successful.
◆ ResolveReference() [2/2]
Get a reference to a graph node by resolving a Graph::IReference node by identifier relative to a namespace.
- Parameters
-
namespaceNode | The graph namespace node. |
nodeIdPath | The node ID to find, with optional path specification when searching in sub-namespaces. |
- Returns
- true if successful.
◆ GetNode()
Get the graph node interface.
- Returns
- A pointer to the graph node interface or null.
◆ GetNodeInterface()
◆ DynamicCastNode()
Dynamic cast a graph node to this template's node type.
- Parameters
-
node | The graph node to cast. |
- Returns
- A pointer to the graph node interface or null.
◆ DynamicCastResolveNode()
Dynamic cast a graph node by resolving a Graph::IReference node to this template's node type.
- Parameters
-
node | The graph node to cast. |
- Returns
- A pointer to the graph node interface or null.
◆ CreateTypedNode()
Create a typed graph node pointer and get a reference.
Dynamic cast the graph node pointer to the template's graph node type and add a reference to the node if successful.
- Parameters
-
- Returns
- true if successful.
◆ FindNode()
Find a graph node by identifier relative to a namespace.
- Parameters
-
namespaceNode | The graph namespace node. |
nodeIdPath | The node ID to find, with optional path specification when searching in sub-namespaces. |
- Returns
- A pointer to the graph node or null if not found.
◆ TrackReference()
Track a Graph::IReference node's target.
- Parameters
-
node | The graph node to track. |
- Returns
- A pointer to the target node.
The documentation for this class was generated from the following file:
- murl_logic_graph_observable_node.h