lib Library API Documentation

KSMethod Class Reference

A method holds a reference to some instance and some function. More...

#include <koscript_method.h>

List of all members.

Public Member Functions

 KSMethod (KSModule *m, const KSValue::Ptr &obj, const KSValue::Ptr &func)
 KSMethod (KSModule *m, const KSValue::Ptr &obj, const KSValue::Ptr &func, const QString &name)
bool call (KSContext &context)
KSValueobject ()
KSValuefunction ()
KSModulemodule ()
QString name ()


Detailed Description

A method holds a reference to some instance and some function.

The function may be of the type KSFunction, KSBuiltinFunction or KSStructBuiltinFunction. The instance may be a KSObject or KSStruct or derived types.

Definition at line 40 of file koscript_method.h.


Constructor & Destructor Documentation

KSMethod::KSMethod KSModule m,
const KSValue::Ptr obj,
const KSValue::Ptr func,
const QString name
[inline]
 

Use this method if the function is KSBuiltinFunction or KSStructBuiltinFunction.

In this case we pass the name of the method. No copy of this name is made and the destructor does not free the string. So you should only pass constants here.

Definition at line 50 of file koscript_method.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Sep 28 04:04:06 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003