libRefCount.h File Reference

#include "libUtility.h"
#include "libDebug.h"

Go to the source code of this file.

Classes

class  Counted
class  CountedReferece

Defines

#define DEBUG   0
#define REFCOUNT_LOCK
#define REFCOUNT_UNLOCK

Functions

template<class COUNTED >
void ChangePointer (COUNTED *&pcount1, COUNTED *&pcount2) __attribute__((always_inline))
template<class COUNTED >
COUNTED * ClaimPointer (COUNTED *pcount) __attribute__((always_inline))
template<class COUNTED >
COUNTED DereferencePointer (COUNTED *pcounted)
template<class COUNTED >
COUNTED * HandoffPointer (COUNTED *pcount) __attribute__((always_inline))
int ObjectsOutstanding ()
void ReleasePointer (Counted *pcount) __attribute__((always_inline))

Define Documentation

#define DEBUG   0
#define REFCOUNT_LOCK
#define REFCOUNT_UNLOCK

Function Documentation

template<class COUNTED >
void ChangePointer ( COUNTED *&  pcount1,
COUNTED *&  pcount2 
) [inline]
template<class COUNTED >
COUNTED * ClaimPointer ( COUNTED *  pcount  )  [inline]
template<class COUNTED >
COUNTED DereferencePointer ( COUNTED *  pcounted  )  [inline]

References ReleasePointer().

Referenced by LoadAndScaleSources().

template<class COUNTED >
COUNTED * HandoffPointer ( COUNTED *  pcount  )  [inline]
int ObjectsOutstanding (  )  [inline]

References CountedReferece::m_cRefObjects.

Referenced by main().

void ReleasePointer ( Counted pcount  )  [inline]

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1