MayaFlux 0.4.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 407 of file NodeGraphManager.cpp.

408{
411 "=== NodeGraphManager Summary ===");
412
413 for (auto token : get_active_tokens()) {
414 auto channels = get_all_channels(token);
415 size_t total_nodes = get_node_count(token);
416
419 "Token {}: {} nodes across {} channels",
420 static_cast<int>(token), total_nodes, channels.size());
421
422 for (auto channel : channels) {
423 auto& root = const_cast<NodeGraphManager*>(this)->get_root_node(token, channel);
424 auto networks = get_networks(token, channel);
425
428 " Channel {}: {} nodes, {} networks",
429 channel, root.get_node_size(), networks.size());
430
431 for (const auto& network : networks) {
432 if (network) {
435 " Network: {} internal nodes, mode={}, enabled={}",
436 network->get_node_count(),
437 static_cast<int>(network->get_output_mode()),
438 network->is_enabled());
439 }
440 }
441 }
442 }
443}
#define MF_PRINT(comp, ctx,...)
uint32_t channel
size_t get_node_count(ProcessingToken token) const
Gets the total number of nodes registered under a given token.
NodeGraphManager(uint32_t sample_rate=48000, uint32_t block_size=512, uint32_t frame_rate=60)
Creates a new NodeGraphManager.
RootNode & get_root_node(ProcessingToken token, unsigned int channel)
Gets or creates the root node for a specific token and channel.
std::vector< ProcessingToken > get_active_tokens() const
Gets all currently active processing tokens (domains)
std::vector< std::shared_ptr< Network::NodeNetwork > > get_networks(ProcessingToken token, uint32_t channel=0) const
Get all networks for a specific token.
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 channel, get_active_tokens(), get_all_channels(), get_networks(), get_node_count(), get_root_node(), MF_PRINT, MayaFlux::Journal::NodeProcessing, and MayaFlux::Journal::Nodes.

+ Here is the call graph for this function: