Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   Compound 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 Namespacenamespace_interface ()
virtual Instanceinstance_interface ()
virtual Functionfunction_interface ()
virtual GenFuncgenfunc_interface ()
virtual Classclass_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 Thu May 1 21:13:05 2003 for Yehia by doxygen1.3