GraphNodeBase Class Reference

#include <graph.h>

Detailed Description

GraphNodeBase is the protected base class of GraphNode. GraphNode adds no further data members, therefore both have the same memory layout. You only have to work with GraphNodeBase when you implement GraphModelInterface and need access to its data members.

Public Member Functions

const GraphNodeBaseGetBase () const
 
GraphNodeBaseGetBase ()
 

Public Attributes

GraphModelRef _graph
 
Int _mem [MEMCOUNT]
 

Static Public Attributes

static const Int MEMCOUNT
 

Protected Member Functions

const GraphNodeGetGraphNode () const
 
GraphModelInterfacePrivateGetGraph () const
 
const ThreadReferencedErrorGetErrorStorage () const
 

Static Private Attributes

static constexpr Bool HAS_ERROR
 

Member Function Documentation

◆ GetBase() [1/2]

const GraphNodeBase& GetBase ( ) const

Returns this GraphNode, downcasted to its protected base class GraphNodeBase. This function is needed by implementations of GraphModelInterface to access the protected data members of GraphNodeBase.

Returns
OK on success.

◆ GetBase() [2/2]

GraphNodeBase& GetBase ( )

Returns this GraphNode, downcasted to its protected base class GraphNodeBase. This function is needed by implementations of GraphModelInterface to access the protected data members of GraphNodeBase.

Returns
OK on success.

◆ GetGraphNode()

const GraphNode & GetGraphNode ( ) const
protected

◆ PrivateGetGraph()

GraphModelInterface* PrivateGetGraph ( ) const
protected

◆ GetErrorStorage()

const ThreadReferencedError& GetErrorStorage ( ) const
protected

Member Data Documentation

◆ _graph

GraphModelRef _graph

The graph model of this graph node.

◆ MEMCOUNT

const Int MEMCOUNT
static

Number of Int elements in _mem, currently 5.

◆ _mem

Int _mem[MEMCOUNT]
mutable

Some storage space for free use by the GraphModelInterface implementation. Typically this holds information to identify the graph node such as a path.

◆ HAS_ERROR

constexpr Bool HAS_ERROR
staticconstexprprivate