Function getNode

Synopsis

#include <Source/Falcor/Utils/Algorithm/DirectedGraph.h>

const Node * getNode(uint32_t nodeId) const

Description

Get a node

Source

Lines 162-170 in Source/Falcor/Utils/Algorithm/DirectedGraph.h.

const Node* getNode(uint32_t nodeId) const
{
    if (doesNodeExist(nodeId) == false)
    {
        logWarning("DirectGraph::getNode() - node ID doesn't exist");
        return nullptr;
    }
    return &mNodes.at(nodeId);
}





Add Discussion as Guest

Log in