blender/tests/gtests
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
..
blenlib Add GHash/GSet pop() feature. 2016-02-20 15:28:25 +01:00
bmesh Fix memleaks in our gtests. 2015-12-28 23:19:24 +01:00
guardedalloc Fix gtests on Windows/MSVC 2016-02-06 21:21:55 +05:00
testing Fix GTests compilations on Windows 2016-02-06 15:12:28 +01:00
CMakeLists.txt Add a bmesh_core_test, a start at testing bmesh functionality. 2014-06-19 11:53:55 -04:00