#include <refclass.h>
Collaboration diagram for TRef< T, Arg >:

Public Methods | |
| TRef (const Arg &a) | |
| Constructor that takes in an argument and passes it to T. More... | |
| T * | operator-> () |
| Dereferences our good variable. More... | |
| const T * | operator-> () const |
| Dereferences our good variable constly. More... | |
| const T * | operator * () const |
| Same dereference. More... | |
| T * | operator * () |
| Same Dereference. More... | |
| void | Deallocate () |
| Deallocates this class before calling the destructor. More... | |
Public Attributes | |
| int | refcount |
| The reference count of TRef. Has to be mutable so that the copy constructor works. More... | |
| T * | t |
|
||||||||||
|
Constructor that takes in an argument and passes it to T.
00020 :T(a){refcount=0;}
|
|
|||||||||
|
Deallocates this class before calling the destructor.
00030 {}
|
|
|||||||||
|
Same Dereference.
00028 {return this;}
|
|
|||||||||
|
Same dereference.
00026 {return this;}
|
|
|||||||||
|
Dereferences our good variable constly.
00024 {return this;}
|
|
|||||||||
|
Dereferences our good variable.
00022 {return this;}
|
|
|||||
|
The reference count of TRef. Has to be mutable so that the copy constructor works.
|
|
|||||
|
|
1.2.15