IRefCounted.h File Reference


Detailed Description

The header file for Reference counted defines.

Author:
Eduardo Veas
Id
IRefCounted.h 1691 2007-01-04 15:15:44Z veas

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ot

Defines

#define OT_DECLARE_IREFCOUNTED
#define IMPLEMENT_IREFCOUNTED(CLASS)


Define Documentation

#define IMPLEMENT_IREFCOUNTED CLASS   ) 
 

Value:

int CLASS ::_ref(){\
  return ++ _rcount;\
  };\
  \
  int CLASS ::_deref(){\
     if (--_rcount == 0){\
        delete this;\
     } \
     return _rcount;\
   };\
  \
  int CLASS ::getRefCount(){\
     return _rcount;\
  }

#define OT_DECLARE_IREFCOUNTED
 

Value:

protected:\
     int _rcount;\
  public:\
  virtual int _ref();\
  virtual int _deref();\
  virtual int getRefCount()


Generated on Wed Feb 28 15:19:42 2007 for NaviTrack by  doxygen 1.4.6