#include "Teuchos_ConfigDefs.hpp"
#include "Teuchos_RCP.hpp"
Go to the source code of this file.
Classes | |
class | Teuchos::ConstHandleable< Base > |
Class ConstHandleable provides an abstract interface for polymorphic conversion from raw pointers to const smart pointers. More... | |
class | Teuchos::Handleable< Base > |
Class Handleable provides an abstract interface for polymorphic conversion from raw pointers to smart pointers. More... | |
Namespaces | |
namespace | Teuchos |
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines. | |
Defines | |
#define | TEUCHOS_GET_RCP(Base) |
Use this macro as an easy way to implement the Handleable interface in a derived class. | |
#define | TEUCHOS_GET_CONST_RCP(Base) virtual Teuchos::RCP<const Base > getConstRcp() const {return rcp(this);} |
Use this macro as an easy way to implement the ConstHandleable interface in a derived class. For example,. |
#define TEUCHOS_GET_CONST_RCP | ( | Base | ) | virtual Teuchos::RCP<const Base > getConstRcp() const {return rcp(this);} |
Use this macro as an easy way to implement the ConstHandleable interface in a derived class. For example,.
class Derived : public ConstHandleable<Base> { public: TEUCHOS_GET_CONST_RCP(Base); };
Definition at line 121 of file Teuchos_Handleable.hpp.
#define TEUCHOS_GET_RCP | ( | Base | ) |
Value:
virtual Teuchos::RCP<const Base > getConstRcp() const {return rcp(this);} \ virtual Teuchos::RCP<Base > getRcp() {return rcp(this);}
For example,
class Derived : public Handleable<Base> { public: TEUCHOS_GET_RCP(Base); };
Definition at line 106 of file Teuchos_Handleable.hpp.