#include <NOX_Parameter_AnyPtr.H>
Inheritance diagram for NOX::Parameter::AnyPtr:
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 () |
| Destructor. | |
| virtual Arbitrary * | clone () 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. | |
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.
1.3.9.1