Overture  Version 25
ReferenceCountingList.h
Go to the documentation of this file.
1 #ifndef REFERENCE_COUNTING_LIST_H
2 #define REFERENCE_COUNTING_LIST_H
3 
5 
6 class ReferenceCountingItem // structure to store the pointers to the ReferenceCounting items in the LinkedList
7 {
8  public:
11  int id;
12 
14  ReferenceCountingItem( ReferenceCounting* value, const int & identifier=-1 ){ val=value; id=identifier; next=NULL; }
16 };
17 
18 // Linked List of ReferenceCounting items.
19 
21 {
22  public:
27  void add( ReferenceCounting *val, const int & identifier=-1 );
28  int remove( ReferenceCounting *val );
29  ReferenceCounting *find( int identifier ) const;
30 
31 };
32 
33 #endif