NOX
Development
|
Abstract interface for providing a user-defined factory More...
#include <LOCA_Abstract_Factory.H>
Abstract interface for providing a user-defined factory
LOCA::Abstract::Factory provides an abstract interface for providing user-defined factories to the LOCA::Factory. The LOCA::Factory provides a mechanism for instantiating different strategies based on parameter list choices. This class allows additional strategies to be instantiated by the factory without modifying the factory itself. This is done by deriving a user-defined factory from this interface, implementing any of the create methods for the user-defined strategies, and passing an instance of the derived factory to the LOCA::Factory object. Any derived class must implement the init()
method to set the global data object which the factory can then pass to any instantiated strategies.
|
pure virtual |
Initialize factory.
The LOCA::Factory will call this method to initialize the user provided factory. The user-provided factory should perform any needed initialization here that cannot occur at construction.
Implemented in LOCA::Epetra::Factory, and LOCA::LAPACK::Factory.