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 StringGetNodeId () 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>
Murl::Graph::NodeTarget< ObjectType, MIN_NUMBER_OF_NODES >::NodeTarget ( ObjectType *  node)
inline

Constructor taking a single (optional) node.

Parameters
nodeThe node or null.

Member Function Documentation

◆ DeserializeNodeId()

template<class ObjectType , UInt32 MIN_NUMBER_OF_NODES>
Bool Murl::Graph::NodeTarget< ObjectType, MIN_NUMBER_OF_NODES >::DeserializeNodeId ( IDeserializeAttributeTracker tracker)
inline

Deserialize the single target node ID from a given tracker.

Parameters
trackerThe tracker to deserialize.
Returns
true if successful.

References Murl::Graph::IDeserializeAttributeTracker::GetAttributeValue().

◆ GetNodeId()

template<class ObjectType , UInt32 MIN_NUMBER_OF_NODES>
const String& Murl::Graph::NodeTarget< ObjectType, MIN_NUMBER_OF_NODES >::GetNodeId ( ) const
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>
ObjectType* Murl::Graph::NodeTarget< ObjectType, MIN_NUMBER_OF_NODES >::GetNode ( ) const
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


Copyright © 2011-2024 Spraylight GmbH.