tcl::vec_dispatcher Class Reference

Inheritance diagram for tcl::vec_dispatcher:

Inheritance graph
[legend]
Collaboration diagram for tcl::vec_dispatcher:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 vec_dispatcher (unsigned int key_argn)
virtual void dispatch (tcl::interpreter &interp, unsigned int objc, Tcl_Obj *const objv[], tcl::function &callback)


Detailed Description

tcl::vec_dispatcher reimplements dispatch() to use a specialized tcl::call_context class that treats each of the arguments as lists, and provide access to slices across those lists, thus allowing "vectorized" command invocations.

Definition at line 139 of file vecdispatch.cc.


Member Function Documentation

void tcl::vec_dispatcher::dispatch ( tcl::interpreter interp,
unsigned int  objc,
Tcl_Obj *const   objv[],
tcl::function callback 
) [virtual]

Interprets the Tcl_Obj* arguments, sets up an appropriate tcl::call_context, and calls invoke() on the cmd with that context.

Implements tcl::arg_dispatcher.

Definition at line 155 of file vecdispatch.cc.

References tcl::list::get_obj_list_length(), and tcl::function::invoke().


The documentation for this class was generated from the following file:

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:56:51 2008 by Doxygen version 1.5.5.