|
MT Showcase SDK
|
Cached graph reads, monitors and caches connected graph starting from the given root node. More...
#include <CachedGraph.hpp>
Inherits enable_shared_from_this< CachedGraph >.
Public Member Functions | |
| CachedNodePtr | getNode (const NodeId &id) const |
| This can return nullptr even if the requested node would be part of the graph (reachable from the root node). More... | |
| void | startCaching () |
Cached graph reads, monitors and caches connected graph starting from the given root node.
Only nodes that are reachable from the root node can ever be accessed.
This is built on top of cached nodes which on the other hand is built on top of node events. The cached graph has following features/limitations:
| CachedNodePtr Showcase::CachedGraph::getNode | ( | const NodeId & | id | ) | const |
This can return nullptr even if the requested node would be part of the graph (reachable from the root node).
This happens if the caching process hasn't yet reached the requested node.
This gives errors, find out why?
| void Showcase::CachedGraph::startCaching | ( | ) |
Basically exists because shared_from_this can't be called on ctor