help: show defined action chains

This commit is contained in:
Andrzej Rybczak
2015-09-27 03:31:02 +02:00
parent 43a6b81820
commit 6ad3de7366
8 changed files with 157 additions and 28 deletions

View File

@@ -36,8 +36,8 @@ struct Binding
typedef std::vector<Actions::BaseAction *> ActionChain;
template <typename ArgT>
Binding(ArgT &&actions)
: m_actions(std::forward<ArgT>(actions)) {
Binding(ArgT &&actions_)
: m_actions(std::forward<ArgT>(actions_)) {
assert(!m_actions.empty());
}
Binding(Actions::Type at)
@@ -58,6 +58,10 @@ struct Binding
return m_actions[0];
}
const ActionChain &actions() const {
return m_actions;
}
private:
ActionChain m_actions;
};