Object struct
#include <gtopt/object.hpp>
Base object type providing common identification functionality.
Serves as the foundation for all objects in the optimization framework. Provides consistent identification behavior through the id() method.
Derived classes
Public functions
-
template<typename Self>auto id(this const Self& self) -> auto noexcept
- Gets the object's identifier (explicit object syntax).
Function documentation
template<typename Self>
auto gtopt:: Object:: id(this const Self& self) noexcept
Gets the object's identifier (explicit object syntax).
| Parameters | |
|---|---|
| self | Reference to this object |
| Returns | Id containing the object's uid and name |