diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-01-23 22:02:15 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-01-23 22:02:15 +0000 |
commit | d4cf48613dd9b1338e174edbf4f47a7736bb2505 (patch) | |
tree | 404daa83485d75325ef76019e557e5203ba522d4 /src/stack.h | |
parent | b94a6a42c1024c00fab7b678cccaecfaa7604d56 (diff) | |
download | libbu++-d4cf48613dd9b1338e174edbf4f47a7736bb2505.tar.gz libbu++-d4cf48613dd9b1338e174edbf4f47a7736bb2505.tar.bz2 libbu++-d4cf48613dd9b1338e174edbf4f47a7736bb2505.tar.xz libbu++-d4cf48613dd9b1338e174edbf4f47a7736bb2505.zip |
Fixed a peculiar formula residue bug...eeew, formula residue. Also added a
clear function to Bu::Stack
Diffstat (limited to 'src/stack.h')
-rw-r--r-- | src/stack.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stack.h b/src/stack.h index 99ce6e8..bbc12f4 100644 --- a/src/stack.h +++ b/src/stack.h | |||
@@ -64,6 +64,12 @@ namespace Bu | |||
64 | return ret; | 64 | return ret; |
65 | } | 65 | } |
66 | 66 | ||
67 | void clear() | ||
68 | { | ||
69 | while( !isEmpty() ) | ||
70 | pop(); | ||
71 | } | ||
72 | |||
67 | bool isEmpty() | 73 | bool isEmpty() |
68 | { | 74 | { |
69 | return pTop == NULL; | 75 | return pTop == NULL; |