Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

sc::ForceLink Class Template Reference

This, together with ForceLinkBase, is used to force code for particular classes to be linked into executables. More...

#include <class.h>

Inheritance diagram for sc::ForceLink:

Inheritance graph
[legend]
Collaboration diagram for sc::ForceLink:

Collaboration graph
[legend]
List of all members.

Public Methods

DescribedClasscreate (A a)

Detailed Description

template<class T, class A = const Ref<KeyVal> &>
class sc::ForceLink< T, 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 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.


The documentation for this class was generated from the following file:
Generated at Fri Jan 10 08:14:52 2003 for MPQC 2.1.3 using the documentation package Doxygen 1.2.14.