base/include/base/smartpointer.h File Reference

Include dependency graph for smartpointer.h:

This graph shows which files directly or indirectly include this file:


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)

Function Documentation

template<typename T >
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().

template<typename T >
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().

template<typename T >
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().


deal.II documentation generated on Sat Aug 15 16:50:19 2009 by doxygen 1.5.9