Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
include
ReferenceCountingList.h
Go to the documentation of this file.
1
#ifndef REFERENCE_COUNTING_LIST_H
2
#define REFERENCE_COUNTING_LIST_H
3
4
class
ReferenceCounting
;
5
6
class
ReferenceCountingItem
// structure to store the pointers to the ReferenceCounting items in the LinkedList
7
{
8
public
:
9
ReferenceCounting
*
val
;
10
ReferenceCountingItem
*
next
;
11
int
id
;
12
13
ReferenceCountingItem
(){};
14
ReferenceCountingItem
(
ReferenceCounting
* value,
const
int
& identifier=-1 ){
val
=value;
id
=identifier;
next
=
NULL
; }
15
~ReferenceCountingItem
(){}
16
};
17
18
// Linked List of ReferenceCounting items.
19
20
class
ReferenceCountingList
21
{
22
public
:
23
ReferenceCountingItem
*
start
;
24
ReferenceCountingItem
*
end
;
25
ReferenceCountingList
();
26
~ReferenceCountingList
();
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
Generated on Fri Jan 4 2013 10:17:58 for Overture by
1.8.3