8 using commander_list = std::vector<Commander>;
11 static std::vector<string> keys(
const commander_list &children) {
12 std::vector<string> keys;
13 keys.reserve(children.size());
15 keys.push_back(commander.key);
21 static void setRoot(
const Commander &child) {
22 command(
nullptr,
"setRoot", {child.key});
25 Layout(
const commander_list &children,
const string &className =
"Layout") :
Commander({keys(children)},
29 void add(
const Commander &child,
int index) {
30 command(
"add", {child.key, index});
34 command(
"add", {child.key});
38 command(
"remove", {child.key});
42 command(
"remove", {});
Definition: Commander.h:14