TrueReality  v0.1.1912
trBase::ObsrvrPtr< T > Class Template Reference

An Observer Pointer. More...

#include <ObsrvrPtr.h>

Inheritance diagram for trBase::ObsrvrPtr< T >:
Collaboration diagram for trBase::ObsrvrPtr< T >:

Public Member Functions

 ObsrvrPtr ()
 
 ObsrvrPtr (T *t)
 
 ObsrvrPtr (const osg::observer_ptr< T > &rp)
 

Friends

std::ostream & operator<< (std::ostream &os, const ObsrvrPtr &rp)
 Prints out the memory address of the held pointer. More...
 

Detailed Description

template<class T>
class trBase::ObsrvrPtr< T >

An Observer Pointer.

It holds a pointer to an object but does not own it, and does not delete it when destroyed. If the owner destroys the referenced pointer, the Observer Pointer is set to NULL

Definition at line 35 of file ObsrvrPtr.h.

Constructor & Destructor Documentation

◆ ObsrvrPtr() [1/3]

template<class T>
trBase::ObsrvrPtr< T >::ObsrvrPtr ( )
inline

Definition at line 38 of file ObsrvrPtr.h.

◆ ObsrvrPtr() [2/3]

template<class T>
trBase::ObsrvrPtr< T >::ObsrvrPtr ( T *  t)
inline

Definition at line 41 of file ObsrvrPtr.h.

◆ ObsrvrPtr() [3/3]

template<class T>
trBase::ObsrvrPtr< T >::ObsrvrPtr ( const osg::observer_ptr< T > &  rp)
inline

Definition at line 44 of file ObsrvrPtr.h.

Friends And Related Function Documentation

◆ operator<<

template<class T>
std::ostream& operator<< ( std::ostream &  os,
const ObsrvrPtr< T > &  rp 
)
friend

Prints out the memory address of the held pointer.

Definition at line 50 of file ObsrvrPtr.h.


The documentation for this class was generated from the following file: