这篇教程C++ DICT_VECTOR函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中DICT_VECTOR函数的典型用法代码示例。如果您正苦于以下问题:C++ DICT_VECTOR函数的具体用法?C++ DICT_VECTOR怎么用?C++ DICT_VECTOR使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了DICT_VECTOR函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: dict_iter_match_nextstruct symbol *dict_iter_match_next (const char *name, symbol_compare_ftype *compare, struct dict_iterator *iterator){ return (DICT_VECTOR (DICT_ITERATOR_DICT (iterator))) ->iter_match_next (name, compare, iterator);}
开发者ID:atgreen,项目名称:binutils-gdb,代码行数:7,
示例2: dict_iter_name_firststruct symbol *dict_iter_name_first (const struct dictionary *dict, const char *name, struct dict_iterator *iterator){ return (DICT_VECTOR (dict))->iter_name_first (dict, name, iterator);}
开发者ID:GunioRobot,项目名称:macgdb,代码行数:7,
示例3: dict_iter_match_firststruct symbol *dict_iter_match_first (const struct dictionary *dict, const char *name, symbol_compare_ftype *compare, struct dict_iterator *iterator){ return (DICT_VECTOR (dict))->iter_match_first (dict, name, compare, iterator);}
开发者ID:atgreen,项目名称:binutils-gdb,代码行数:8,
示例4: dict_create_hashed_expandableextern struct dictionary *dict_create_hashed_expandable (void){ struct dictionary *retval; retval = xmalloc (sizeof (struct dictionary)); DICT_VECTOR (retval) = &dict_hashed_expandable_vector; DICT_HASHED_NBUCKETS (retval) = DICT_EXPANDABLE_INITIAL_CAPACITY; DICT_HASHED_BUCKETS (retval) = xcalloc (DICT_EXPANDABLE_INITIAL_CAPACITY, sizeof (struct symbol *)); DICT_HASHED_EXPANDABLE_NSYMS (retval) = 0; return retval;}
开发者ID:atgreen,项目名称:binutils-gdb,代码行数:14,
示例5: dict_create_linear_expandablestruct dictionary *dict_create_linear_expandable (void){ struct dictionary *retval; retval = xmalloc (sizeof (struct dictionary)); DICT_VECTOR (retval) = &dict_linear_expandable_vector; DICT_LINEAR_NSYMS (retval) = 0; DICT_LINEAR_EXPANDABLE_CAPACITY (retval) = DICT_EXPANDABLE_INITIAL_CAPACITY; DICT_LINEAR_SYMS (retval) = xmalloc (DICT_LINEAR_EXPANDABLE_CAPACITY (retval) * sizeof (struct symbol *)); return retval;}
开发者ID:atgreen,项目名称:binutils-gdb,代码行数:16,
示例6: dict_create_linearstruct dictionary *dict_create_linear (struct obstack *obstack, const struct pending *symbol_list){ struct dictionary *retval; int nsyms = 0, i, j; struct symbol **syms; const struct pending *list_counter; retval = obstack_alloc (obstack, sizeof (struct dictionary)); DICT_VECTOR (retval) = &dict_linear_vector; /* Calculate the number of symbols, and allocate space for them. */ for (list_counter = symbol_list; list_counter != NULL; list_counter = list_counter->next) { nsyms += list_counter->nsyms; } DICT_LINEAR_NSYMS (retval) = nsyms; syms = obstack_alloc (obstack, nsyms * sizeof (struct symbol *)); DICT_LINEAR_SYMS (retval) = syms; /* Now fill in the symbols. Start filling in from the back, so as to preserve the original order of the symbols. */ for (list_counter = symbol_list, j = nsyms - 1; list_counter != NULL; list_counter = list_counter->next) { for (i = list_counter->nsyms - 1; i >= 0; --i, --j) { syms[j] = list_counter->symbol[i]; } } return retval;}
开发者ID:atgreen,项目名称:binutils-gdb,代码行数:39,
示例7: dict_create_hashedstruct dictionary *dict_create_hashed (struct obstack *obstack, const struct pending *symbol_list){ struct dictionary *retval; int nsyms = 0, nbuckets, i; struct symbol **buckets; const struct pending *list_counter; retval = obstack_alloc (obstack, sizeof (struct dictionary)); DICT_VECTOR (retval) = &dict_hashed_vector; /* Calculate the number of symbols, and allocate space for them. */ for (list_counter = symbol_list; list_counter != NULL; list_counter = list_counter->next) { nsyms += list_counter->nsyms; } nbuckets = DICT_HASHTABLE_SIZE (nsyms); DICT_HASHED_NBUCKETS (retval) = nbuckets; buckets = obstack_alloc (obstack, nbuckets * sizeof (struct symbol *)); memset (buckets, 0, nbuckets * sizeof (struct symbol *)); DICT_HASHED_BUCKETS (retval) = buckets; /* Now fill the buckets. */ for (list_counter = symbol_list; list_counter != NULL; list_counter = list_counter->next) { for (i = list_counter->nsyms - 1; i >= 0; --i) { insert_symbol_hashed (retval, list_counter->symbol[i]); } } return retval;}
开发者ID:atgreen,项目名称:binutils-gdb,代码行数:38,
示例8: dict_sizeintdict_size (const struct dictionary *dict){ return (DICT_VECTOR (dict))->size (dict);}
开发者ID:atgreen,项目名称:binutils-gdb,代码行数:5,
示例9: dict_iterator_nextstruct symbol *dict_iterator_next (struct dict_iterator *iterator){ return (DICT_VECTOR (DICT_ITERATOR_DICT (iterator))) ->iterator_next (iterator);}
开发者ID:atgreen,项目名称:binutils-gdb,代码行数:6,
示例10: dict_iterator_firststruct symbol *dict_iterator_first (const struct dictionary *dict, struct dict_iterator *iterator){ return (DICT_VECTOR (dict))->iterator_first (dict, iterator);}
开发者ID:atgreen,项目名称:binutils-gdb,代码行数:6,
示例11: dict_add_symbolvoiddict_add_symbol (struct dictionary *dict, struct symbol *sym){ (DICT_VECTOR (dict))->add_symbol (dict, sym);}
开发者ID:atgreen,项目名称:binutils-gdb,代码行数:5,
示例12: dict_freevoiddict_free (struct dictionary *dict){ (DICT_VECTOR (dict))->free (dict);}
开发者ID:atgreen,项目名称:binutils-gdb,代码行数:5,
示例13: dict_iter_name_nextstruct symbol *dict_iter_name_next (const char *name, struct dict_iterator *iterator){ return (DICT_VECTOR (DICT_ITERATOR_DICT (iterator))) ->iter_name_next (name, iterator);}
开发者ID:GunioRobot,项目名称:macgdb,代码行数:6,
注:本文中的DICT_VECTOR函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ DID函数代码示例 C++ DICT_ITERATOR_DICT函数代码示例 |