An AddMapping object exists only for the purpose of statically initializing the Impl::func map with valid entries. You declare a member function of the Impl class then you declare an object of type AddMapping to cause the function to appear in the func table. You only need to do this once, and it is the intent of addMapping's design that you do this at file scope -- not that it matters. More...
Public Member Functions | |
AddMapping (int cmd, Impl::func_handler f, bool modifying) |
An AddMapping object exists only for the purpose of statically initializing the Impl::func map with valid entries. You declare a member function of the Impl class then you declare an object of type AddMapping to cause the function to appear in the func table. You only need to do this once, and it is the intent of addMapping's design that you do this at file scope -- not that it matters.
The Impl::func map is a mapping between function key identifiers, defined in enum CursorWindow::edit_function_names. Other editor functions exist but do not get initialized in this map. They are called directly upon interpretation in the editor's input function itself.
Definition at line 845 of file texteditor.cxx.
AddMapping | ( | int | cmd, | |
Impl::func_handler | f, | |||
bool | modifying | |||
) |
Definition at line 859 of file texteditor.cxx.