impulse::Method< T > Class Template Reference

A Method is a wrapper around a C++ method to be used as a slot value. More...

#include <method.h>

Inherits impulse::Frame.

List of all members.

Public Member Functions

 Method (string name, Value(T::*method)(Array &, Value))
 Method (string name, Value(T::*method)(Array &, Value), Frame *arg1proto)
Value eval (Array &args, Value self)
string inspect ()
Value invoke (Value proto, Array &args, Value self)


Detailed Description

template<typename T>
class impulse::Method< T >

A Method is a wrapper around a C++ method to be used as a slot value.

Calling eval() invokes the method, throwing an exception if argument types are given and not matched.


Constructor & Destructor Documentation

template<typename T >
impulse::Method< T >::Method ( string  name,
Value(T::*)(Array &, Value method 
) [inline]

template<typename T >
impulse::Method< T >::Method ( string  name,
Value(T::*)(Array &, Value method,
Frame arg1proto 
) [inline]


Member Function Documentation

template<typename T >
Value impulse::Method< T >::eval ( Array args,
Value  self 
) [inline, virtual]

Reimplemented from impulse::Frame.

template<typename T >
string impulse::Method< T >::inspect (  )  [inline, virtual]

Reimplemented from impulse::Frame.

template<typename T >
Value impulse::Method< T >::invoke ( Value  proto,
Array args,
Value  self 
) [inline]


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

Generated on Wed May 13 20:04:19 2009 for impulse by  doxygen 1.5.8