#include <CommandTable.h>
Public Member Functions | |
| CommandTable (const Binding *bindings, const unsigned int n) | |
| Constructs a CommandTable using the specified bindings table that is of the specified size. | |
| virtual | ~CommandTable () |
| Destructor, a noop. | |
| const Binding * | getBinding (const std::string &action) |
| Performs a lookup on the specified word and returns the associated binding. | |
| const Object * | getObject (const std::string &action) |
| Performs a lookup on the specified word and returns the associated object. | |
| const std::vector < std::string > & | getCommandsVector () const |
| Returns a list of known commands. | |
The lookup performs a binary search on the bindings table. It also checks for partial matches.
Definition at line 44 of file CommandTable.h.
| CommandTable< T >::CommandTable | ( | const Binding * | bindings, | |
| const unsigned int | n | |||
| ) | [inline] |
Constructs a CommandTable using the specified bindings table that is of the specified size.
Definition at line 74 of file CommandTable.h.
| CommandTable< T >::~CommandTable | ( | ) | [inline, virtual] |
| const CommandBinding< T > * CommandTable< T >::getBinding | ( | const std::string & | action | ) | [inline] |
Performs a lookup on the specified word and returns the associated binding.
Definition at line 122 of file CommandTable.h.
| const CommandObject< T > * CommandTable< T >::getObject | ( | const std::string & | action | ) | [inline] |
Performs a lookup on the specified word and returns the associated object.
Definition at line 156 of file CommandTable.h.
| const std::vector< std::string > & CommandTable< T >::getCommandsVector | ( | ) | const [inline] |
1.5.3