tcl::generic_function< R, func_wrapper > Class Template Reference

generic_function implements tcl::command using a held functor. More...

#include <tcl/makecmd.h>

Inheritance diagram for tcl::generic_function< R, func_wrapper >:

Inheritance graph
[legend]
Collaboration diagram for tcl::generic_function< R, func_wrapper >:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static rutz::shared_ptr
< tcl::function
make (func_wrapper f)

Protected Member Functions

 generic_function (func_wrapper f)
virtual void invoke (tcl::call_context &ctx)
 Abstract function performs this command's specific functionality.


Detailed Description

template<class R, class func_wrapper>
class tcl::generic_function< R, func_wrapper >

generic_function implements tcl::command using a held functor.

Definition at line 364 of file makecmd.h.


Member Function Documentation

template<class R, class func_wrapper>
virtual void tcl::generic_function< R, func_wrapper >::invoke ( tcl::call_context ctx  )  [inline, protected, virtual]

Abstract function performs this command's specific functionality.

The tcl::call_context& argument allows Tcl command arguments to be retrieved, and allows the interpreter's result to be set.

Implements tcl::function.

Definition at line 378 of file makecmd.h.

References tcl::call_context::set_result().


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:50 2008 by Doxygen version 1.5.5.