Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Object Class Reference

#include <object.h>

Inheritance diagram for Object:

MetaClass ObjectFactory SuifObject AggregateMetaClass IIntegerMetaClass IntegerMetaClass ListMetaClass LStringMetaClass PointerMetaClass StringMetaClass SuifEnvObjectFactory TestX List of all members.

Public Methods

virtual const MetaClassget_meta_class () const
 Get the meta class object of this object. More...

virtual const AggregateMetaClassget_aggregate_meta_class () const
 Get the aggregate meta class object of this object. More...

virtual const LStringgetClassName () const
 Get the name of the class of which this object is an instance of. More...

virtual bool isA ( const LString& className ) const
 Return true if this object is an instance of the class named by className. More...

virtual bool isKindOf ( const LString& className ) const
 Return true if this object is a_kind_of the class named by className. More...

virtual void set_meta_class ( const MetaClass* metaClass )
virtual FieldWrapper get_member ( const LString &name) const
 one input name => returns the address of the object and its meta_class. More...

virtual ~Object ()
 Destructor.


Static Public Methods

const LStringget_class_name ()
 This returns the instance name of this Class - "Object".


Protected Methods

 Object ()

Protected Attributes

const AggregateMetaClass_meta_class

Static Protected Methods

void constructor_function ( void *instance )

Friends

class  ObjectFactory


Detailed Description


Constructor & Destructor Documentation

Object::~Object () [inline, virtual]

Destructor.

Object::Object () [protected]


Member Function Documentation

void Object::constructor_function ( void * place) [static, protected]

Reimplemented in ListMetaClass, ObjectFactory, PointerMetaClass, and STLMetaClass.

const LString & Object::getClassName () const [inline, virtual]

Get the name of the class of which this object is an instance of.

This returns the instance name of the actual dynamic instance.

const AggregateMetaClass * Object::get_aggregate_meta_class () const [inline, virtual]

Get the aggregate meta class object of this object.

For internal use only.

const LString & Object::get_class_name () [static]

This returns the instance name of this Class - "Object".

Reimplemented in AggregateMetaClass, IIntegerMetaClass, IntegerMetaClass, LStringMetaClass, ListMetaClass, MetaClass, ObjectAggregateMetaClass, PointerMetaClass, STLMetaClass, StringMetaClass, SuifObject, TestX, TestY, and UnionMetaClass.

FieldWrapper Object::get_member ( const LString & name) const [inline, virtual]

one input name => returns the address of the object and its meta_class.

Parameters:
name   name of a field.
address   location to store the field value.
meta_class   location to store the type of the field.

For internal use only.

const MetaClass * Object::get_meta_class ( void) const [inline, virtual]

Get the meta class object of this object.

For internal use only.

bool Object::isA ( const LString & className) const [inline, virtual]

Return true if this object is an instance of the class named by className.

Parameters:
className   name of a class.
Returns:
true iff this object is an instance of the class className.

bool Object::isKindOf ( const LString & className) const [inline, virtual]

Return true if this object is a_kind_of the class named by className.

Object o is a_kind_of class c iff o is an instance of c or a subclass of c.

Parameters:
className   name of a class.
Returns:
true iff this object is a_kind_of the class className.

void Object::set_meta_class ( const MetaClass * metaClass) [inline, virtual]

For internal use only.


Friends And Related Function Documentation

class ObjectFactory [friend]

Reimplemented in AggregateMetaClass, IIntegerMetaClass, IntegerMetaClass, LStringMetaClass, ListMetaClass, MetaClass, ObjectAggregateMetaClass, PointerMetaClass, STLMetaClass, StringMetaClass, and UnionMetaClass.


Member Data Documentation

const AggregateMetaClass * Object::_meta_class [protected]


The documentation for this class was generated from the following files:
Generated at Mon Jul 31 13:44:11 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000