#include <Teuchos_Handle.hpp>
Inheritance diagram for Teuchos::Handle< PointerType >:

Public Member Functions | |
| Handle () | |
| | |
| Handle (const RefCountPtr< PointerType > &smartPtr) | |
| Construct with an existing RefCountPtr. | |
| Handle (Handleable< PointerType > *rawPtr) | |
| Construct with a raw pointer to a Handleable. | |
| RefCountPtr< PointerType > | ptr () const |
| Read/write access to the underlying smart pointer. | |
| PointerType * | rawPtr () const |
| Access to non-const raw pointer. | |
In writing derived types, it is usually simplest to use the TEUCHOS_HANDLE_CTORS macro to generate boilerplate constructor code.
There are two modes of construction: construction from an existing RefCountPtr,
RefCountPtr<Base> r = rcp(new Derived(blahblah)); Handle<Base> h = r;
Handle<Base> h = new Derived(blahblah);
Note that the first form must be used whenever the object being handled has been allocated on the stack.
Definition at line 122 of file Teuchos_Handle.hpp.
|
|||||||||
|
Definition at line 126 of file Teuchos_Handle.hpp. |
|
||||||||||
|
Construct with an existing RefCountPtr.
Definition at line 129 of file Teuchos_Handle.hpp. |
|
||||||||||
|
Construct with a raw pointer to a Handleable. This will make a call to rcp() internally, thus removing that call from the user interface. Definition at line 140 of file Teuchos_Handle.hpp. |
|
|||||||||
|
Read/write access to the underlying smart pointer.
Definition at line 148 of file Teuchos_Handle.hpp. |
|
|||||||||
|
Access to non-const raw pointer.
Definition at line 150 of file Teuchos_Handle.hpp. |
1.3.9.1