23 #if defined (HAVE_CONFIG_H)
50 if (nargin < 1 || nargin > 3)
55 f =
args(0).xstring_value (
"__dispatch__: first argument must be a function name");
58 r =
args(1).xstring_value (
"__dispatch__: second argument must be a function name");
61 t =
args(2).xstring_value (
"__dispatch__: third argument must be a type name");
72 size_t len = dm.size ();
74 Cell type_field (len, 1);
75 Cell name_field (len, 1);
77 symbol_table::fcn_info::dispatch_map_type::const_iterator
p
80 for (
size_t i = 0;
i < len;
i++)
82 type_field(
i) = p->first;
83 name_field(
i) = p->second;
90 m.
assign (
"type", type_field);
91 m.
assign (
"name", name_field);
static void clear_dispatch(const std::string &name, const std::string &type)
OCTINTERP_API void print_usage(void)
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE const F77_DBLE * f
#define DEFUN(name, args_name, nargout_name, doc)
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function t
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function xample nargout(@histc)
nd deftypefn *octave_map m
static void add_dispatch(const std::string &name, const std::string &type, const std::string &fname)
static fcn_info::dispatch_map_type get_dispatch(const std::string &name)
std::map< std::string, std::string > dispatch_map_type
=val(i)}if ode{val(i)}occurs in table i
void assign(const std::string &k, const octave_value &val)
static void print_dispatch(std::ostream &os, const std::string &name)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string