.TH "KJS::InternalFunctionImp" kde3 "11 Jun 2005" "Version Version 3.4.1" "kjs Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KJS::InternalFunctionImp \- Base class for all function objects.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <function.h>\fP
.PP
Inherits KJS::ObjectImp.
.PP
Inherited by KJS::ArrayObjectImp, KJS::ArrayProtoFuncImp, KJS::BooleanObjectImp, KJS::BooleanProtoFuncImp, KJS::DateObjectFuncImp, KJS::DateObjectImp, KJS::DateProtoFuncImp, KJS::ErrorObjectImp, KJS::ErrorProtoFuncImp, \fBKJS::FunctionImp\fP, KJS::FunctionObjectImp, KJS::FunctionProtoFuncImp, \fBKJS::FunctionPrototypeImp\fP, KJS::GlobalFuncImp, KJS::MathFuncImp, KJS::NativeErrorImp, KJS::NumberObjectImp, KJS::NumberProtoFuncImp, KJS::ObjectObjectImp, KJS::ObjectProtoFuncImp, KJS::RegExpObjectImp, KJS::RegExpProtoFuncImp, KJS::StringObjectFuncImp, KJS::StringObjectImp, and KJS::StringProtoFuncImp.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBInternalFunctionImp\fP (\fBFunctionPrototypeImp\fP *funcProto)"
.br
.ti -1c
.RI "\fBInternalFunctionImp\fP (\fBExecState\fP *exec)"
.br
.ti -1c
.RI "bool \fBimplementsHasInstance\fP () const "
.br
.ti -1c
.RI "\fBBoolean\fP \fBhasInstance\fP (\fBExecState\fP *exec, const \fBValue\fP &value)"
.br
.ti -1c
.RI "virtual const \fBClassInfo\fP * \fBclassInfo\fP () const "
.br
.ti -1c
.RI "\fBIdentifier\fP \fBname\fP () const "
.br
.ti -1c
.RI "void \fBsetName\fP (\fBIdentifier\fP _ident)"
.br
.in -1c
.SS "Static Public Attributes"

.in +1c
.ti -1c
.RI "static const \fBClassInfo\fP \fBinfo\fP = {'Function', 0, 0, 0}"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBIdentifier\fP \fBident\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Base class for all function objects. 

It implements the hasInstance method (for instanceof, which only applies to function objects) and allows to give the function a name, used in toString().
.PP
Constructors and prototypes of internal objects (implemented in C++) directly inherit from this. \fBFunctionImp\fP also does, for functions implemented in JS. 
.PP
Definition at line 41 of file function.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "InternalFunctionImp::InternalFunctionImp (\fBFunctionPrototypeImp\fP * funcProto)"
.PP
Constructor. 
.PP
For C++-implemented functions, \fCfuncProto\fP is usually static_cast<FunctionPrototypeImp*>(exec->interpreter()->builtinFunctionPrototype().imp()) 
.PP
Definition at line 967 of file internal.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KJS::InternalFunctionImp::setName (\fBIdentifier\fP _ident)\fC [inline]\fP"
.PP
You might want to use the helper function ObjectImp::setFunctionName for this. 
.PP
Definition at line 57 of file function.h.

.SH "Author"
.PP 
Generated automatically by Doxygen for kjs Library from the source code.
