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

Class Class Reference

Class of classes, contains run-time information about a class. More...

#include <mclass.h>

Inheritance diagram for Class:

List of all members.

Public Methods

 Class ()
void addparent (const char *nam)
const Stringgetname () const
void printclassinfo (FILE *out=stdout) const
bool issameclass (const Object &other) const
Object * getInstance () const

Detailed Description

Class of classes, contains run-time information about a class.

Contains a number of static variables that help to build a more or less complete run-time class hierarchy.

To get into the run-time hierarchy a class must implement the decl_dynamic(class) and impl_dynamic(class,parent) macros. The former is given first in a class declaration in a header file, and the latter is given in a source file (to create a global class object).

Definition at line 58 of file mclass.h.


Constructor & Destructor Documentation

Class   [inline]
 

Empty constructor shouldn't be called ever....

Definition at line 69 of file mclass.h.


Member Function Documentation

void addparent const char *    nam [inline]
 

Adds a parent to the class with the given name.

Definition at line 74 of file mclass.h.

Object* getInstance   const [inline]
 

Dynamically creates an instance of the class.

Definition at line 88 of file mclass.h.

References GetClassInstance::getInstance().

const String& getname   const [inline]
 

Returns the name of the class.

Definition at line 77 of file mclass.h.

bool issameclass const Object &    other const [inline]
 

Returns true if the other object is of this class.

Definition at line 83 of file mclass.h.

void printclassinfo FILE *    out = stdout const
 

Prints out the class information.

Definition at line 91 of file mclass.cc.

References Array< String >::size().


The documentation for this class was generated from the following files:
Generated on Thu Feb 10 20:06:43 2005 for LibMagiC by doxygen1.2.18