Go to file
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
build_files Buildbot: Remove CMake cache on all platforms 2016-02-17 15:29:13 +01:00
doc BGE: Allow access to original texture openGL Bind code/Id/Number 2016-02-18 12:05:53 +01:00
extern Carve: Silence 32/64 bit shit warning 2016-02-20 14:06:10 +05:00
intern OCIO: Disable the warnings related on C4251 2016-02-20 14:06:11 +05:00
release Userpreferences Panel (for the 3DView) 2016-02-20 14:07:20 +01:00
source Add GHash/GSet pop() feature. 2016-02-20 15:28:25 +01:00
tests Add GHash/GSet pop() feature. 2016-02-20 15:28:25 +01:00
.arcconfig
.gitignore Git ignore BUILD_NOTES.txt from install_deps.sh. 2015-11-23 20:17:02 +01:00
.gitmodules Remove SCons building system 2016-01-04 14:20:48 +05:00
CMakeLists.txt CMake: Ignore paranoid MSVC linker warnings 2016-02-20 14:06:09 +05:00
COPYING
GNUmakefile Minor edits to sync make.bat & makefile 2016-01-04 20:42:00 +11:00
make.bat Fix make.bat checking 64bit systems 2016-02-10 00:26:12 +11:00