10#ifndef TEUCHOS_RCP_BOOST_SHAREDPTR_CONVERSIONS_DECL_HPP
11#define TEUCHOS_RCP_BOOST_SHAREDPTR_CONVERSIONS_DECL_HPP
14#include "boost/shared_ptr.hpp"
48 void free( T* ptr_in )
const { sptr_.reset(); }
50 const boost::shared_ptr<T>&
ptr()
const {
return sptr_; }
52 mutable boost::shared_ptr<T> sptr_;
121template<
class T>
inline
132template<
class T>
inline
Reference-counted pointer class and non-member templated function implementations.
void free(T *ptr_in) const
DeallocBoostSharedPtr(const boost::shared_ptr< T > &sptr)
const boost::shared_ptr< T > & ptr() const
void operator()(T *x) const
RCPDeleter(const RCP< T > &rcp)
const RCP< T > & ptr() const
Smart reference counting pointer class for automatic garbage collection.
boost::shared_ptr< T > shared_pointer(const RCP< T > &rcp)
Conversion function that takes in a Teuchos::RCP object and spits out a boost::shared_ptr object.
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.
bool is_null(const boost::shared_ptr< T > &p)
Returns true if p.get()==NULL.
bool nonnull(const boost::shared_ptr< T > &p)
Returns true if p.get()!=NULL.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.