Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

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

A scripting object. More...

#include <base.h>

List of all members.

Public Member Functions

 Object (ObjectFactory &factory)
virtual ~Object ()
void reference ()
void unreference ()
ObjectFactory & factory () const
virtual Any value () const =0
virtual Namespace * namespace_interface ()
virtual Instance * instance_interface ()
virtual Function * function_interface ()
virtual GenFunc * genfunc_interface ()
virtual Class * class_interface ()


Detailed Description

A scripting object.

A scripting object represents an entity of a scripting language, like (in Python) modules, classes, methods. Scripting objects are reference-counted. If a object's reference count reaches zero it is destroyed.


Constructor & Destructor Documentation

Yehia::Script::Object::Object (  ObjectFactory &  factory  )  [inline]
 

Constructor.

The initial reference count is set to one.

Parameters:
factory The corresponding object factory.

virtual Yehia::Script::Object::~Object (   )  [virtual]
 

Destructor.


Member Function Documentation

virtual Class* Yehia::Script::Object::class_interface (   )  [virtual]
 

Get interface.

Returns:
A pointer to the interface or 0 if this interface is not available.

ObjectFactory& Yehia::Script::Object::factory (   )  const [inline]
 

Get object factory.

Returns:
The object's factory.

virtual Function* Yehia::Script::Object::function_interface (   )  [virtual]
 

Get interface.

Returns:
A pointer to the interface or 0 if this interface is not available.

virtual GenFunc* Yehia::Script::Object::genfunc_interface (   )  [virtual]
 

Get interface.

Returns:
A pointer to the interface or 0 if this interface is not available.

virtual Instance* Yehia::Script::Object::instance_interface (   )  [virtual]
 

Get interface.

Returns:
A pointer to the interface or 0 if this interface is not available.

virtual Namespace* Yehia::Script::Object::namespace_interface (   )  [virtual]
 

Get interface.

Returns:
A pointer to the interface or 0 if this interface is not available.

void Yehia::Script::Object::reference (   )  [inline]
 

Increase reference count.

void Yehia::Script::Object::unreference (   ) 
 

Descrease reference count and destroy this if it reaches zero.

virtual Any Yehia::Script::Object::value (   )  const [pure virtual]
 

Get object value.

Returns:
Any object with the value of this object.


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 14:42:03 2003 for Yehia by doxygen 1.3.4