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

◆ get_metadata()

std::unordered_map< std::string, std::string > MayaFlux::Nodes::NodeNetwork::get_metadata ( ) const
virtual

Get network metadata for debugging/visualization.

Returns
Map of property names to string representations

Subclasses can override to expose internal state:

  • Particle count, average velocity
  • Modal frequencies, decay times
  • Waveguide delay lengths etc.

Reimplemented in MayaFlux::Nodes::ModalNetwork, and MayaFlux::Nodes::ParticleNetwork.

Definition at line 22 of file NodeNetwork.cpp.

23{
24 return { { "topology", topology_to_string(m_topology) },
25 { "output_mode", output_mode_to_string(m_output_mode) },
26 { "node_count", std::to_string(get_node_count()) },
27 { "enabled", m_enabled ? "true" : "false" } };
28}
static std::string output_mode_to_string(OutputMode mode)
static std::string topology_to_string(Topology topo)
virtual size_t get_node_count() const =0
Get the number of nodes in the network.

References get_node_count(), m_enabled, m_output_mode, m_topology, output_mode_to_string(), and topology_to_string().

Referenced by MayaFlux::Nodes::ModalNetwork::get_metadata(), and MayaFlux::Nodes::ParticleNetwork::get_metadata().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: