42 #ifndef TEUCHOS_HANDLEABLE_HPP 43 #define TEUCHOS_HANDLEABLE_HPP 65 template <
typename Base>
91 template <
typename Base>
119 #define TEUCHOS_GET_RCP(Base) \ 120 virtual Teuchos::RCP<const Base > getConstRcp() const {return rcp(this);} \ 121 virtual Teuchos::RCP<Base > getRcp() {return rcp(this);} 134 #define TEUCHOS_GET_CONST_RCP(Base) \ 135 virtual Teuchos::RCP<const Base > getConstRcp() const {return rcp(this);} 140 #endif // TEUCHOS_HANDLEABLE_HPP Teuchos header file which uses auto-configuration information to include necessary C++ headers.
virtual RCP< Base > getRcp()=0
Return a safely-created RCP to the base type.
Class Handleable provides an abstract interface for polymorphic conversion from raw pointers to smart...
virtual RCP< const Base > getConstRcp() const =0
Virtual dtorReturn a safely-created RCP to the base type.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Class ConstHandleable provides an abstract interface for polymorphic conversion from raw pointers to ...
Smart reference counting pointer class for automatic garbage collection.
Reference-counted pointer class and non-member templated function implementations.
virtual ~ConstHandleable()