void cbPStk(DcmStack& stk) { stack<DcmType*> items; while (!stk.empty()) { items.push(stk.top()); stk.pop(); } while (!items.empty()) { dcmout << items.top()->repr() << ' '; stk.push(items.top()); items.pop(); } dcmout << endl; }
void cbBottom(DcmStack& stk) { stk.push(new DcmBool(stk.empty())); }
void cbClear(DcmStack& stk) { while (!stk.empty()) { del(stk.top()); stk.pop(); } }