#include <it_bus/var.h>
The class IT_AutoPtr, described in it_cal/auto_ptr.h, is a smart pointer for non-reference counted objects.
Definition at line 18 of file var.h.
Public Member Functions | |
Var (T *ptr) throw (()) | |
Constructor. | |
Var (const Var< T > &ptr) throw (()) | |
Constructor. | |
Var () throw (()) | |
No argument constructor. | |
~Var () throw (()) | |
Destructor. | |
T * | operator-> () const throw (()) |
Arrow operator. | |
T & | operator * () const throw (()) |
Dereferencing operator. | |
T * | get () const throw (()) |
Get the pointer but do not give up ownership. | |
T * | release () throw (()) |
Release the reference, giving up responsibility for calling _remove_ref to the caller. | |
Var< T > & | operator= (const Var< T > &ptr) throw (()) |
Assignment operator. | |
Var< T > & | operator= (T *ptr) throw (()) |
Assignment operator. | |
operator T * () const | |
Return the encapsulated T pointer. | |
Private Attributes | |
T * | m_ptr |
IT_Bus::Var< T >::Var | ( | T * | ptr | ) | throw (()) [inline] |
IT_Bus::Var< T >::Var | ( | const Var< T > & | ptr | ) | throw (()) [inline] |
IT_Bus::Var< T >::~Var | ( | ) | throw (()) [inline] |
T* IT_Bus::Var< T >::operator-> | ( | ) | const throw (()) [inline] |
T& IT_Bus::Var< T >::operator * | ( | ) | const throw (()) [inline] |
T* IT_Bus::Var< T >::get | ( | ) | const throw (()) [inline] |
Get the pointer but do not give up ownership.
Do not reduce the reference count on the object.
Definition at line 102 of file var.h.
Referenced by IT_Bus::const_cast_var(), IT_Bus::dynamic_cast_var(), IT_Bus::Var< T >::operator T *(), and IT_Bus::static_cast_var().
T* IT_Bus::Var< T >::release | ( | ) | throw (()) [inline] |
Var<T>& IT_Bus::Var< T >::operator= | ( | const Var< T > & | ptr | ) | throw (()) [inline] |
Var<T>& IT_Bus::Var< T >::operator= | ( | T * | ptr | ) | throw (()) [inline] |
IT_Bus::Var< T >::operator T * | ( | ) | const [inline] |
Return the encapsulated T pointer.
Definition at line 176 of file var.h.
References IT_Bus::Var< T >::get().