Classes | Functions

include/deal.II/base/smartpointer.h File Reference

Include dependency graph for smartpointer.h:

Go to the source code of this file.

Classes

class  SmartPointer< T, P >

Functions

template<typename T , typename P , class Q >
void swap (SmartPointer< T, P > &t1, SmartPointer< T, Q > &t2)
template<typename T , typename P >
void swap (SmartPointer< T, P > &t1, T *&t2)
template<typename T , typename P >
void swap (T *&t1, SmartPointer< T, P > &t2)

Function Documentation

template<typename T , typename P , class Q >
void swap ( SmartPointer< T, P > &  t1,
SmartPointer< T, Q > &  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.

Definition at line 478 of file smartpointer.h.

References SmartPointer< T, P >::swap().

Referenced by SparseMatrixEZ< number >::allocate(), TableIndicesBase< 3 >::sort(), TableIndicesBase< 2 >::sort(), BlockIndices::swap(), and SmartPointer< T, P >::swap().

template<typename T , typename P >
void swap ( SmartPointer< T, P > &  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.

Definition at line 494 of file smartpointer.h.

References SmartPointer< T, P >::swap().

template<typename T , typename P >
void swap ( T *&  t1,
SmartPointer< T, P > &  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.

Definition at line 510 of file smartpointer.h.

References SmartPointer< T, P >::swap().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:03:01 by doxygen 1.7.2