34 dbNodes::dbNodes(): numNodes(0), curNode(0), maxList(500) {
36 mpids =
new int[maxList];
42 dbNodes::deleteLists() {
55 dbNodes::addNode(
StDbNode* node,
int parentID){
57 mnodes.push_back(node);
58 if(numNodes==maxList) extendParentList();
59 mpids[numNodes]=parentID;
68 dbNodes::getNode(
int index){
71 if(index>-1 && index<numNodes)
return mnodes[index];
80 dbNodes::getParentID(
int index){
82 if(index>-1 && index<numNodes)
return mpids[index];
89 dbNodes::getParent(
int index){
92 if(index>-1 && index<numNodes)
return getNode(mpids[index]);