Template Class ReadableState

Inheritance Relationships

Base Type

Derived Type

Class Documentation

template<typename T>
class ReadableState : public StateCloneable<IState, ReadableState<T>>

Subclassed by WritableState< T >

Public Functions

inline ReadableState(T default_value, std::string description = "", Permission peers = Permission::WRITE, Permission external = Permission::NONE)
inline ReadableState(const ReadableState &other)
inline T get(bool cache = true)
inline bool changed_get(T &val, bool cache = true)
inline virtual std::string get_string(bool cache = true) override

Protected Functions

inline void set(T value, bool cache = true)
inline T exchange(T value, bool cache = true)
inline virtual bool set_string(const std::string &value, bool cache = true) override
inline void reset()
inline virtual void Share(const std::shared_ptr<IState> &other) override
inline virtual void UnShare() override
inline virtual bool IsLikeMe(const std::shared_ptr<IState> &other) override