My Project
|
Available commands in the shell's context with the current flags. More...
#include <uuid/console.h>
Classes | |
class | const_iterator |
Iterator of available commands for execution on a Shell. More... | |
Public Types | |
using | command_iterator = std::multimap< unsigned int, Command >::const_iterator |
Public Member Functions | |
AvailableCommands (const Shell &shell, const command_iterator &begin, const command_iterator &end) | |
Create an iterable object describing available commands in a shell with the current flags. More... | |
const_iterator | begin () const |
Returns an iterator to the first command. More... | |
const_iterator | cbegin () const |
Returns an iterator to the first command. More... | |
const_iterator | end () const |
Returns an iterator to the element following the last command. More... | |
const_iterator | cend () const |
Returns an iterator to the element following the last command. More... | |
Private Attributes | |
const Shell & | shell_ |
command_iterator | begin_ |
command_iterator | end_ |
Available commands in the shell's context with the current flags.
Iterators are invalidated if the commands, context or flags for the shell change.
using uuid::console::Commands::AvailableCommands::command_iterator = std::multimap<unsigned int,Command>::const_iterator |
uuid::console::Commands::AvailableCommands::AvailableCommands | ( | const Shell & | shell, |
const command_iterator & | begin, | ||
const command_iterator & | end | ||
) |
Create an iterable object describing available commands in a shell with the current flags.
Iterators are invalidated if the commands, context or flags for the shell change.
[in] | shell | Shell that is accessing commands. |
[in] | begin | Beginning of command iterators. |
[in] | end | End of command iterators. |
Definition at line 45 of file commands_iterable.cpp.
|
inline |
Commands::AvailableCommands::const_iterator uuid::console::Commands::AvailableCommands::cbegin | ( | ) | const |
Returns an iterator to the first command.
Definition at line 54 of file commands_iterable.cpp.
Commands::AvailableCommands::const_iterator uuid::console::Commands::AvailableCommands::cend | ( | ) | const |
Returns an iterator to the element following the last command.
Definition at line 58 of file commands_iterable.cpp.
|
inline |
|
private |
|
private |
|
private |