Classes | Macros | Functions
vil_smart_ptr.h File Reference

Contains a templated smart pointer class. More...

#include <iosfwd>

Go to the source code of this file.

Classes

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

Macros

#define VIL_SMART_PTR_INSTANTIATE(T)   extern "please include vil/vil_smart_ptr.hxx 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). More...
 
template<class T >
bool operator!= (T const *p, vil_smart_ptr< T > const &a)
 
template<class T >
std::ostream & operator<< (std::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 Francois 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.

Macro Definition Documentation

◆ VIL_SMART_PTR_INSTANTIATE

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

Definition at line 167 of file vil_smart_ptr.h.

Function Documentation

◆ operator!=()

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

Definition at line 156 of file vil_smart_ptr.h.

◆ operator<<()

template<class T >
std::ostream& operator<< ( std::ostream &  ,
vil_smart_ptr< T > const &   
)

Definition at line 32 of file vil_smart_ptr.hxx.

◆ operator==()

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 150 of file vil_smart_ptr.h.