Lines Matching refs:command
55 /// Inserts a new command into the map.
57 /// \param command The command to insert. This must have been dynamically
58 /// allocated with new. The call grabs ownership of the command, or the
59 /// command is freed if the call fails.
60 /// \param category The category this command belongs to. Defaults to the empty
61 /// string, which indicates that the command has not be categorized.
64 cmdline::commands_map< BaseCommand >::insert(command_ptr command,
67 INV(_commands.find(command->name()) == _commands.end());
68 BaseCommand* ptr = command.release();
75 /// Inserts a new command into the map.
80 /// \param command The command to insert. This must have been dynamically
81 /// allocated with new. The call grabs ownership of the command, or the
82 /// command is freed if the call fails.
83 /// \param category The category this command belongs to. Defaults to the empty
84 /// string, which indicates that the command has not be categorized.
87 cmdline::commands_map< BaseCommand >::insert(BaseCommand* command,
90 insert(command_ptr(command), category);
127 /// Finds a command by name; mutable version.
129 /// \param name The name of the command to locate.
131 /// \return The command itself or NULL if it does not exist.
144 /// Finds a command by name; constant version.
146 /// \param name The name of the command to locate.
148 /// \return The command itself or NULL if it does not exist.