gtopt/element_traits.hpp file

Defines traits for accessing and manipulating elements in a system context.

This module provides a customization point ElementTraits that allows different element types to be handled uniformly. It offers a default implementation for standard elements and a specialization for BusLP which requires custom logic. Free functions are provided to simplify trait usage.

Namespaces

namespace gtopt

Classes

template<typename SystemContext SystemContext, typename Element Element>
struct gtopt::ElementTraits
Defines default traits for element access and manipulation.
template<typename SystemContext SystemContext>
struct gtopt::ElementTraits<SystemContext, BusLP>
Specialization of ElementTraits for BusLP elements.