Conversion utilities for going between Teuchos::RCP and boost::shared_ptr.

Classes

class  Teuchos::DeallocBoostSharedPtr< T >
 Teuchos::RCP Deallocator class that wraps a boost::shared_ptr More...
class  Teuchos::RCPDeleter< T >
 boost::shared_ptr deleter class that wraps a Teuchos::RCP. More...

Functions

template<class T >
bool boost::is_null (const boost::shared_ptr< T > &p)
 Returns true if p.get()==NULL.
template<class T >
bool boost::nonnull (const boost::shared_ptr< T > &p)
 Returns true if p.get()!=NULL.

Detailed Description

The smart pointer classes Teuchos::RCP and boost::shared_ptr are easily compatible. The two templated conversion functions Teuchos::rcp( const boost::shared_ptr<T> & ) and Teuchos::shared_pointer( const RCP<T> & ) have been created for converting back and forth (see the related non-member functions rcp() and shared_pointer() the RCP classes' documentation).


Function Documentation

template<class T >
bool boost::is_null ( const boost::shared_ptr< T > &  p  )  [inline]

Returns true if p.get()==NULL.

Definition at line 141 of file Teuchos_RCPBoostSharedPtrConversionsDecl.hpp.

template<class T >
bool boost::nonnull ( const boost::shared_ptr< T > &  p  )  [inline]

Returns true if p.get()!=NULL.

Definition at line 152 of file Teuchos_RCPBoostSharedPtrConversionsDecl.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 09:57:35 2011 for Teuchos Package Browser (Single Doxygen Collection) by  doxygen 1.6.3