MCRO
C++23 utilities for Unreal Engine.
|
Data Structures | |
struct | IState |
struct | IStateTag |
struct | TChangeData |
struct | TState |
Concepts | |
concept | CState |
concept | CChangeListener |
concept | CChangeNextOnlyListener |
concept | CChangeNextPreviousListener |
Typedefs | |
template<typename T > | |
using | TStateRef = TSharedRef<IState<T>> |
template<typename T > | |
using | TStatePtr = TSharedPtr<IState<T>> |
template<typename T > | |
using | TStateWeakPtr = TWeakPtr<IState<T>> |
template<typename T , int32 DefaultPolicy = StatePolicyFor<T>> | |
using | TDeclareStateRef = TSharedRef<TState<T, DefaultPolicy>> |
template<typename T , int32 DefaultPolicy = StatePolicyFor<T>> | |
using | TDeclareStatePtr = TSharedPtr<TState<T, DefaultPolicy>> |
template<typename T , int32 DefaultPolicy = StatePolicyFor<T> | ThreadSafeState> | |
using | TStateTS = TState<T, DefaultPolicy> |
using | FBool = TState<bool> |
using | FBoolTS = TStateTS<bool> |
Enumerations | |
enum | EStatePolicy { NotifyOnChangeOnly = 0 , AlwaysNotify = 1 << 0 , StorePrevious = 1 << 1 , ThreadSafeState = 1 << 2 } |
Functions | |
template<typename LeftValue , CWeaklyEqualityComparableWith< LeftValue > RightValue> | |
bool | operator== (IState< LeftValue > const &left, IState< RightValue > const &right) |
template<typename LeftValue , CPartiallyOrderedWith< LeftValue > RightValue> | |
bool | operator<=> (IState< LeftValue > const &left, IState< RightValue > const &right) |
Variables | |
template<typename T > | |
constexpr int32 | StatePolicyFor |
concept | TFunction_ArgDecay< Function, 0 > |
using Mcro::Observable::FBool = TState<bool> |
Convenience alias for boolean states
Definition at line 124 of file Observable.Fwd.h.
using Mcro::Observable::FBoolTS = TStateTS<bool> |
Convenience alias for thread-safe boolean states
Definition at line 127 of file Observable.Fwd.h.
using Mcro::Observable::TDeclareStatePtr = TSharedPtr<TState<T, DefaultPolicy>> |
Convenience alias for declaring a state as a shared pointer. Use this only as object members
Definition at line 95 of file Observable.Fwd.h.
using Mcro::Observable::TDeclareStateRef = TSharedRef<TState<T, DefaultPolicy>> |
Convenience alias for declaring a state as a shared reference. Use this only as object members
Definition at line 91 of file Observable.Fwd.h.
using Mcro::Observable::TStatePtr = TSharedPtr<IState<T>> |
Convenience alias for shared pointer to a base type of TState. Use this in APIs which may modify or get the value of a state declared elsewhere.
Definition at line 80 of file Observable.Fwd.h.
using Mcro::Observable::TStateRef = TSharedRef<IState<T>> |
Convenience alias for shared reference to a base type of TState. Use this in APIs which may modify or get the value of a state declared elsewhere.
Definition at line 73 of file Observable.Fwd.h.
using Mcro::Observable::TStateTS = TState<T, DefaultPolicy> |
Convenience alias for thread safe states
Definition at line 121 of file Observable.Fwd.h.
using Mcro::Observable::TStateWeakPtr = TWeakPtr<IState<T>> |
Convenience alias for weak pointer to a base type of TState. Use this in APIs which may modify or get the value of a state declared elsewhere.
Definition at line 87 of file Observable.Fwd.h.
Flags expressing how TState should handle object comparison and lifespan
Enumerator | ||
---|---|---|
NotifyOnChangeOnly | 0 | When the object inside TState is != comparable TState wull only emit change events when the submitted value differs from the existing one. |
AlwaysNotify | 1 << 0 | Always emit change notification when a value is set on TState and don't attempt to compare them |
StorePrevious | 1 << 1 | Always emit change notification when a value is set on TState and don't attempt to compare them |
ThreadSafeState | 1 << 2 | Enable mutexes during modifications, notifications and expose a public critical section for users of the state. |
Definition at line 28 of file Observable.Fwd.h.
bool Mcro::Observable::operator<=> | ( | IState< LeftValue > const & | left, |
IState< RightValue > const & | right ) |
Definition at line 394 of file Observable.h.
bool Mcro::Observable::operator== | ( | IState< LeftValue > const & | left, |
IState< RightValue > const & | right ) |
Definition at line 388 of file Observable.h.
|
inlineconstexpr |
Definition at line 52 of file Observable.Fwd.h.
concept Mcro::Observable::TFunction_ArgDecay< Function, 0 > |
Definition at line 52 of file Observable.Fwd.h.