#include <method.h>
Inherits impulse::Frame.
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) |
Calling eval() invokes the method, throwing an exception if argument types are given and not matched.
impulse::Method< T >::Method | ( | string | name, | |
Value(T::*)(Array &, Value) | method | |||
) | [inline] |
impulse::Method< T >::Method | ( | string | name, | |
Value(T::*)(Array &, Value) | method, | |||
Frame * | arg1proto | |||
) | [inline] |
Value impulse::Method< T >::eval | ( | Array & | args, | |
Value | self | |||
) | [inline, virtual] |
Reimplemented from impulse::Frame.
string impulse::Method< T >::inspect | ( | ) | [inline, virtual] |
Reimplemented from impulse::Frame.
Value impulse::Method< T >::invoke | ( | Value | proto, | |
Array & | args, | |||
Value | self | |||
) | [inline] |