61 bool operator() (
const char* a,
const char* b)
const 62 {
return strcmp(a,b) < 0; }
71 void operator() ()
const { action(); }
111 const char*
prompt()
const {
return d_prompt; }
124 void exit()
const { d_exit(); }
132 void add(
const char*
const name,
const Command& action);
135 const_iterator
find(
const char* name)
const {
return d_map.find(name); }
138 {
return d_map.lower_bound(name); }
142 const_iterator
begin()
const {
return d_map.begin(); }
144 const_iterator
end()
const {
return d_map.end(); }
163 void activate()
const;
166 std::vector<const char*> extensions(
const char*)
const;
170 size_t n_desc()
const {
return d_nextList.size(); }
184 void extensions(std::set<const char*,StrCmp>&,
const char*)
const;
mod_pointer root
Definition: common.c:127
void nohelp_h()
Definition: commands.cpp:495
Definition: commands.h:30
CommandDict::const_iterator const_iterator
Definition: commands.h:129
std::map< const char *, const char *, StrCmp > TagDict
Definition: commands_fwd.h:24
Definition: commands.h:30
Command(action_pointer a)
Definition: commands.h:69
const char * prompt() const
Definition: commands.h:111
TagDict tagDict
Definition: commands.cpp:96
mode
Definition: cweave.c:359
const CommandTree & nextMode(unsigned int i) const
Definition: commands.h:172
Definition: commands.h:148
const_iterator end() const
Definition: commands.h:144
const_iterator find_prefix(const char *name) const
Definition: commands.h:137
std::vector< CommandTree * > d_nextList
Definition: commands.h:151
Definition: commands.h:65
size_t n_desc() const
Definition: commands.h:170
action_pointer action
Definition: commands.h:67
~CommandNode()
Definition: commands.h:108
void use_tag()
Definition: commands.cpp:507
Definition: commands.h:59
gradings::Status::Value status(const KGB_base &kgb, KGBElt x, RootNbr alpha)
Definition: kgb.cpp:850
const_iterator find(const char *name) const
Definition: commands.h:135
void relax_f()
Definition: commands.h:47
void exitMode()
Definition: commands.cpp:455
std::map< const char *, Command, StrCmp > CommandDict
Definition: commands.h:95
void entry() const
Definition: commands.h:140
const_iterator begin() const
Definition: commands.h:142
action_pointer d_exit
Definition: commands.h:99
void nohelp_add(const char *const name, action_pointer f)
Definition: commands.h:120
Definition: commands.h:30
void exitInteractive()
Definition: commands.cpp:486
void(* action_pointer)()
Definition: commands.h:28
CommandDict d_map
Definition: commands.h:97
char * name
Definition: common.c:103
const CommandTree * currentMode()
Definition: commands.cpp:446
Definition: commands.h:93
input::InputBuffer & currentLine()
Definition: commands.cpp:436
CheckResult
Definition: commands.h:30
const char * d_prompt
Definition: commands.h:98
void run_from(const CommandTree &initial_mode)
void drop_to(const CommandTree &mode)
Definition: commands.cpp:471
void exit() const
Definition: commands.h:124
void std_help()
Definition: commands.cpp:500
Definition: commands.h:30
CommandTree(const CommandNode &root)
Definition: commands.h:154