NOX
Development
|
Concrete instantiation of a NOX::Direction::UserDefinedFactory object that uses the base objects only for constuction. More...
#include <NOX_Direction_UserDefinedFactoryT.H>
Public Member Functions | |
UserDefinedFactoryT () | |
Constructor. | |
~UserDefinedFactoryT () | |
Destructor. | |
Teuchos::RCP < NOX::Direction::Generic > | buildDirection (const Teuchos::RCP< NOX::GlobalData > &gd, Teuchos::ParameterList ¶ms) const |
Builds a user defined direction object. More... | |
Public Member Functions inherited from NOX::Direction::UserDefinedFactory | |
UserDefinedFactory () | |
Constructor. | |
virtual | ~UserDefinedFactory () |
Destructor. | |
Concrete instantiation of a NOX::Direction::UserDefinedFactory object that uses the base objects only for constuction.
If the user writes their own direction and that object has the same constructor arguments as the nox directions (the gd
and params
as in the buildDirection method), then users can use this object instead of having to write their own factory.
For example, if a user writes their own direction object:
They can build that object using this factory and do not have to write their own factory
It is critical that the user defined factory be set in the parameter list as a base class type object: NOX::Direction::UserDefinedFactory.
|
inlinevirtual |
Builds a user defined direction object.
gd | A global data pointer that contains the top level parameter list. Without storing this inside the direction object, there is no guarantee that the second parameter params will still exist. It can be deleted by the top level RCP. |
params | Sublist with direction construction parameters. |
Implements NOX::Direction::UserDefinedFactory.
References rcp().