Classes | |
| class | Teuchos::DeallocBoostSharedPtr< T > |
Teuchos::RefCountPtr Deallocator class that wraps a boost::shared_ptr More... | |
| class | Teuchos::RefCountPtrDeleter< T > |
boost::shared_ptr deleter class that wraps a Teuchos::RefCountPtr. More... | |
Functions | |
| template<class T> | |
| RefCountPtr< T > | Teuchos::rcp (const boost::shared_ptr< T > &sptr) |
Conversion function that takes in a boost::shared_ptr object and spits out a Teuchos::RefCountPtr object. | |
| template<class T> | |
| boost::shared_ptr< T > | Teuchos::shared_pointer (const RefCountPtr< T > &rcp) |
Conversion function that takes in a Teuchos::RefCountPtr object and spits out a boost::shared_ptr object. | |
Teuchos::RefCountPtr and boost::shared_ptr are easily compatible. The two templated conversion functions Teuchos::rcp( const boost::shared_ptr<T> & ) and Teuchos::shared_pointer( const RefCountPtr<T> & ) have been created for converting back and forth.The following code shows how to convert back and forth between these two smart pointer types:
|
||||||||||
|
Conversion function that takes in a
If the input This function is not complicated, just look at its defintion below.
Definition at line 37 of file Teuchos_RefCountPtrBoostSharedPtrConversions.hpp. |
|
||||||||||
|
Conversion function that takes in a
If the input This function is not complicated, just look at its defintion below.
Definition at line 51 of file Teuchos_RefCountPtrBoostSharedPtrConversions.hpp. |
1.3.9.1