![]() |
![]()
| ![]() |
![]()
NAMEsc::ClassDesc - This class is used to contain information about classes. SYNOPSIS#include <class.h> Inherits sc::Identity. Public Member FunctionsClassDesc (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)
Public Member Functions inherited from sc::Identity
Static Public Member Functionsstatic std::map< std::string, ClassDescP > &
all ()
Friendsclass ParentClasses
Detailed DescriptionThis class is used to contain information about classes. 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 Documentationvirtual 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. AuthorGenerated automatically by Doxygen for MPQC from the source code.
|