-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathattrDescriptorList.cc
More file actions
42 lines (33 loc) · 944 Bytes
/
attrDescriptorList.cc
File metadata and controls
42 lines (33 loc) · 944 Bytes
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
#include "clstepcore/attrDescriptorList.h"
#include "clstepcore/attrDescriptor.h"
AttrDescriptorList::AttrDescriptorList() {
}
AttrDescriptorList::~AttrDescriptorList() {
}
AttrDescLinkNode * AttrDescriptorList::AddNode( AttrDescriptor * ad ) {
AttrDescLinkNode * node = ( AttrDescLinkNode * ) NewNode();
node->AttrDesc( ad );
SingleLinkList::AppendNode( node );
return node;
}
AttrDescLinkNode::AttrDescLinkNode() {
_attrDesc = 0;
}
AttrDescLinkNode::~AttrDescLinkNode() {
if( _attrDesc ) {
delete _attrDesc;
}
}
AttrDescItr::AttrDescItr( const AttrDescriptorList & adList ) : adl( adList ) {
cur = ( AttrDescLinkNode * )( adl.GetHead() );
}
AttrDescItr::~AttrDescItr() {
}
const AttrDescriptor * AttrDescItr::NextAttrDesc() {
if( cur ) {
const AttrDescriptor * ad = cur->AttrDesc();
cur = ( AttrDescLinkNode * )( cur->NextNode() );
return ad;
}
return 0;
}