Reference< T > Class Template Reference

#include <pbrt.h>

List of all members.

Public Member Functions

 Reference (T *p=NULL)
 Reference (const Reference< T > &r)
Referenceoperator= (const Reference< T > &r)
Referenceoperator= (T *p)
 ~Reference ()
T * operator-> ()
const T * operator-> () const
 operator bool () const
bool operator< (const Reference< T > &t2) const

Private Attributes

T * ptr


Detailed Description

template<class T>
class Reference< T >

Definition at line 314 of file pbrt.h.


Constructor & Destructor Documentation

template<class T>
Reference< T >::Reference ( T *  p = NULL  )  [inline]

Definition at line 317 of file pbrt.h.

template<class T>
Reference< T >::Reference ( const Reference< T > &  r  )  [inline]

Definition at line 321 of file pbrt.h.

template<class T>
Reference< T >::~Reference (  )  [inline]

Definition at line 337 of file pbrt.h.


Member Function Documentation

template<class T>
Reference& Reference< T >::operator= ( const Reference< T > &  r  )  [inline]

Definition at line 325 of file pbrt.h.

template<class T>
Reference& Reference< T >::operator= ( T *  p  )  [inline]

Definition at line 331 of file pbrt.h.

template<class T>
T* Reference< T >::operator-> (  )  [inline]

Definition at line 341 of file pbrt.h.

template<class T>
const T* Reference< T >::operator-> (  )  const [inline]

Definition at line 342 of file pbrt.h.

template<class T>
Reference< T >::operator bool (  )  const [inline]

Definition at line 343 of file pbrt.h.

template<class T>
bool Reference< T >::operator< ( const Reference< T > &  t2  )  const [inline]

Definition at line 344 of file pbrt.h.


Member Data Documentation

template<class T>
T* Reference< T >::ptr [private]

Definition at line 348 of file pbrt.h.

Referenced by Reference< Shape >::operator bool(), Reference< Shape >::operator->(), Reference< Shape >::operator<(), Reference< Shape >::operator=(), Reference< Shape >::Reference(), and Reference< Shape >::~Reference().


The documentation for this class was generated from the following file:
Generated on Wed Sep 26 14:01:27 2007 for pbrt by  doxygen 1.5.1