Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

Reference Count
[MemoryManagement]

Collaboration diagram for Reference Count:


Detailed Description

Routines dealing with the reference counting of allocated buffers.


Functions

psReferenceCount psMemGetRefCounter (const psPtr ptr)
 Return reference counter.
psPtr psMemIncrRefCounter (const psPtr ptr)
 Increment reference counter and return the pointer.
psPtr psMemDecrRefCounter (psPtr ptr)
 Decrement reference counter and return the pointer.
psPtr psMemSetRefCounter (psPtr ptr, psReferenceCount count)
 Set reference counter and return the pointer.


Function Documentation

psPtr psMemDecrRefCounter psPtr  ptr  ) 
 

Decrement reference counter and return the pointer.

Returns:
psPtr the pointer deremented in refCount, or NULL if pointer is fully dereferenced.
Parameters:
ptr  Pointer to decrement refCounter, and return

psReferenceCount psMemGetRefCounter const psPtr  ptr  ) 
 

Return reference counter.

Returns:
psReferenceCount
Parameters:
ptr  Pointer to get refCounter for

psPtr psMemIncrRefCounter const psPtr  ptr  ) 
 

Increment reference counter and return the pointer.

Returns:
psPtr
Parameters:
ptr  Pointer to increment refCounter, and return

psPtr psMemSetRefCounter psPtr  ptr,
psReferenceCount  count
 

Set reference counter and return the pointer.

Returns:
psPtr the pointer with refCount set, or NULL if pointer is fully dereferenced.
Parameters:
ptr  Pointer to decrement refCounter, and return
count  New reference count


Generated on Mon Jul 3 14:15:14 2006 for Pan-STARRS Foundation Library by  doxygen 1.4.4