sc::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 sc::DescribedClass:

sc::RefCount sc::Identity sc::DiagSCMatrix sc::FileGrp sc::MemoryGrp sc::MessageGrp sc::PsiExEnv sc::RegionTimer sc::SavableState sc::SCMatrix sc::SCMatrixKit sc::SCVector sc::StateIn sc::StateOut sc::SymmSCMatrix sc::ThreadGrp List of all members.

Public Member Functions

 DescribedClass (const DescribedClass &)
DescribedClassoperator= (const DescribedClass &)
ClassDescclass_desc () const throw ()
 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::out0()) 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.


Member Function Documentation

ClassDesc* sc::DescribedClass::class_desc (  )  const throw ()

This returns the unique pointer to the ClassDesc corresponding to the given type_info object.

Null is returned if it fails.


The documentation for this class was generated from the following file:
Generated at Mon Dec 3 23:23:58 2007 for MPQC 2.3.1 using the documentation package Doxygen 1.5.2.