+
+Application &State::Ctrl() {
+ if (ctrl) {
+ return *ctrl;
+ } else {
+ throw domain_error("call to app::State::Ctrl() without application context");
+ }
+}
+
+const Application &State::Ctrl() const {
+ if (ctrl) {
+ return *ctrl;
+ } else {
+ throw domain_error("call to app::State::Ctrl() without application context");
+ }
+}
+