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

DescribedClass Class Reference

Classes which need runtime information about themselves and their relationship to other classes can virtually inherit from DescribedClass. More...

#include <class.h>

Inheritance diagram for DescribedClass

Inheritance graph
[legend]
Collaboration diagram for DescribedClass:

Collaboration graph
[legend]
List of all members.

Public Methods

 DescribedClass ()
 DescribedClass (const DescribedClass &)
DescribedClass& operator= (const DescribedClass &)
virtual ~DescribedClass ()
ClassDescclass_desc () const
 This returns the unique pointer to the ClassDesc corresponding to the given type_info object.

const char* class_name () const
 Return the name of the object's exact type.

int class_version () const
 Return the version of the class.

virtual void print (std::ostream &=ExEnv::out()) const
 Print the object.


Detailed Description

Classes which need runtime information about themselves and their relationship to other classes can virtually inherit from DescribedClass.

This will provide the class with the ability to query its name and its version. Furthermore, the class's static ClassDesc can be obtained which permits several other operations. See The Described Class Library for more information.


The documentation for this class was generated from the following file:
Generated at Thu Oct 4 18:09:02 2001 for MPQC 2.0.0 using the documentation package Doxygen 1.2.5.