Visualisierung2
myStub.cpp
Go to the documentation of this file.
1 #include "myStub.h"
2 
3 
5 {
6  valid = false;
7  size = 0;
8  members = nullptr;
9  last = nullptr;
10 }
11 
12 
14 {
15  myList *current;
16  if (members != nullptr) {
17  current = members;
18  while (current != nullptr) { members = current->next; delete current; current = members; }
19  }
20 }
~myStub(void)
Definition: myStub.cpp:13
myList * members
Liste von Pointern zu den Elementen im Cluster.
Definition: myStub.h:11
myStub(void)
Definition: myStub.cpp:4
Definition: myList.h:4
myList * last
Pointer zum Ende der Liste.
Definition: myStub.h:12
int size
Clustergroesse.
Definition: myStub.h:10
myList * next
Pointer zum naechsten Listenelement.
Definition: myList.h:8
bool valid
Ist das Cluster ein regulaeres Cluster.
Definition: myStub.h:9