blender/tests/gtests/blenlib
Bastien Montagne fe9b21a44a Add GHash/GSet pop() feature.
Behavior is similar to python's set.pop(), it removes and returns a 'random' entry from the hash.

Notes:
* Popping will return items in same order as ghash/gset iterators (i.e. increasing
  order in internal buckets-based storage), unless ghash/gset is modified in between.
* We are keeping a track of the latest bucket we popped out (through a 'state' parameter),
  this allows for similar performances to iterators when iteratively popping a whole hash
  (without it, we are roughly O(n!), with it we are roughly O(n)...).

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D1808
2016-02-20 15:28:25 +01:00
..
BLI_array_utils_test.cc GTests: were using C++11 feature 2016-01-19 20:44:57 +11:00
BLI_ghash_performance_test.cc Add GHash/GSet pop() feature. 2016-02-20 15:28:25 +01:00
BLI_ghash_test.cc Add GHash/GSet pop() feature. 2016-02-20 15:28:25 +01:00
BLI_hash_mm2a_test.cc Add Murmur2A hashing feature to BLI 2014-11-14 11:00:26 +01:00
BLI_listbase_test.cc GTest: add test for listbase sorting 2015-06-10 20:26:56 +10:00
BLI_math_base_test.cc BLI_math 'compare' cleanup & enhancements. 2015-07-10 15:02:43 +02:00
BLI_math_color_test.cc Cleanup: test naming 2014-07-19 20:02:14 +10:00
BLI_math_geom_test.cc Cleanup: test naming 2014-07-19 20:02:14 +10:00
BLI_path_util_test.cc Fix gtests on Windows/MSVC 2016-02-06 21:21:55 +05:00
BLI_polyfill2d_test.cc Fix memleaks in our gtests. 2015-12-28 23:19:24 +01:00
BLI_ressource_strings.h Fix gtests on Windows/MSVC 2016-02-06 21:21:55 +05:00
BLI_stack_test.cc Fix memleaks in our gtests. 2015-12-28 23:19:24 +01:00
BLI_string_test.cc Cleanup: all params of BLI_str partition funcs can be const... 2015-06-27 11:00:47 +02:00
CMakeLists.txt Fix gtests on Windows/MSVC 2016-02-06 21:21:55 +05:00