Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

Yehia::Script::Class Class Reference
[Scripting]

Class interface. More...

#include <base.h>

List of all members.

Public Member Functions

virtual void set_constructor (Object &genfunc)=0
virtual void add_genfunc (const std::string &name, Object &genfunc)=0
virtual void add_class_genfunc (const std::string &name, Object &genfunc)=0
virtual void add_setter (const std::string &name, Object &genfunc)=0
virtual void add_getter (const std::string &name, Object &genfunc)=0


Detailed Description

Class interface.

This interface is implemented by wrapped C++ class object.


Member Function Documentation

virtual void Yehia::Script::Class::add_class_genfunc const std::string &  name,
Object genfunc
[pure virtual]
 

Add a generic function to the class itself.

The generic function implements a method that behave like a C++ static method, that is, it belongs to the class itself, not it's instances. The generic function should take no arguments.

Parameters:
name Name of the generic function.
genfunc Generic function.

virtual void Yehia::Script::Class::add_genfunc const std::string &  name,
Object genfunc
[pure virtual]
 

Add a generic function to the instances of the class.

The generic function may be called for instances of the class. It must take at least one argument, its type being of this class.

Parameters:
name Name of the generic function.
genfunc Generic function.

virtual void Yehia::Script::Class::add_getter const std::string &  name,
Object genfunc
[pure virtual]
 

Add a getter function to the instances of the class.

Parameters:
name Name of the generic function.
genfunc Generic function.

virtual void Yehia::Script::Class::add_setter const std::string &  name,
Object genfunc
[pure virtual]
 

Add a getter function to the instances of the class.

Parameters:
name Name of the generic function.
genfunc Generic function.

virtual void Yehia::Script::Class::set_constructor Object genfunc  )  [pure virtual]
 

Set the class constructor.

Parameters:
genfunc Constructor generic function.


The documentation for this class was generated from the following file:
Generated on Thu May 1 21:13:04 2003 for Yehia by doxygen1.3