Debian Codegraph @

src/bin/geomutil/vrml2oogl/lib/QvLists.c++

raw
1 #include <QvLists.h>
2 #include <QvNode.h>
3
4 QvNodeList::QvNodeList() : QvPList()
5 {
6 }
7
8 void
9 QvNodeList::append(QvNode *node)
10 {
11 QvPList::append(node);
12
13 node->ref();
14 }
15
16 void
17 QvNodeList::remove(int which)
18 {
19 if ((*this)[which] != NULL)
20 (*this)[which]->unref();
21
22 QvPList::remove(which);
23 }
24
25 void
26 QvNodeList::truncate(int start)
27 {
28 for (int i = start; i < getLength(); i++)
29 if ((*this)[i] != NULL)
30 (*this)[i]->unref();
31
32 QvPList::truncate(start);
33 }