Blender Git Commit Log

Git Commits -> Revision 7c324e7

March 2, 2015, 19:54 (GMT)
GHash: Add difference and symmetric_difference (with tests).

Also fix some issues in previous commits.

Notes about our 'symmetric_difference':
* name is taken from py, but our function takes multiple arguments,
and returns keys which are present in one and only one given ghash.
So we may want a better name for that
(real symmetric difference only accepts/works with two args)!
* Its code is a bit more complex than the others, think it's worth it though,
XOR is a really useful operation imho.

Commit Details:

Full Hash: 7c324e76a984f81caae43e1600da007ed4afd892
Parent Commit: 5bced60
Lines Changed: +360, -38

2 Modified Paths:

/source/blender/blenlib/BLI_ghash.h (+10, -1) (Diff)
/source/blender/blenlib/intern/BLI_ghash.c (+350, -37) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021