From 549031fe78a793fc981973152e1fbb4876b46537 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Sun, 20 Dec 2020 16:05:05 +0100 Subject: [PATCH] setState added --- src/common/QskAspect.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/QskAspect.h b/src/common/QskAspect.h index 2fc0d43e..58a2faa1 100644 --- a/src/common/QskAspect.h +++ b/src/common/QskAspect.h @@ -180,6 +180,7 @@ namespace QskAspect constexpr State state() const noexcept; State topState() const noexcept; + void setState( State ) noexcept; void addState( State ) noexcept; void clearState( State ) noexcept; void clearStates() noexcept; @@ -364,6 +365,11 @@ namespace QskAspect return static_cast< State >( m_bits.states ); } + inline void Aspect::setState( State state ) noexcept + { + m_bits.states = state; + } + inline void Aspect::addState( State state ) noexcept { m_bits.states |= state;