Iterator of available commands for execution on a Shell.
More...
#include <uuid/console.h>
|
void | update () |
| Update the available command from the current command iterator. More...
|
|
Iterator of available commands for execution on a Shell.
- Since
- 0.9.0
Definition at line 219 of file console.h.
◆ difference_type
Type used by std::distance().
- Since
- 0.9.0
Definition at line 222 of file console.h.
◆ iterator_category
Category of this iterator (bidirectional).
- Since
- 0.9.0
Definition at line 221 of file console.h.
◆ pointer
Pointer type of this iterator.
- Since
- 0.9.0
Definition at line 224 of file console.h.
◆ reference
Reference type of this iterator.
- Since
- 0.9.0
Definition at line 225 of file console.h.
◆ value_type
Type of this iterator's values.
- Since
- 0.9.0
Definition at line 223 of file console.h.
◆ const_iterator()
Create an iterator describing an available command in a shell with the current flags.
Iterators are invalidated if the commands, context or flags for the shell change.
- Parameters
-
[in] | shell | Shell that is accessing commands. |
[in] | begin | Beginning of command iterators. |
[in] | command | Initial command iterator. |
[in] | end | End of command iterators. |
- Since
- 0.9.0
Definition at line 62 of file commands_iterable.cpp.
◆ operator*()
reference uuid::console::Commands::AvailableCommands::const_iterator::operator* |
( |
| ) |
const |
|
inline |
Dereference the current available command.
- Returns
- A pointer to the current available command, that remains valid only while the iterator at this position exists.
- Since
- 0.9.0
Definition at line 251 of file console.h.
◆ operator++() [1/2]
Pre-increment the current iterator to the next available command.
- Returns
- The iterator to the next available command.
- Since
- 0.9.0
Definition at line 77 of file commands_iterable.cpp.
◆ operator++() [2/2]
const_iterator uuid::console::Commands::AvailableCommands::const_iterator::operator++ |
( |
int |
| ) |
|
|
inline |
Post-increment the current iterator to the next available command.
- Returns
- The current iterator.
- Since
- 0.9.0
Definition at line 277 of file console.h.
◆ operator--() [1/2]
Pre-decrement the current iterator to the previous available command.
- Returns
- The iterator to the previous available command.
- Since
- 0.9.0
Definition at line 86 of file commands_iterable.cpp.
◆ operator--() [2/2]
const_iterator uuid::console::Commands::AvailableCommands::const_iterator::operator-- |
( |
int |
| ) |
|
|
inline |
Post-decrement the current iterator to the previous available command.
- Returns
- The current iterator.
- Since
- 0.9.0
Definition at line 294 of file console.h.
◆ operator->()
pointer uuid::console::Commands::AvailableCommands::const_iterator::operator-> |
( |
| ) |
const |
|
inline |
Access the current available command.
- Returns
- A reference to the current available command, that remains valid only while the iterator at this position exists.
- Since
- 0.9.0
Definition at line 260 of file console.h.
◆ update()
void uuid::console::Commands::AvailableCommands::const_iterator::update |
( |
| ) |
|
|
private |
Update the available command from the current command iterator.
- Since
- 0.9.0
Definition at line 69 of file commands_iterable.cpp.
◆ operator!=
Compare an available commands iterator to another available commands iterator for inequality.
- Parameters
-
[in] | lhs | Left-hand side available commands iterator. |
[in] | rhs | Right-hand side available commands iterator. |
- Returns
- True if the available commands iterators are not equal, otherwise false.
- Since
- 0.9.0
Definition at line 315 of file console.h.
◆ operator==
Compare an available commands iterator to another available commands iterator for equality.
- Parameters
-
[in] | lhs | Left-hand side available commands iterator. |
[in] | rhs | Right-hand side available commands iterator. |
- Returns
- True if the available commands iterators are equal, otherwise false.
- Since
- 0.9.0
Definition at line 305 of file console.h.
◆ available_command_
std::shared_ptr<AvailableCommand> uuid::console::Commands::AvailableCommands::const_iterator::available_command_ |
|
private |
Current available command.
- Since
- 0.9.0
Definition at line 329 of file console.h.
◆ begin_
const command_iterator uuid::console::Commands::AvailableCommands::const_iterator::begin_ |
|
private |
Beginning of command iterators.
- Since
- 0.9.0
Definition at line 326 of file console.h.
◆ command_
command_iterator uuid::console::Commands::AvailableCommands::const_iterator::command_ |
|
private |
Current command iterator.
- Since
- 0.9.0
Definition at line 327 of file console.h.
◆ end_
const command_iterator uuid::console::Commands::AvailableCommands::const_iterator::end_ |
|
private |
End of command iterators.
- Since
- 0.9.0
Definition at line 328 of file console.h.
◆ shell_
const Shell& uuid::console::Commands::AvailableCommands::const_iterator::shell_ |
|
private |
Shell that is accessing commands.
- Since
- 0.9.0
Definition at line 325 of file console.h.
The documentation for this class was generated from the following files: