本文整理汇总了C++中TypeList::size方法的典型用法代码示例。如果您正苦于以下问题:C++ TypeList::size方法的具体用法?C++ TypeList::size怎么用?C++ TypeList::size使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TypeList
的用法示例。
在下文中一共展示了TypeList::size方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getKernelTypes
/**
* @brief Return list of types in kernel list
*
* This method determines what types of kernels are currently in the internal
* list and returns them in alphabetical order. An empty list is returned if
* there are no kernels. The list may contain "UNKNOWN" which is the default
* type assigned when the type of the kernel file cannot be determined. These
* kernels are excluded from any loading/unloading.
*
* The list of known types are:
*
* CK
* SPK
* DAF (synonymous for SPKs as well so load both)
* PCK
* EK
* META
* IK
* FK
* SCLK
* IAK (ISIS specific)
*
* Kernel types are determined by inspecting the first 8 characters of a
* kernel file and extracting the contents there. The actual type is the
* string value after the last '/' character. This is typically the value
* that is also returned by the NAIF kinfo_c utility.
*
* @return std::vector<QString> Alphabetical list of kernel types
*/
QStringList Kernels::getKernelTypes() const {
TypeList kmap = categorizeByType();
QStringList types;
for (int i = 0 ; i < kmap.size() ; i++) {
types.append(kmap.key(i));
}
return (types);
}
示例2: getNumFields
/**
* Get the number of fields declared by this. This value should
* always be at least 1.
*
* @return Number of fields declared
*/
int getNumFields()
{
// CLAIM: the three lists have the same length.
return types->size();
}