MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / pop

Method pop

src/common/classes/stack.h:149–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 }
148
149 Object pop()
150 {
151 fb_assert(stk);
152 Object tmp = stk->pop();
153 if (!stk->getCount())
154 {
155 fb_assert(!stk_cache);
156 stk_cache = stk;
157 stk = stk->next;
158 stk_cache->next = 0;
159
160 // don't delete last empty Entry
161 if (stk)
162 {
163 delete stk_cache;
164 stk_cache = 0;
165 }
166 }
167 return tmp;
168 }
169
170 private:
171 // disable use of default operator=

Callers 4

~AutoPushPopMethod · 0.45
~AutoRestoreMethod · 0.45
reverse_iteratorClass · 0.45
removeMethod · 0.45

Calls 1

getCountMethod · 0.45

Tested by

no test coverage detected