MPQC
3.0.0-alpha
|
This, together with ForceLinkBase, is used to force code for particular classes to be linked into executables. More...
#include <util/class/class.h>
Public Member Functions | |
DescribedClass * | create (A a) |
This, together with ForceLinkBase, is used to force code for particular classes to be linked into executables.
Objects are created from input and checkpoint files by using class name lookup to find that class's ClassDesc object. The ClassDesc object has members that can create the class. Unfortunately, linking in a library doesn't cause code for the ClassDesc, and thus the class itself, to be linked. ForceLink objects are created in linkage.h files for each library. The code containing the main routine for an executable can include these linkage files to force code for that library's classes to be linked.