OSSIA
Open Scenario System for Interactive Application
expression_bool.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <ossia/detail/config.hpp>
3 
5 
9 namespace ossia::expressions
10 {
15 class OSSIA_EXPORT expression_bool final : public expression_callback_container
16 {
17  bool m_result{};
18 
19 public:
20  expression_bool(bool result);
21  expression_bool(expression_bool&& other) = delete;
22  expression_bool& operator=(expression_bool&& other) = delete;
23 
24  expression_bool(const expression_bool& other) = delete;
25  expression_bool& operator=(const expression_bool& other) = delete;
26 
27  ~expression_bool();
28 
29  bool evaluate() const noexcept { return m_result; }
30  void update() const noexcept { }
31  void reset() const noexcept { }
32 };
33 }
expression_bool : a constant boolean value.
Definition: expression_bool.hpp:16