sc::ClassDesc(3)
π sc::ClassDesc(3) β the MPQC manual page, bestie π
πΈ NAME πΈ
sc::ClassDesc β bestie, this class is used to contain information about classes. That's literally the whole name blurb, ngl. π
β¨ SYNOPSIS β¨
#include <class.h>
Inherits sc::Identity.
π Public Member Functions π
ClassDesc (const std::type_info &, const char *, int=1, const char *p=0, DescribedClass *(*ctor)()=0, DescribedClass *(*keyvalctor)(const Ref< KeyVal > &)=0, DescribedClass *(*stateinctor)(StateIn &)=0)β the constructor, exactly as the original lists it. The page gives no extra description here, just this iconic signature β periodt. π«Άconst ParentClasses & parents () constβ signature only in the original, bestie; no separate blurb was provided, fr fr. πconst char * name () constβ Returns the name of the class. πint version () constβ Returns the version number of the class. βDescribedClass * create_described_class () constβ This member has been replaced bycreate(). Not me mourning the old name. πvirtual DescribedClass * create () constβ Create an instance ofDescribedClasswith exact type equal to the class to which this class descriptor belongs. π₯virtual DescribedClass * create (const Ref< KeyVal > &) constβ Create an instance ofDescribedClasswith exact type equal to the class to which this class descriptor belongs. π¦virtual DescribedClass * create (StateIn &) constβ Create an instance ofDescribedClasswith exact type equal to the class to which this class descriptor belongs. πΈ
π¦ Static Public Member Functions π¦
static std::map< std::string, ClassDescP > & all ()β the original lists only this signature here, bestie. No extra one-liner given β iykyk. π«Άstatic void list_all_classes ()β Writes a list of all of the classes toExEnv::out0(). πstatic ClassDesc * name_to_class_desc (const char *)β Given the name of the class, return a pointer to the class descriptor. βstatic ClassDesc * class_desc (const std::type_info &)β Given atype_infoobject return a pointer to theClassDesc. π¦static int load_class (const char *classname)β Attempt to dynamically load the shared object file forclassname. π₯
π«Ά Friends π«Ά
class ParentClassesβ friend, that's the whole note. Short and iconic. π
π Detailed Description π
Okay so vibe check: this class is used to contain information about classes β yes, again, it's that important, bestie. π
Each DescribedClass type has a static ClassDesc member. This member has lists of the parents, children and virtual parents for each class. The ClassDesc class also has a static member that is a list of all described classes in the system. These lists are constructed as the constructors for the static ClassDesc members for each class are called and are completed before main is entered. See class for more information. π
π Member Function Documentation π
π virtual DescribedClass* sc::ClassDesc::create () const [virtual] π
Create an instance of DescribedClass with exact type equal to the class to which this class descriptor belongs. The constructor which takes no arguments is used. If this constructor doesn't exist or a static function that calls it with new wasn't given to this ClassDesc when it was created, then 0 will be returned. π
π virtual DescribedClass* sc::ClassDesc::create (const Ref< KeyVal > &) const [virtual] π
Create an instance of DescribedClass with exact type equal to the class to which this class descriptor belongs. The KeyVal& constructor is used. If this constructor doesn't exist or a static function that calls it with new wasn't passed to this ClassDesc, then 0 will be returned. π
π virtual DescribedClass* sc::ClassDesc::create (StateIn &) const [virtual] π
Create an instance of DescribedClass with exact type equal to the class to which this class descriptor belongs. The StateIn& constructor is used. If this constructor doesn't exist or a static function that calls it with new wasn't passed to this ClassDesc, then 0 will be returned. π
πΈ Author πΈ
This page was generated automatically by Doxygen for MPQC straight from the source code β it ate, no notes. π«Ά
π and that's the sc::ClassDesc(3) page! from MPQC, version 2.3.1, dated Sun Oct 4 2020 β mwah, bye bestie! π«Ά
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms