Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros
Teuchos_Handleable.hpp File Reference
#include "Teuchos_ConfigDefs.hpp"
#include "Teuchos_RCP.hpp"
Include dependency graph for Teuchos_Handleable.hpp:
This graph shows which files directly or indirectly include this file:

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

 Teuchos
 

Macros

#define TEUCHOS_GET_RCP(Base)
 Use this macro as an easy way to implement the Handleable interface in a derived class. More...
 
#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,. More...
 

Macro Definition Documentation

#define TEUCHOS_GET_RCP (   Base)
Value:
virtual Teuchos::RCP<const Base > getConstRcp() const {return rcp(this);} \
virtual Teuchos::RCP<Base > getRcp() {return rcp(this);}
RCP< T > rcp(const boost::shared_ptr< T > &sptr)
Conversion function that takes in a boost::shared_ptr object and spits out a Teuchos::RCP object...
Smart reference counting pointer class for automatic garbage collection.

Use this macro as an easy way to implement the Handleable interface in a derived class.

For example,

class Derived : public Handleable<Base>
{
public:
};

Definition at line 87 of file Teuchos_Handleable.hpp.

#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:
};

Definition at line 102 of file Teuchos_Handleable.hpp.