本文整理汇总了C++中DcmStack::pop方法的典型用法代码示例。如果您正苦于以下问题:C++ DcmStack::pop方法的具体用法?C++ DcmStack::pop怎么用?C++ DcmStack::pop使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DcmStack
的用法示例。
在下文中一共展示了DcmStack::pop方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: cbPutLine
void cbPutLine(DcmStack& stk) {
DcmString *dcmStr = static_cast<DcmString*>(
safePeekMain(stk, {DcmString::typeVal()}));
stk.pop();
dcmout << *dcmStr << endl;
del(dcmStr);
}
示例2: cbDef
void cbDef(DcmStack& stk) {
DcmExec *exec = static_cast<DcmExec*>(safePeekMain(stk,
{DcmExec::typeVal()}));
stk.pop();
stk.push(new DcmPrimFun(new ExecCallback(exec)));
// We took it off the stack
del(exec);
}
示例3: cbPStk
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;
}
示例4: cbCopy
void cbCopy(DcmStack& stk) {
DcmType *dcm = safePeekMain(stk);
stk.pop();
stk.push(dcm->copy());
del(dcm);
}
示例5: cbClear
void cbClear(DcmStack& stk) {
while (!stk.empty()) {
del(stk.top());
stk.pop();
}
}
示例6: cbDel
void cbDel(DcmStack& stk) {
del(safePeekMain(stk));
stk.pop();
}
示例7: cbRepr
void cbRepr(DcmStack& stk) {
DcmType *dcm = safePeekMain(stk);
stk.pop();
stk.push(new DcmString(dcm->repr()));
del(dcm);
}
示例8: cbPrint
void cbPrint(DcmStack& stk) {
DcmType *dcm = safePeekMain(stk);
stk.pop();
dcmout << dcm->repr() << endl;
del(dcm);
}