sc::ClassDesc(3)

πŸ“¦
version 2.3.1 Β· 5 versions
, in ubuntu jammy

🌈 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 by create(). Not me mourning the old name. πŸ’€
  • virtual DescribedClass * create () const β€” Create an instance of DescribedClass with exact type equal to the class to which this class descriptor belongs. πŸ”₯
  • virtual DescribedClass * create (const Ref< KeyVal > &) const β€” Create an instance of DescribedClass with exact type equal to the class to which this class descriptor belongs. πŸ¦‹
  • virtual DescribedClass * create (StateIn &) const β€” Create an instance of DescribedClass with 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 to ExEnv::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 a type_info object return a pointer to the ClassDesc. πŸ¦‹
  • static int load_class (const char *classname) β€” Attempt to dynamically load the shared object file for classname. πŸ”₯

🫢 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