/[svn]/libgig/trunk/src/typeinfo.cpp
ViewVC logotype

Diff of /libgig/trunk/src/typeinfo.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3180 by schoenebeck, Wed May 10 21:36:43 2017 UTC revision 3181 by schoenebeck, Sun May 14 17:08:42 2017 UTC
# Line 187  namespace gig { Line 187  namespace gig {
187       * @param typeName - raw C++ type name of enum       * @param typeName - raw C++ type name of enum
188       * @returns enum's amount of elements       * @returns enum's amount of elements
189       */       */
190      size_t countEnum(String typeName) {      size_t enumCount(String typeName) {
191          if (!g_enumsByRawTypeName.count(typeName))          if (!g_enumsByRawTypeName.count(typeName))
192              return 0;              return 0;
193          return g_enumsByRawTypeName[typeName].countKeys();          return g_enumsByRawTypeName[typeName].countKeys();
# Line 203  namespace gig { Line 203  namespace gig {
203       * @param type - enum type of interest       * @param type - enum type of interest
204       * @returns enum's amount of elements       * @returns enum's amount of elements
205       */       */
206      size_t countEnum(const std::type_info& type) {      size_t enumCount(const std::type_info& type) {
207          return countEnum(RAW_CPP_TYPENAME(type));          return enumCount(RAW_CPP_TYPENAME(type));
208      }      }
209    
210      /** @brief Numeric value of enum constant.      /** @brief Numeric value of enum constant.

Legend:
Removed from v.3180  
changed lines
  Added in v.3181

  ViewVC Help
Powered by ViewVC