Classes | Defines | Functions
core/vil/vil_smart_ptr.h File Reference

Contains a templated smart pointer class. More...

#include <vcl_iosfwd.h>

Go to the source code of this file.

Classes

class  vil_smart_ptr< T >
 A templated smart pointer class. More...

Defines

#define VIL_SMART_PTR_INSTANTIATE(T)   extern "please include vil/vil_smart_ptr.txx instead"

Functions

template<class T >
bool operator== (T const *p, vil_smart_ptr< T > const &a)
 Comparison of pointer with smart-pointer (cannot be a member function).
template<class T >
bool operator!= (T const *p, vil_smart_ptr< T > const &a)
template<class T >
vcl_ostream & operator<< (vcl_ostream &, vil_smart_ptr< T > const &)

Detailed Description

Contains a templated smart pointer class.

Author:
Richard Hartley (original Macro version), William A. Hoffman (current templated version)
   Modifications
   2000.05.15 François BERTEL Added some missing <T>
   2000.05.16 Peter Vanroose  Operators > < >= <= made const
   2000.09.13 fsm      Added rationale for unprotect().
   PDA (Manchester) 23/03/2001: Tidied up the documentation
   Peter Vanroose   27/05/2001: Corrected the documentation
     Feb.2002 - Peter Vanroose - brief doxygen comment placed on single line
   2002.9.20  Ian Scott       Copied into vil1, renamed and simplified.
   

Definition in file vil_smart_ptr.h.


Define Documentation

#define VIL_SMART_PTR_INSTANTIATE (   T)    extern "please include vil/vil_smart_ptr.txx instead"

Definition at line 164 of file vil_smart_ptr.h.


Function Documentation

template<class T >
bool operator!= ( T const *  p,
vil_smart_ptr< T > const &  a 
) [inline]

Definition at line 153 of file vil_smart_ptr.h.

template<class T >
vcl_ostream& operator<< ( vcl_ostream &  ,
vil_smart_ptr< T > const &   
)

Definition at line 29 of file vil_smart_ptr.txx.

template<class T >
bool operator== ( T const *  p,
vil_smart_ptr< T > const &  a 
) [inline]

Comparison of pointer with smart-pointer (cannot be a member function).

Definition at line 147 of file vil_smart_ptr.h.