42 #ifndef TEUCHOS_RCP_BOOST_SHAREDPTR_CONVERSIONS_DECL_HPP 43 #define TEUCHOS_RCP_BOOST_SHAREDPTR_CONVERSIONS_DECL_HPP 46 #include "boost/shared_ptr.hpp" 80 void free( T* ptr_in )
const { sptr_.reset(); }
82 const boost::shared_ptr<T>&
ptr()
const {
return sptr_; }
84 mutable boost::shared_ptr<T> sptr_;
125 RCP<T>
rcp(
const boost::shared_ptr<T> &sptr );
140 boost::shared_ptr<T> shared_pointer(
const RCP<T> &
rcp );
153 template<
class T>
inline 164 template<
class T>
inline 174 #endif // TEUCHOS_RCP_BOOST_SHAREDPTR_CONVERSIONS_DECL_HPP bool is_null(const boost::shared_ptr< T > &p)
Returns true if p.get()==NULL.
const boost::shared_ptr< T > & ptr() const
void free(T *ptr_in) const
const RCP< T > & ptr() const
RCPDeleter(const RCP< T > &rcp)
DeallocBoostSharedPtr(const boost::shared_ptr< T > &sptr)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
void operator()(T *x) const
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, as well as a number of utility routines.
Reference-counted pointer class and non-member templated function implementations.
boost::shared_ptr deleter class that wraps a Teuchos::RCP.
Smart reference counting pointer class for automatic garbage collection.
Teuchos::RCP Deallocator class that wraps a boost::shared_ptr