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