KJS
KJS::DatePrototype Class Reference
#include <date_object.h>

Detailed Description
Definition at line 53 of file date_object.h.
Public Member Functions | |
| DatePrototype (ExecState *, ObjectPrototype *) | |
| virtual bool | getOwnPropertySlot (ExecState *, const Identifier &, PropertySlot &) |
| virtual const ClassInfo * | classInfo () const |
Static Public Attributes | |
| static const ClassInfo | info = {"Date", &DateInstance::info, &dateTable, 0} |
Constructor & Destructor Documentation
| KJS::DatePrototype::DatePrototype | ( | ExecState * | , | |
| ObjectPrototype * | objectProto | |||
| ) |
Definition at line 537 of file date_object.cpp.
Member Function Documentation
| bool KJS::DatePrototype::getOwnPropertySlot | ( | ExecState * | exec, | |
| const Identifier & | propertyName, | |||
| PropertySlot & | slot | |||
| ) | [virtual] |
| virtual const ClassInfo* KJS::DatePrototype::classInfo | ( | ) | const [inline, virtual] |
A pointer to a ClassInfo struct for this class.
This provides a basic facility for run-time type information, and can be used to check an object's class an inheritance (see inherits()). This should always return a statically declared pointer, or 0 to indicate that there is no class information.
This is primarily useful if you have application-defined classes that you wish to check against for casting purposes.
For example, to specify the class info for classes FooImp and BarImp, where FooImp inherits from BarImp, you would add the following in your class declarations:
class BarImp : public JSObject { virtual const ClassInfo *classInfo() const { return &info; } static const ClassInfo info; // ... }; class FooImp : public JSObject { virtual const ClassInfo *classInfo() const { return &info; } static const ClassInfo info; // ... };
And in your source file:
const ClassInfo BarImp::info = {"Bar", 0, 0, 0}; // no parent class const ClassInfo FooImp::info = {"Foo", &BarImp::info, 0, 0};
- See also:
- inherits()
Reimplemented from KJS::DateInstance.
Definition at line 57 of file date_object.h.
Member Data Documentation
const ClassInfo KJS::DatePrototype::info = {"Date", &DateInstance::info, &dateTable, 0} [static] |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference