#include <gtopt/node.hpp>
template<Carrier C>
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.