Navigation

Operators and Keywords

Function List:

C++ API

dispatch.cc File Reference

#include <list>
#include <map>
#include <string>
#include "Cell.h"
#include "oct-map.h"
#include "defun-dld.h"
#include "ov.h"
#include "ov-fcn.h"
#include "ov-typeinfo.h"
#include "pager.h"
#include "parse.h"
#include "symtab.h"
#include "variables.h"

Include dependency graph for dispatch.cc:


Functions

 DEFUN_DLD (builtin, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {[@dots{}]} builtin (@var{f}, @dots{})\n\ Call the base function @var{f} even if @var{f} is overloaded to\n\ some other function for the given type signature.\n\ @seealso{dispatch}\n\ @end deftypefn")
 DEFUN_DLD (dispatch, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} dispatch (@var{f}, @var{r}, @var{type})\n\ \n\ Replace the function @var{f} with a dispatch so that function @var{r}\n\ is called when @var{f} is called with the first argument of the named\n\ @var{type}. If the type is @var{any} then call @var{r} if no other type\n\ matches. The original function @var{f} is accessible using\n\ @code{builtin (@var{f}, @dots{})}.\n\ \n\ If @var{r} is omitted, clear dispatch function associated with @var{type}.\n\ \n\ If both @var{r} and @var{type} are omitted, list dispatch functions\n\ for @var{f}.\n\ @seealso{builtin}\n\ @end deftypefn")

Function Documentation

DEFUN_DLD ( dispatch  ,
args  ,
nargout   
)

DEFUN_DLD ( builtin  ,
args  ,
nargout   
)