本文整理汇总了C++中VariableList::at方法的典型用法代码示例。如果您正苦于以下问题:C++ VariableList::at方法的具体用法?C++ VariableList::at怎么用?C++ VariableList::at使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VariableList
的用法示例。
在下文中一共展示了VariableList::at方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: write
void KernelSymbolWriter::write()
{
operationStarted();
// Update the time stamp if the symbols have changed
if (_factory->changeClock() != _specs->createdChangeClock) {
_specs->created = QDateTime::currentDateTime();
_specs->createdChangeClock = _factory->changeClock();
}
// Disable compression by default
qint16 flags = 0; // kSym::flagCompressed;
// First, write the header information to the uncompressed device
KernelSymbolStream out(_to);
// out.setKSymVersion(kSym::VERSION_11);
#ifdef WRITE_ASCII_FILE
QFile debugOutFile("/tmp/insight.log");
debugOutFile.open(QIODevice::WriteOnly);
QTextStream dout(&debugOutFile);
#endif
// Write the file header in the following format:
// 1. (qint32) magic number
// 2. (qint16) file version number
// 3. (qint16) flags (currently unused)
// 4. (qint32) Qt's serialization format version (see QDataStream::Version)
out << (qint32) kSym::fileMagic
<< (qint16) out.kSymVersion()
<< (qint16) flags
<< (qint32) out.version();
#ifdef WRITE_ASCII_FILE
dout << QString::fromAscii((char*)(&kSym::fileMagic), sizeof(kSym::fileMagic))
<< " " << kSym::fileVersion << " 0x" << hex << flags
<< dec << " " << out.version() << endl;
#endif
// Write all information from SymFactory in the following format:
// 1. (MemSpecs) data of _specs
// 2.a (qint32) number of compile units
// 2.b (CompileUnit) data of 1st compile unit
// 2.c (CompileUnit) data of 2nd compile unit
// 2.d ...
// 3.a (qint32) number of types
// 3.b (qint32) type (RealType casted to qint32)
// 3.c (subclass of BaseType) data of type
// 3.d (qint32) type (RealType casted to qint32)
// 3.e (subclass of BaseType) data of type
// 3.f ...
// 4.a (qint32) number of id-mappings for types
// 4.b (qint32) 1st source id
// 4.c (qint32) 1st target id
// 4.d (qint32) 2nd source id
// 4.e (qint32) 2nd target id
// 4.f ...
// 5.a (qint32) number of variables
// 5.b (Variable) data of variable
// 5.c (Variable) data of variable
// 5.d ...
// 6.a (qint32) number of ref. types with alternative types
// 6.b (qint32) 1st id of ref. type with alternatives
// 6.c (qint32) number of type alternatives
// 6.d (AltRefType) 1st alternative
// 6.e (AltRefType) 2nd alternative
// 6.f (AltRefType) ...
// 6.g (qint32) 2st id of ref. type with alternatives
// 6.h (qint32) number of type alternatives
// 6.i (AltRefType) 1st alternative
// 6.j (AltRefType) 2nd alternative
// 6.k (AltRefType) ...
// 6.l ...
// 7.a (qint32) number of struct members with alternative types
// 7.b (qint32) 1st id of struct member with alternatives
// 7.c (qint32) id of belonging struct
// 7.d (qint32) number of type alternatives
// 7.e (AltRefType) 1st alternative
// 7.f (AltRefType) 2nd alternative
// 7.g (AltRefType) ...
// 7.h (qint32) 2st id of struct member with alternatives
// 7.i (qint32) id of belonging struct
// 7.j (qint32) number of type alternatives
// 7.k (AltRefType) 1st alternative
// 7.l (AltRefType) 2nd alternative
// 7.m (AltRefType) ...
// 7.l ...
// 8.a (qint32) number of variable with alternative types
// 8.b (qint32) 1st id of variable with alternatives
// 8.c (qint32) number of type alternatives
// 8.d (AltRefType) 1st alternative
// 8.e (AltRefType) 2nd alternative
// 8.f (AltRefType) ...
// 8.g (qint32) 2st id of variable with alternatives
// 8.h (qint32) number of type alternatives
// 8.i (AltRefType) 1st alternative
// 8.j (AltRefType) 2nd alternative
// 8.k (AltRefType) ...
// 8.l ...
//.........这里部分代码省略.........