本文整理汇总了C++中QuickString::empty方法的典型用法代码示例。如果您正苦于以下问题:C++ QuickString::empty方法的具体用法?C++ QuickString::empty怎么用?C++ QuickString::empty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QuickString
的用法示例。
在下文中一共展示了QuickString::empty方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: printRecord
void RecordOutputMgr::printRecord(const Record *record, const QuickString & value)
{
_afterVal = value;
printRecord(record);
if (!value.empty()) {
tab();
_outBuf.append(value);
}
newline();
if (needsFlush()) flush();
}
示例2: fastForward
bool ComplementFile::fastForward(const QuickString &newChrom) {
if (!newChrom.empty() && !_genomeFile->hasChrom(newChrom)) return false;
int i= _currPosInGenomeList +1;
while (i < (int)_chromList.size() && _chromList[i] != newChrom) {
_outRecord.setChrName(_chromList[i]);
_currStartPos = 0;
int endPos = _genomeFile->getChromSize(_chromList[i]);
printRecord(endPos);
i++;
}
if (newChrom.empty()) return true;
if (i== (int)_chromList.size()) {
//reached end but didn't find new chrom. Genome and DB are not sorted in same order.
cerr << "***** ERROR: genome file and input file are not sorted in same order. Exiting..." << endl;
exit(1);
//this is where we'd return false if we weren't exiting.
}
_currChrom = newChrom;
_currPosInGenomeList = i;
return true;
}
示例3: printRecord
void RecordOutputMgr::printRecord(const Record *record, const QuickString & value)
{
_afterVal = value;
bool recordPrinted = false;
if (record != NULL) {
printRecord(record);
recordPrinted = true;
}
if (!value.empty()) {
if (recordPrinted) tab();
_outBuf.append(value);
}
newline();
if (needsFlush()) flush();
}