

Classes | |
| class | SmartPointer< T > |
Functions | |
| template<typename T > | |
| void | swap (SmartPointer< T > &t1, SmartPointer< T > &t2) |
| template<typename T > | |
| void | swap (SmartPointer< T > &t1, T *&t2) |
| template<typename T > | |
| void | swap (T *&t1, SmartPointer< T > &t2) |
| void swap | ( | SmartPointer< T > & | t1, | |
| SmartPointer< T > & | t2 | |||
| ) | [inline] |
Global function to swap the contents of two smart pointers. As both objects to which the pointers point retain to be subscribed to, we do not have to change their subscription count.
References SmartPointer< T >::swap().
Referenced by SparseMatrixEZ< number >::allocate(), TableIndicesBase< 3 >::sort(), TableIndicesBase< 2 >::sort(), PETScWrappers::MPI::BlockVector::swap(), PETScWrappers::BlockVector::swap(), and BlockIndices::swap().
| void swap | ( | SmartPointer< T > & | t1, | |
| T *& | t2 | |||
| ) | [inline] |
Global function to swap the contents of a smart pointer and a C-style pointer.
Note that we indeed need a reference of a pointer, as we want to change the pointer variable which we are given.
References SmartPointer< T >::swap().
| void swap | ( | T *& | t1, | |
| SmartPointer< T > & | t2 | |||
| ) | [inline] |
Global function to swap the contents of a C-style pointer and a smart pointer.
Note that we indeed need a reference of a pointer, as we want to change the pointer variable which we are given.
References SmartPointer< T >::swap().
documentation generated on Sat Aug 15 16:50:19 2009 by
doxygen
1.5.9