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.


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


Generated on Wed Sep 14 10:43:48 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.2