MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ print_summary()

void MayaFlux::Nodes::NodeGraphManager::print_summary ( ) const

Prints a summary of all tokens, channels, and node counts.

Outputs a human-readable summary of the current node graph structure, including the number of tokens, channels, and nodes per domain. Useful for debugging and introspection.

Definition at line 369 of file NodeGraphManager.cpp.

370{
373 "=== NodeGraphManager Summary ===");
374
375 for (auto token : get_active_tokens()) {
376 auto channels = get_all_channels(token);
377 size_t total_nodes = get_node_count(token);
378
381 "Token {}: {} nodes across {} channels",
382 static_cast<int>(token), total_nodes, channels.size());
383
384 for (auto channel : channels) {
385 auto& root = const_cast<NodeGraphManager*>(this)->get_root_node(token, channel);
386 auto networks = get_networks(token, channel);
387
390 " Channel {}: {} nodes, {} networks",
391 channel, root.get_node_size(), networks.size());
392
393 for (const auto& network : networks) {
394 if (network) {
397 " Network: {} internal nodes, mode={}, enabled={}",
398 network->get_node_count(),
399 static_cast<int>(network->get_output_mode()),
400 network->is_enabled());
401 }
402 }
403 }
404 }
405}
#define MF_PRINT(comp, ctx,...)
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
size_t get_node_count(ProcessingToken token) const
Gets the total number of nodes registered under a given token.
std::vector< std::shared_ptr< NodeNetwork > > get_networks(ProcessingToken token, uint32_t channel=0) const
Get all networks for a specific token.
RootNode & get_root_node(ProcessingToken token, unsigned int channel)
Gets or creates the root node for a specific token and channel.
NodeGraphManager()
Creates a new NodeGraphManager.
std::vector< ProcessingToken > get_active_tokens() const
Gets all currently active processing tokens (domains)
std::vector< unsigned int > get_all_channels(ProcessingToken token) const
Gets all channel indices for a given processing token.
@ NodeProcessing
Node graph processing (Nodes::NodeGraphManager)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.

References get_active_tokens(), get_all_channels(), get_networks(), get_node_count(), get_root_node(), MF_PRINT, MayaFlux::Journal::NodeProcessing, MayaFlux::Journal::Nodes, and token.

+ Here is the call graph for this function: