#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. | |
|
||||||||||
|
Constructor.
|
|
||||||||||
|
Constructor.
|
|
|||||||||
|
No argument constructor.
|
|
|||||||||
|
Destructor. Decrements the reference count on the object. |
|
|||||||||
|
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(), and IT_Bus::static_cast_var(). |
|
|||||||||
|
Dereferencing operator.
|
|
|||||||||
|
Return the encapsulated T pointer.
|
|
|||||||||
|
Arrow operator.
|
|
||||||||||
|
Assignment operator.
|
|
||||||||||
|
Assignment operator.
|
|
|||||||||
|
Release the reference, giving up responsibility for calling _remove_ref to the caller. Set internal pointer to 0 since it no longer points to a valid reference; do not reduce the reference count on the object.
|
1.3.9.1