3#include <boost/functional/hash.hpp>
23 unsigned int index = 0;
26 bool isNode()
const {
return parm.empty(); }
31 bool operator==(
const Unit& other)
const =
default;
37template <>
struct std::hash<enzo::nt::Unit>
42 boost::hash_combine(seed, unit.opId);
43 boost::hash_combine(seed, unit.parm);
44 boost::hash_combine(seed, unit.index);
Basic attribute, parameter, and node types for Enzo.
uint64_t OpId
The unique ID assigned to each node in the network.
Definition Types.h:137
A point in the network graph, either an operator output or a parameter.
Definition Unit.h:20
bool isNode() const
Whether the unit is a whole node rather than one parameter.
Definition Unit.h:26
bool isParameter() const
Whether the unit is one parameter rather than a whole node.
Definition Unit.h:29