Murl::Graph::NodeTarget< ObjectType, MIN_NUMBER_OF_NODES > Interface Template Reference
The NodeTarget class. More...
#include "murl_graph_node_target.h"
Inheritance diagram for Murl::Graph::NodeTarget< ObjectType, MIN_NUMBER_OF_NODES >:
Public Member Functions | |
NodeTarget () | |
The default constructor. | |
NodeTarget (ObjectType *node) | |
Constructor taking a single (optional) node. More... | |
Bool | DeserializeNodeId (IDeserializeAttributeTracker *tracker) |
Deserialize the single target node ID from a given tracker. More... | |
const String & | GetNodeId () const |
Get the single node ID. More... | |
ObjectType * | GetNode () const |
Get the single node. More... | |
Detailed Description
template<class ObjectType, UInt32 MIN_NUMBER_OF_NODES>
interface Murl::Graph::NodeTarget< ObjectType, MIN_NUMBER_OF_NODES >
The NodeTarget class.
This class implements an IGenericNodeTarget that can reference at most one graph node. The MIN_NUMBER_OF_NODES template parameter represents the minimum number of referenced nodes that must be present for the Init() method to succeed. May be either 0 or 1.
Constructor & Destructor Documentation
◆ NodeTarget()
template<class ObjectType , UInt32 MIN_NUMBER_OF_NODES>
|
inline |
Constructor taking a single (optional) node.
- Parameters
-
node The node or null.
Member Function Documentation
◆ DeserializeNodeId()
template<class ObjectType , UInt32 MIN_NUMBER_OF_NODES>
|
inline |
Deserialize the single target node ID from a given tracker.
- Parameters
-
tracker The tracker to deserialize.
- Returns
- true if successful.
References Murl::Graph::IDeserializeAttributeTracker::GetAttributeValue().
◆ GetNodeId()
template<class ObjectType , UInt32 MIN_NUMBER_OF_NODES>
|
inline |
Get the single node ID.
- Returns
- The node ID, or an empty string if no node is referenced.
◆ GetNode()
template<class ObjectType , UInt32 MIN_NUMBER_OF_NODES>
|
inline |
Get the single node.
- Returns
- The node, or null if none is referenced.
The documentation for this interface was generated from the following file:
- murl_graph_node_target.h