Murl::Graph::NodeArrayTarget< ObjectType, MIN_NUMBER_OF_NODES, MAX_NUMBER_OF_NODES, RESERVED_NUMBER_OF_NODES > Interface Template Reference

The NodeArrayTarget class. More...

#include "murl_graph_node_array_target.h"

Inheritance diagram for Murl::Graph::NodeArrayTarget< ObjectType, MIN_NUMBER_OF_NODES, MAX_NUMBER_OF_NODES, RESERVED_NUMBER_OF_NODES >:

Public Member Functions

 NodeArrayTarget ()
 The constructor.
 
Bool DeserializeNodeIds (IDeserializeAttributeTracker *tracker)
 Deserialize all defined target node IDs from a given tracker. More...
 
Bool DeserializeNodeId (IDeserializeAttributeTracker *tracker)
 Deserialize a single target node ID from a given tracker. More...
 
Bool DeserializeNodeId (IDeserializeAttributeTracker *tracker, UInt32 index)
 Deserialize a single target node ID from a given tracker at a given index. More...
 

Detailed Description

template<class ObjectType, UInt32 MIN_NUMBER_OF_NODES, UInt32 MAX_NUMBER_OF_NODES, UInt32 RESERVED_NUMBER_OF_NODES>
interface Murl::Graph::NodeArrayTarget< ObjectType, MIN_NUMBER_OF_NODES, MAX_NUMBER_OF_NODES, RESERVED_NUMBER_OF_NODES >

The NodeArrayTarget class.

This class implements an IGenericNodeTarget that can reference any number of graph nodes. The MIN_NUMBER_OF_NODES and MAX_NUMBER_OF_NODES template parameters represent the minimum and maximum number of referenced nodes that must be present for the Init() method to succeed. The RESERVED_NUMBER_OF_NODES parameter defines the initial size of the reference array. Must be in the range from MIN_NUMBER_OF_NODES to MAX_NUMBER_OF_NODES.

Member Function Documentation

◆ DeserializeNodeIds()

template<class ObjectType , UInt32 MIN_NUMBER_OF_NODES, UInt32 MAX_NUMBER_OF_NODES, UInt32 RESERVED_NUMBER_OF_NODES>
Bool Murl::Graph::NodeArrayTarget< ObjectType, MIN_NUMBER_OF_NODES, MAX_NUMBER_OF_NODES, RESERVED_NUMBER_OF_NODES >::DeserializeNodeIds ( IDeserializeAttributeTracker tracker)
inline

Deserialize all defined target node IDs from a given tracker.

Parameters
trackerThe tracker to deserialize.
Returns
true if successful.

References Murl::Graph::IDeserializeAttributeTracker::GetAttributeValues(), Murl::Array< DataType >::GetCount(), and Murl::Array< DataType >::SetCount().

◆ DeserializeNodeId() [1/2]

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

Deserialize a single target node ID from a given tracker.

The actual index is retrieved from the tracker's base attribute.

Parameters
trackerThe tracker to deserialize.
Returns
true if successful.

References Murl::Graph::IDeserializeAttributeTracker::GetBaseAttributeName(), and Murl::Util::StringToUInt32().

◆ DeserializeNodeId() [2/2]

template<class ObjectType , UInt32 MIN_NUMBER_OF_NODES, UInt32 MAX_NUMBER_OF_NODES, UInt32 RESERVED_NUMBER_OF_NODES>
Bool Murl::Graph::NodeArrayTarget< ObjectType, MIN_NUMBER_OF_NODES, MAX_NUMBER_OF_NODES, RESERVED_NUMBER_OF_NODES >::DeserializeNodeId ( IDeserializeAttributeTracker tracker,
UInt32  index 
)
inline

Deserialize a single target node ID from a given tracker at a given index.

Parameters
trackerThe tracker to deserialize.
indexThe index of the referenced node.
Returns
true if successful.

References Murl::Graph::IDeserializeAttributeTracker::GetAttributeValue(), Murl::Array< DataType >::GetCount(), and Murl::Array< DataType >::SetCount().


The documentation for this interface was generated from the following file:
  • murl_graph_node_array_target.h


Copyright © 2011-2024 Spraylight GmbH.