#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 DEBUG 0 |
| #define REFCOUNT_LOCK |
Referenced by ChangePointer(), ClaimPointer(), HandoffPointer(), and ReleasePointer().
| #define REFCOUNT_UNLOCK |
Referenced by ChangePointer(), ClaimPointer(), HandoffPointer(), and ReleasePointer().
| void ChangePointer | ( | COUNTED *& | pcount1, | |
| COUNTED *& | pcount2 | |||
| ) | [inline] |
References ClaimPointer(), REFCOUNT_LOCK, REFCOUNT_UNLOCK, and ReleasePointer().
Referenced by SourceAccessorConvolutionBaseOf< DATA, 2, PRECISION, SOURCE >::SetFilter(), SourceTransformOf< DATA, 2, PRECISION, SOURCE >::SetSource(), SourceMaskCombineOf< TypeOfData(OPERATOR), DIMENSIONALITY, PRECISION, SOURCEMASK, SOURCECOMBINE >::SetSourceMask(), and SourceMixedOf< OPERATOR::type_data, DIMENSIONALITY, PRECISION, SOURCE1, SOURCE2 >::SetSources().
| COUNTED * ClaimPointer | ( | COUNTED * | pcount | ) | [inline] |
References ASSERT, REFCOUNT_LOCK, and REFCOUNT_UNLOCK.
Referenced by AllocatedCopy(), ChangePointer(), CongealGroupOf< RECIPIE >::CongealGroupOf(), CongealGroupPhasedOf< RECIPIE >::CongealGroupPhasedOf(), CopyInto(), Downsample(), PrintImage(), Rasterize(), RasterizeDownsample(), RasterizeInto(), SuperRes(), WritePGM(), and XCopyInto().
| COUNTED DereferencePointer | ( | COUNTED * | pcounted | ) | [inline] |
References ReleasePointer().
Referenced by LoadAndScaleSources().
| COUNTED * HandoffPointer | ( | COUNTED * | pcount | ) | [inline] |
References ASSERT, REFCOUNT_LOCK, and REFCOUNT_UNLOCK.
Referenced by CoefficientTable(), DownsampleAlong(), GaussianCurve(), IncreaseWarpfieldControlPointResolution(), NewInterpolatedSource(), Rasterize(), RasterizeInto(), ReadBrainWeb(), ReadNifti(), ReadPGM(), and WritePGM().
| int ObjectsOutstanding | ( | ) | [inline] |
References CountedReferece::m_cRefObjects.
Referenced by main().
| void ReleasePointer | ( | Counted * | pcount | ) | [inline] |
References REFCOUNT_LOCK, REFCOUNT_UNLOCK, UD1, and UD4.
Referenced by AllocatedCopy(), ChangePointer(), CopyInto(), DereferencePointer(), Downsample(), PrintImage(), Rasterize(), RasterizeDownsample(), RasterizeInto(), SuperRes(), XCopyInto(), CongealGroupOf< RECIPIE >::~CongealGroupOf(), and CongealGroupPhasedOf< RECIPIE >::~CongealGroupPhasedOf().
1.6.1