本文整理汇总了C++中CIArrayOf::append方法的典型用法代码示例。如果您正苦于以下问题:C++ CIArrayOf::append方法的具体用法?C++ CIArrayOf::append怎么用?C++ CIArrayOf::append使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIArrayOf
的用法示例。
在下文中一共展示了CIArrayOf::append方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: gatherPoolPending
void StackElement::gatherPoolPending(CIArrayOf<StackElement> & pending)
{
if (prev && !prev->IsShared())
pending.append(*prev.getClear());
if (sibling && !sibling->IsShared())
pending.append(*sibling.getClear());
}
示例2: add
void add(RemoteFilename &filename,unsigned partno,unsigned copy,unsigned crc)
{
CFileCrcItem *item = new CFileCrcItem();
item->filename.set(filename);
item->partno = partno;
item->copy = copy;
item->crc = crc;
item->requiredcrc = crc;
list.append(*item);
}
示例3: doUnwindRelease
//---------------------------------------------------------------------------
void doUnwindRelease(GrammarSymbol * symbol, CIArrayOf<GrammarSymbol> & pending)
{
if (!symbol->isPacked())
{
unsigned level = pending.ordinality();
unsigned num = symbol->numChildren();
for (unsigned i = 0; i < num; i++)
pending.append(*LINK(symbol->queryChild(i)));
if (!symbol->Release())
pending.trunc(level);
}
else
symbol->Release();
}
示例4: loadMachineMap
static void loadMachineMap()
{
if (machinelist.ordinality())
return;
Owned<IRemoteConnection> conn = querySDS().connect("/Environment/Hardware", myProcessSession(), RTM_LOCK_READ, SDS_LOCK_TIMEOUT);
if (!conn)
return;
IPropertyTree* root = conn->queryRoot();
Owned<IPropertyTreeIterator> machines= root->getElements("Computer");
if (machines->first()) {
do {
IPropertyTree &machine = machines->query();
SocketEndpoint ep(machine.queryProp("@netAddress"));
ep.port = getDaliServixPort();
const char *name = machine.queryProp("@name");
const char *state=machine.queryProp("@state");
CMachineEntry *entry = new CMachineEntry(name,ep,!state||stricmp(state,"Available")==0);
machinemap.setValue(name, entry);
machinelist.append(*entry);
} while (machines->next());
}
}
示例5: addAbortHandler
void addAbortHandler(IAbortHandler & handler)
{
CriticalBlock c(abortCrit);
queryInstallAbortHandler();
handlers.append(*new AbortHandlerInfo(&handler));
}