Polaris: Listable.h File Reference

Listable.h File Reference

Go to the source code of this file.

Namespaces

namespace  std

Functions

class class class class class
class class class class class
class class void 
dec_refs_delete_or_zombie (Listable *ptr)
 "Clean up:C++ garbage collection" _Byte_, 21(1):157(2)
void dump_listable_stats ()
 Description: Output information on the maximum number of references to any Listable object for debugging and testing purposes.
ostream & operator<< (ostream &o, const Listable &l)
void _listable_set_wrapper (Listable *obj, Wrapper *l)
void _listable_ref_dec (Listable *obj)

Variables

int max_listable_refs
 Used in conjunction with dump_listable_stats() to keep track of the maximum number of references to a Listable object.


Function Documentation

class class class class class class class class class class class class class void dec_refs_delete_or_zombie Listable ptr  ) 
 

"Clean up:C++ garbage collection" _Byte_, 21(1):157(2)

; p_assert(count>0,"possible cycle in LiveWrapper pointer graph") ; p_warning("possible cycle in LiveWrapper pointer graph")

... only one ref -- it will be deleted

... remove count due to containing LiveWrapper.

... will call DTOR and convert to Zombie if there's any

... outstanding references left.

Definition at line 74 of file Zombie.cc.

References context.

Referenced by LiveWrapper::delete_object(), and LiveWrapper::object().

void dump_listable_stats  ) 
 

Description: Output information on the maximum number of references to any Listable object for debugging and testing purposes.

Note that this procedure is only defined if the macro COUNT_LISTABLE_REFS is defined.

Definition at line 34 of file Listable.cc.

References max_listable_refs.

ostream& operator<< ostream &  o,
const Listable l
[inline]
 

Definition at line 238 of file Listable.h.

References Listable::print().

void _listable_set_wrapper Listable obj,
Wrapper l
[inline]
 

Definition at line 243 of file Listable.h.

References Listable::_wrapper.

void _listable_ref_dec Listable obj  )  [inline]
 

Definition at line 248 of file Listable.h.

References Wrapper::ref_dec().


Variable Documentation

int max_listable_refs
 

Used in conjunction with dump_listable_stats() to keep track of the maximum number of references to a Listable object.

Definition at line 27 of file Listable.cc.

Referenced by dump_listable_stats().

 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:06:23 2005