forked from stepcode/stepcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinverseAttributeList.h
More file actions
56 lines (46 loc) · 1.46 KB
/
inverseAttributeList.h
File metadata and controls
56 lines (46 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef INVERSEATTRIBUTELIST_H
#define INVERSEATTRIBUTELIST_H
///header for list, node, and iterator
#include "SingleLinkList.h"
class Inverse_attribute;
class SC_CORE_EXPORT Inverse_attributeLinkNode : public SingleLinkNode {
private:
protected:
Inverse_attribute * _invAttr;
public:
Inverse_attributeLinkNode();
virtual ~Inverse_attributeLinkNode();
Inverse_attribute * Inverse_attr() const {
return _invAttr;
}
void Inverse_attr( Inverse_attribute * ia ) {
_invAttr = ia;
}
};
class SC_CORE_EXPORT Inverse_attributeList : public SingleLinkList {
private:
protected:
virtual SingleLinkNode * NewNode() {
return new Inverse_attributeLinkNode;
}
public:
Inverse_attributeList();
virtual ~Inverse_attributeList();
Inverse_attributeLinkNode * AddNode( Inverse_attribute * ia );
};
class SC_CORE_EXPORT InverseAItr {
protected:
const Inverse_attributeList * ial;
const Inverse_attributeLinkNode * cur;
public:
InverseAItr( const Inverse_attributeList * iaList );
virtual ~InverseAItr();
void ResetItr( const Inverse_attributeList * iaList = 0 ) {
if( iaList ) {
ial = iaList;
}
cur = ( Inverse_attributeLinkNode * )( ial->GetHead() );
}
Inverse_attribute * NextInverse_attribute();
};
#endif //INVERSEATTRIBUTELIST_H