.TH "sc::ForceLink< T, A >" 3 "Sun Oct 4 2020" "Version 2.3.1" "MPQC" \" -*- nroff -*- .ad l .nh .SH NAME sc::ForceLink< T, A > \- This, together with \fBForceLinkBase\fP, is used to force code for particular classes to be linked into executables\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBsc::ForceLinkBase< const Ref< KeyVal > & >\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBDescribedClass\fP * \fBcreate\fP (A a)" .br .in -1c .SH "Detailed Description" .PP .SS "template &> .br class sc::ForceLink< T, A >" This, together with \fBForceLinkBase\fP, 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 \fBClassDesc\fP object\&. The \fBClassDesc\fP object has members that can create the class\&. Unfortunately, linking in a library doesn't cause code for the the \fBClassDesc\fP, and thus the class itself, to be linked\&. \fBForceLink\fP 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\&. .SH "Author" .PP Generated automatically by Doxygen for MPQC from the source code\&.