LOCA::GlobalData Class Reference

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

#include <LOCA_GlobalData.H>

Collaboration diagram for LOCA::GlobalData:

List of all members.

Public Member Functions

 GlobalData (const Teuchos::RefCountPtr< LOCA::Utils > &loca_utils, const Teuchos::RefCountPtr< LOCA::ErrorCheck > &loca_error_check, const Teuchos::RefCountPtr< LOCA::Factory > &loca_factory)
 Constructor taking a ref-count pointer to each global object.
virtual ~GlobalData ()

Public Attributes

Teuchos::RefCountPtr< LOCA::UtilslocaUtils
 Ref-count pointer to LOCA::Utils object.
Teuchos::RefCountPtr< LOCA::ErrorChecklocaErrorCheck
 Ref-count pointer to LOCA::ErrorCheck object.
Teuchos::RefCountPtr< LOCA::FactorylocaFactory
 Ref-count pointer to LOCA::Factory object.

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:
Generated on Thu Sep 18 12:40:41 2008 for NOX by doxygen