| 68 | return curr->data; |
| 69 | } |
| 70 | unsigned int GetSize() |
| 71 | { |
| 72 | unsigned int wholeSize = 0; |
| 73 | StackChunk *temp = first; |
| 74 | while(temp != curr) |
| 75 | { |
| 76 | wholeSize += chunkSize; |
| 77 | temp = temp->next; |
| 78 | } |
| 79 | return wholeSize + size; |
| 80 | } |
| 81 | private: |
| 82 | struct StackChunk |
| 83 | { |
no outgoing calls
no test coverage detected