当前位置: 首页>>代码示例>>C++>>正文


C++ TypeList::size方法代码示例

本文整理汇总了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);
 }
开发者ID:corburn,项目名称:ISIS,代码行数:37,代码来源:Kernels.cpp

示例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();
 }
开发者ID:fifield,项目名称:skir,代码行数:11,代码来源:FieldDecl.hpp


注:本文中的TypeList::size方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。