#include <Teuchos_Handleable.hpp>


Public Member Functions | |
| virtual | ~Handleable () |
| | |
| virtual RCP< Base > | getRcp ()=0 |
| Return a safely-created RCP to the base type. | |
Recall from the Teuchos RCP documentation that one should never create directly a smart pointer from a raw pointer; rather, smart pointers should be created through a call to rcp(). The type of the argument to rcp() must be known at compile time. This makes the syntax
Handle h = new Derived();
Definition at line 79 of file Teuchos_Handleable.hpp.
| virtual Teuchos::Handleable< Base >::~Handleable | ( | ) | [inline, virtual] |
| virtual RCP<Base> Teuchos::Handleable< Base >::getRcp | ( | ) | [pure virtual] |
Return a safely-created RCP to the base type.
1.5.9