#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) IT_THROW_DECL(()) | |
Constructor. | |
Var (const Var< T > &ptr) IT_THROW_DECL(()) | |
Constructor. | |
Var () IT_THROW_DECL(()) | |
No argument constructor. | |
~Var () IT_THROW_DECL(()) | |
Destructor. | |
T * | operator-> () const IT_THROW_DECL(()) |
Arrow operator. | |
T & | operator * () const IT_THROW_DECL(()) |
Dereferencing operator. | |
T * | get () const IT_THROW_DECL(()) |
Get the pointer but do not give up ownership. | |
T * | release () IT_THROW_DECL(()) |
Release the reference, giving up responsibility for calling _remove_ref to the caller. | |
Var< T > & | operator= (const Var< T > &ptr) IT_THROW_DECL(()) |
Assignment operator. | |
Var< T > & | operator= (T *ptr) IT_THROW_DECL(()) |
Assignment operator. | |
operator T * () const | |
Return the encapsulated T pointer. | |
Private Attributes | |
T * | m_ptr |
IT_Bus::Var< T >::Var | ( | T * | ptr | ) | [inline] |
IT_Bus::Var< T >::Var | ( | const Var< T > & | ptr | ) | [inline] |
IT_Bus::Var< T >::~Var | ( | ) | [inline] |
T* IT_Bus::Var< T >::get | ( | ) | const [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 >::operator * | ( | ) | const [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().
T* IT_Bus::Var< T >::operator-> | ( | ) | const [inline] |
Var<T>& IT_Bus::Var< T >::operator= | ( | T * | ptr | ) | [inline] |
Var<T>& IT_Bus::Var< T >::operator= | ( | const Var< T > & | ptr | ) | [inline] |
T* IT_Bus::Var< T >::release | ( | ) | [inline] |