template<Carrier C>
gtopt::Node struct

Generic carrier-tagged balance node.

Template parameters
C Energy carrier this node operates on.

The template parameter C (a Carrier enum value) imprints the carrier identity onto the concrete type at compile time. Two nodes with different C are distinct C++ types, so any storage / generator / converter that holds a SingleId<Node<C>> reference is automatically restricted to nodes of carrier C.

Public static variables

static Carrier carrier
Carrier tag — compile-time accessible.

Public variables

OptActive active
Operational status (default: active).
Name name
Human-readable name.
Uid uid
Unique identifier.