NOX::Parameter::AnyPtr Class Reference

Implementation of NOX::Parameter::Arbitrary to hold pointers. More...

#include <NOX_Parameter_AnyPtr.H>

Inheritance diagram for NOX::Parameter::AnyPtr:

Collaboration diagram for NOX::Parameter::AnyPtr:
List of all members.

Public Member Functions

template<typename T>
 AnyPtr (T *ptr)
 Constructor, non-const reference.
template<typename T>
 AnyPtr (const T *ptr)
 Constructor, const reference.
 AnyPtr (const Teuchos::any &otherData)
 Constructor taking Teuchos::any.
 AnyPtr (const AnyPtr &src)
 Copy constructor.
virtual ~AnyPtr ()
virtual Arbitraryclone () const
 Clone a exact replica of yourself and pass back a pointer.
virtual const string & getType () const
 Get a short descriptive string describing the Arbitrary object.
virtual ostream & print (ostream &stream, int indent=0) const
 Print out detailed information describing the Arbitrary object.
template<typename T>
bool isType () const
 Return whether stored data type is T.
template<typename T>
T * getPointer () const
 Return stored pointer.
template<typename T>
const T * getConstPointer () const
 Return stored pointer.

Protected Attributes

Teuchos::any data
 Teuchos any container.
string type_string
 Type name for Arbitrary.

Detailed Description

Implementation of NOX::Parameter::Arbitrary to hold pointers.

AnyPtr is an implementation of NOX::Parameter::Arbitrary to allow passing of pointers through parameter lists. It uses Teuchos::any to store the pointer in a type-safe manner.

The documentation for this class was generated from the following file:
Generated on Thu Sep 18 12:40:51 2008 for NOX by doxygen