7#ifndef PXR_EXEC_VDF_NETWORK_STATS_H
8#define PXR_EXEC_VDF_NETWORK_STATS_H
14#include "pxr/exec/vdf/api.h"
20PXR_NAMESPACE_OPEN_SCOPE
36 struct NodeTypeStats {
44 typedef std::map<std::string, NodeTypeStats> _TypeStatsMap;
45 _TypeStatsMap _statsMap;
66 return _maxFanInNodeName;
76 return _maxFanOutNodeName;
81 const _TypeStatsMap &
GetStatsMap()
const {
return _statsMap; }
87 size_t _maxTypeNameLength;
92 std::string _maxFanInNodeName;
97 std::string _maxFanOutNodeName;
103PXR_NAMESPACE_CLOSE_SCOPE
A VdfNetwork is a collection of VdfNodes and their connections.
A VdfNetworkStats object represents some useful statistics about a network.
size_t GetMaxTypeNameLength() const
Returns the length of the longest type name encountered.
const std::string & GetMaxFanOutNodeName() const
Returns the node name with the max fan out.
VDF_API VdfNetworkStats(const VdfNetwork &network)
Builds the statistics structures from the given network.
size_t GetMaxFanIn() const
Returns the max fan in.
const std::string & GetMaxFanInNodeName() const
Returns the node name with the max fan in.
const _TypeStatsMap & GetStatsMap() const
Returns the count map.
size_t GetMaxFanOut() const
Returns the max fan out.