Update of /cvsroot/javaprofiler/library/src/list
In directory usw-pr-cvs1:/tmp/cvs-serv21227/src/list
Modified Files:
list.h listItem.h
Log Message:
serious bug fixes - monitors, deactivating...
interface version checking added
new test program for testing of memory profiling added
Index: list.h
===================================================================
RCS file: /cvsroot/javaprofiler/library/src/list/list.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** list.h 21 Nov 2001 22:31:43 -0000 1.9
--- list.h 15 Apr 2002 21:04:18 -0000 1.10
***************
*** 156,159 ****
--- 156,160 ----
if( !p) return NULL;
+ if( !p->L::inList()) return p;
ListItem* q = p->L::remove();
Index: listItem.h
===================================================================
RCS file: /cvsroot/javaprofiler/library/src/list/listItem.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** listItem.h 21 Nov 2001 22:31:43 -0000 1.9
--- listItem.h 15 Apr 2002 21:04:18 -0000 1.10
***************
*** 103,106 ****
--- 103,113 ----
ListItem* remove();
+
+ /** Informs whether item is in any list or not.
+ **
+ ** @return 1 (yes, it is);
+ ** 0 (no, it is not) */
+
+ int inList() const { return !!_list;}
};
|