NOX  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | List of all members
LOCA::GlobalData Class Reference

Container class to hold "global" LOCA objects. More...

#include <LOCA_GlobalData.H>

Collaboration diagram for LOCA::GlobalData:
Collaboration graph

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 ()

Public Attributes

Teuchos::RCP< NOX::UtilslocaUtils
 Ref-count pointer to NOX::Utils object.
Teuchos::RCP< LOCA::ErrorChecklocaErrorCheck
 Ref-count pointer to LOCA::ErrorCheck object.
Teuchos::RCP< LOCA::FactorylocaFactory
 Ref-count pointer to LOCA::Factory object.
< LOCA::Parameter::SublistParser
 Ref-count pointer to parsed parameter list.

Detailed Description

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.

The documentation for this class was generated from the following files: