示例#1
0
文件: io.cpp 项目: xorgy/dcm
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;
}
示例#2
0
文件: prelude.cpp 项目: xorgy/dcm
void cbBottom(DcmStack& stk) {
    stk.push(new DcmBool(stk.empty()));
}
示例#3
0
文件: prelude.cpp 项目: xorgy/dcm
void cbClear(DcmStack& stk) {
    while (!stk.empty()) {
        del(stk.top());
        stk.pop();
    }
}