MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / AddCommand

Method AddCommand

WinArk/AppCommandBase.cpp:4–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "AppCommandBase.h"
3
4void AppCommandList::AddCommand(std::shared_ptr<AppCommand> command) {
5 _commands.push_back(command);
6}
7
8std::shared_ptr<AppCommand> AppCommandList::GetCommand(size_t i) const {
9 return i < _commands.size() ? _commands[i] : nullptr;

Callers 5

OnTreeEndEditMethod · 0.45
OnListEndEditMethod · 0.45
OnEditPasteMethod · 0.45
OnEditDeleteMethod · 0.45
ShowValuePropertiesMethod · 0.45

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected