#include <itkFEMLoadImplementationTest.h>
Static Public Methods | |
void | impl (Element2DC0LinearLineStress::ConstPointer element, Element::LoadPointer load, Element::VectorType &Fe) |
This is an example of how to define the implementation of a templated Load class. Since the Load class is templated, its implementation must also be templated. Due to limitations of MS compiler, we define this implementation function as a static function inside a templated class.
To make things easier to use, we template the class over the whole templated load class and not only over the template parameters required to define the templated Load class.
You must manually instantiate this class to register the load implementation function with the VisitorDispatcher. The instantiation is normally done like this:
typedef LoadTest<...> MyLoadTestClass; template class LoadImplementationTest<MyLoadTestClass>;
Definition at line 51 of file itkFEMLoadImplementationTest.h.
|
Definition at line 54 of file itkFEMLoadImplementationTest.h. |