ObjectTipe Class Reference

Type for object instances. More...

#import <tipe.h>

Inheritance diagram for ObjectTipe:

ContainerTipe Tipe List of all members.

Public Member Functions

(void) - parent:
 sets parent tipe for this object.
(id) - parent
 returns parent tipe for this object.
(id) - parentTipe:
 returns parent tipe for some level.
(int) - fieldOrder:
 Number of inheritance levels for field definition.
(char *) - classname
 getter for class name of this type
(void) - classname:
 getter for class name of this type
(void) - method:
 Indicates this type implements some method.
(BOOL) - hasMethod:
 Indicates this class implements this method itself without inheriting.
(int) - findMethod:
 Finds the inheritance level for this method.

Protected Attributes

ObjectTipeparent
char * name
SymTablemethods

Detailed Description

Type for object instances.

A few methods of this class talk about "inheritance levels". This is because we implement inheritance in C by containing the parent class. To access an inherited field, we must access this parent struct (ie instance.parent.fieldname). The mechanism for inherited methods is similar.


Member Function Documentation

- (void) parent: (id)  p  

sets parent tipe for this object.

- (id) parent  

returns parent tipe for this object.

- (id) parentTipe: (int)  level  

returns parent tipe for some level.

Parameters:
The level up the inheritance tree to look
Returns:
The tipe for the nth parent.

- (int) fieldOrder: (char *)  f  

Number of inheritance levels for field definition.

Parameters:
f The name of the field.
Number of levels up the inhertance tree in which the field is define.

- (BOOL) hasMethod: (char *)  msg  

Indicates this class implements this method itself without inheriting.

- (int) findMethod: (char *)  msg  

Finds the inheritance level for this method.


The documentation for this class was generated from the following files:
Generated on Mon Dec 24 06:11:58 2007 for gfront by  doxygen 1.5.2