| 
 
 | 
 | 
The ref_counter_pool is a singleton class that maintains the counters for all ref_ptr objects. The counters are maintained in a vector. This class is used by ref_ptr and not intended any other purpose.
| int  new_counter () | new_counter | 
Create a new counter.
Returns: index associated with counter.
| int  incr_counter (int index) | incr_counter | 
Increment the count associated with counter by 1.
Parameters:
| index | the counter to increment. | 
| int  decr_counter (int index) | decr_counter | 
Decrement the count associated with counter by 1.
Parameters:
| index | the counter to decrement. | 
| int  count (int index) | count | 
Get the count associated with counter.
Parameters:
| index | of the counter to query. | 
Returns: the counter value.
| void  recycle (int index) | recycle | 
Recycle counter. Places counter on free-list.
Parameters:
| index | of the counter to recycle. | 
| void  dump () | dump | 
Dumps counter info to stdout. Debugging function.
| void  check () | check | 
Sanity check internal data structure. Debugging function.
| ref_counter_pool&  instance () | instance | 
[static]
Returns: singleton ref_counter_pool.
| ref_counter_pool () | ref_counter_pool | 
| Generated by: pavlin on possum.icir.org on Wed Dec 11 16:50:31 2002, using kdoc 2.0a54+XORP. |