Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ixion::ref Class Template Reference

#include <ixlib_garbage.hh>

Inheritance diagram for ixion::ref::

ixion::ref_base List of all members.

Public Methods

 ref (ref const &src)
template<class T2>  ref (ref< T2, T_Managed > const &src)
template<class T2>  ref (no_free_ref< T2, T_Managed > const &src)
 ref (T *instance=NULL)
 ~ref ()
ref& operator= (ref const &src)
ref& operator= (T *ptr)
void release ()
void set (T *instance)
T* releaseFromGCArena ()

Detailed Description

template<class T, class T_Managed> class ixion::ref

An object that acts like a reference-counted pointer to an object. The corresponding reference_manager is identified implicitly through static references.

Example: IXLIB_GARBAGE_DECLARE_MANAGER(int)

int main() { ref<int> my_int = new int(5); my_int = 17; ref<int> another_int = my_int; another_int = 12;

my_int == 12; // true }

Definition at line 123 of file ixlib_garbage.hh.


Constructor & Destructor Documentation

template<class T, class T_Managed>
ixion::ref<T, T_Managed>::ref<T, T_Managed> ( ref<T, T_Managed> const & src ) [inline]
 

Definition at line 127 of file ixlib_garbage.hh.

template<class T, class T_Managed>
template<class T2>
ixion::ref<T, T_Managed>::ref<T, T_Managed> ( ref< T2, T_Managed > const & src ) [inline]
 

Definition at line 132 of file ixlib_garbage.hh.

template<class T, class T_Managed>
template<class T2>
ixion::ref<T, T_Managed>::ref<T, T_Managed> ( no_free_ref< T2, T_Managed > const & src ) [inline]
 

Definition at line 137 of file ixlib_garbage.hh.

template<class T, class T_Managed>
ixion::ref<T, T_Managed>::ref<T, T_Managed> ( T * instance = NULL ) [inline]
 

Definition at line 141 of file ixlib_garbage.hh.

template<class T, class T_Managed>
ixion::ref<T, T_Managed>::~ref<T, T_Managed> ( ) [inline]
 

Definition at line 145 of file ixlib_garbage.hh.


Member Function Documentation

template<class T, class T_Managed>
ref<T, T_Managed> & ixion::ref<T, T_Managed>::operator= ( T * ptr ) [inline]
 

Definition at line 153 of file ixlib_garbage.hh.

template<class T, class T_Managed>
ref<T, T_Managed> & ixion::ref<T, T_Managed>::operator= ( ref<T, T_Managed> const & src ) [inline]
 

Definition at line 149 of file ixlib_garbage.hh.

template<class T, class T_Managed>
void ixion::ref<T, T_Managed>::release ( ) [inline]
 

Definition at line 159 of file ixlib_garbage.hh.

template<class T, class T_Managed>
T * ixion::ref<T, T_Managed>::releaseFromGCArena ( ) [inline]
 

Definition at line 170 of file ixlib_garbage.hh.

template<class T, class T_Managed>
void ixion::ref<T, T_Managed>::set ( T * instance ) [inline]
 

Definition at line 163 of file ixlib_garbage.hh.

Referenced by operator=().


The documentation for this class was generated from the following file:
Generated at Fri Jul 6 21:05:15 2001 for ixlib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001