NOX
Development
|
Container class to hold "global" LOCA objects. More...
#include <LOCA_GlobalData.H>
Public Member Functions | |
GlobalData (const Teuchos::RCP< NOX::Utils > &loca_utils, const Teuchos::RCP< LOCA::ErrorCheck > &loca_error_check, const Teuchos::RCP< LOCA::Factory > &loca_factory) | |
Constructor taking a ref-count pointer to each global object. | |
virtual | ~GlobalData () |
Destructor. | |
Public Attributes | |
Teuchos::RCP< NOX::Utils > | locaUtils |
Ref-count pointer to NOX::Utils object. | |
Teuchos::RCP< LOCA::ErrorCheck > | locaErrorCheck |
Ref-count pointer to LOCA::ErrorCheck object. | |
Teuchos::RCP< LOCA::Factory > | locaFactory |
Ref-count pointer to LOCA::Factory object. | |
Teuchos::RCP < LOCA::Parameter::SublistParser > | parsedParams |
Ref-count pointer to parsed parameter list. | |
Container class to hold "global" LOCA objects.
GlobalData is a container class that holds ref-count pointers to "global" objects, i.e., objects that nearly every LOCA object will need access to. By putting them all in one container class, the container class can be stored in each LOCA object, and if a new global object is needed, it can be added here without modifying the rest of the code. This is an alternative to true global or static objects which are note safe in many contexts. In particular, this approach allows multiple LOCA "invocations" to be in memory at the same time. Note that all data members are declared public.