gtopt::PhaseRangeSet class

Constructors, destructors, conversion operators

PhaseRangeSet(std::string_view expr = "none") explicit

Public functions

auto contains(int phase) const -> bool noexcept
Check whether a given phase index is in the set.
auto is_all() const -> bool noexcept
True if the set matches all phases.
auto is_none() const -> bool noexcept
True if the set is empty (matches no phase).

Function documentation

gtopt::PhaseRangeSet::PhaseRangeSet(std::string_view expr = "none") explicit

Construct from a range expression string. Empty string or "none" → nothing included; "all" → everything included.