a3d2f94f4f935454067f3c7243371ddb2cc8a36f
[libcds.git] / tests / test-hdr / queue / hdr_intrusive_singlelink_node.h
1 //$$CDS-header$$
2
3 #ifndef CDSTEST_HDR_TEST_INTRUSIVE_SINGLELINK_NODE_H
4 #define CDSTEST_HDR_TEST_INTRUSIVE_SINGLELINK_NODE_H
5
6 #include <cds/intrusive/details/single_link_struct.h>
7
8 namespace queue {
9     namespace ci = cds::intrusive;
10     namespace co = cds::opt;
11
12     template <typename GC>
13     struct base_hook_item: public ci::single_link::node< GC >
14     {
15         int nVal;
16         int nDisposeCount;
17
18         base_hook_item()
19             : nDisposeCount(0)
20         {}
21     };
22
23     template <typename GC>
24     struct member_hook_item
25     {
26         int nVal;
27         int nDisposeCount;
28         ci::single_link::node< GC > hMember;
29
30         member_hook_item()
31             : nDisposeCount(0)
32         {}
33     };
34
35 } // queue
36
37 #endif // #ifndef CDSTEST_HDR_TEST_INTRUSIVE_SINGLELINK_NODE_H