<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>MPQC: sc::DescribedClass Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><b>sc</b>::<a class="el" href="classsc_1_1DescribedClass.html">DescribedClass</a> </div> </div> <div class="contents"> <h1>sc::DescribedClass Class Reference</h1><!-- doxytag: class="sc::DescribedClass" --><!-- doxytag: inherits="sc::RefCount" -->Classes which need runtime information about themselves and their relationship to other classes can virtually inherit from <a class="el" href="classsc_1_1DescribedClass.html" title="Classes which need runtime information about themselves and their relationship to...">DescribedClass</a>. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="class_8h_source.html">class.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for sc::DescribedClass:</div> <div class="dynsection"> <p><center><img src="classsc_1_1DescribedClass.png" usemap="#sc::DescribedClass_map" border="0" alt=""></center> <map name="sc::DescribedClass_map"> <area href="classsc_1_1RefCount.html" alt="sc::RefCount" shape="rect" coords="0,56,153,80"> <area href="classsc_1_1Identity.html" alt="sc::Identity" shape="rect" coords="0,0,153,24"> <area href="classsc_1_1DiagSCMatrix.html" alt="sc::DiagSCMatrix" shape="rect" coords="163,224,316,248"> <area href="classsc_1_1FileGrp.html" alt="sc::FileGrp" shape="rect" coords="163,280,316,304"> <area href="classsc_1_1MemoryGrp.html" alt="sc::MemoryGrp" shape="rect" coords="163,336,316,360"> <area href="classsc_1_1MessageGrp.html" alt="sc::MessageGrp" shape="rect" coords="163,392,316,416"> <area href="classsc_1_1PsiExEnv.html" alt="sc::PsiExEnv" shape="rect" coords="163,448,316,472"> <area href="classsc_1_1RegionTimer.html" alt="sc::RegionTimer" shape="rect" coords="163,504,316,528"> <area href="classsc_1_1SavableState.html" alt="sc::SavableState" shape="rect" coords="163,560,316,584"> <area href="classsc_1_1SCMatrix.html" alt="sc::SCMatrix" shape="rect" coords="163,616,316,640"> <area href="classsc_1_1SCMatrixKit.html" alt="sc::SCMatrixKit" shape="rect" coords="163,672,316,696"> <area href="classsc_1_1SCVector.html" alt="sc::SCVector" shape="rect" coords="163,728,316,752"> <area href="classsc_1_1StateIn.html" alt="sc::StateIn" shape="rect" coords="163,784,316,808"> <area href="classsc_1_1StateOut.html" alt="sc::StateOut" shape="rect" coords="163,840,316,864"> <area href="classsc_1_1SymmSCMatrix.html" alt="sc::SymmSCMatrix" shape="rect" coords="163,896,316,920"> <area href="classsc_1_1ThreadGrp.html" alt="sc::ThreadGrp" shape="rect" coords="163,952,316,976"> </map> </div> <p> <a href="classsc_1_1DescribedClass-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6e904e781e460d589378c12358591ef"></a><!-- doxytag: member="sc::DescribedClass::DescribedClass" ref="f6e904e781e460d589378c12358591ef" args="(const DescribedClass &)" --> </td><td class="memItemRight" valign="bottom"><b>DescribedClass</b> (const <a class="el" href="classsc_1_1DescribedClass.html">DescribedClass</a> &)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6f9b5823b636cab835e39c6b24a3478a"></a><!-- doxytag: member="sc::DescribedClass::operator=" ref="6f9b5823b636cab835e39c6b24a3478a" args="(const DescribedClass &)" --> <a class="el" href="classsc_1_1DescribedClass.html">DescribedClass</a> & </td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classsc_1_1DescribedClass.html">DescribedClass</a> &)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classsc_1_1ClassDesc.html">ClassDesc</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classsc_1_1DescribedClass.html#543db7ca087135f8bd28776c2801f930">class_desc</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">This returns the unique pointer to the <a class="el" href="classsc_1_1ClassDesc.html" title="This class is used to contain information about classes.">ClassDesc</a> corresponding to the given type_info object. <a href="#543db7ca087135f8bd28776c2801f930"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4c3305b01115fbfd560a4dc397d4842c"></a><!-- doxytag: member="sc::DescribedClass::class_name" ref="4c3305b01115fbfd560a4dc397d4842c" args="() const " --> const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classsc_1_1DescribedClass.html#4c3305b01115fbfd560a4dc397d4842c">class_name</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the name of the object's exact type. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05088e3cd127293ac1c5f61e507c34f9"></a><!-- doxytag: member="sc::DescribedClass::class_version" ref="05088e3cd127293ac1c5f61e507c34f9" args="() const " --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsc_1_1DescribedClass.html#05088e3cd127293ac1c5f61e507c34f9">class_version</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the version of the class. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0d2e580b61452fb906f27ed972ea3800"></a><!-- doxytag: member="sc::DescribedClass::print" ref="0d2e580b61452fb906f27ed972ea3800" args="(std::ostream &=ExEnv::out0()) const " --> virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsc_1_1DescribedClass.html#0d2e580b61452fb906f27ed972ea3800">print</a> (std::ostream &=ExEnv::out0()) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Print the object. <br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Classes which need runtime information about themselves and their relationship to other classes can virtually inherit from <a class="el" href="classsc_1_1DescribedClass.html" title="Classes which need runtime information about themselves and their relationship to...">DescribedClass</a>. <p> This will provide the class with the ability to query its name and its version. Furthermore, the class's static <a class="el" href="classsc_1_1ClassDesc.html" title="This class is used to contain information about classes.">ClassDesc</a> can be obtained which permits several other operations. See <a class="el" href="class.html">The Described Class Library</a> for more information. <hr><h2>Member Function Documentation</h2> <a class="anchor" name="543db7ca087135f8bd28776c2801f930"></a><!-- doxytag: member="sc::DescribedClass::class_desc" ref="543db7ca087135f8bd28776c2801f930" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classsc_1_1ClassDesc.html">ClassDesc</a>* sc::DescribedClass::class_desc </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> This returns the unique pointer to the <a class="el" href="classsc_1_1ClassDesc.html" title="This class is used to contain information about classes.">ClassDesc</a> corresponding to the given type_info object. <p> Null is returned if it fails. </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="class_8h_source.html">class.h</a></ul> </div> <hr> <address> <small> Generated at Wed Oct 14 14:12:16 2009 for <a href="http://www.mpqc.org">MPQC</a> 2.3.1 using the documentation package <a href="http://www.doxygen.org">Doxygen</a> 1.5.9. </small> </address> </body> </html>