Blender Git Commit Log

Git Commits -> Revision af7ec7a

Revision af7ec7a by Lukas Toenne (depsgraph_refactor)
June 18, 2014, 15:37 (GMT)
Wrapper for std::bind, which will allow us to catch operation arguments
and replace them by their respective result data types.

This is just a proof of concept, it will be used later to construct a
intermediate callback, which then performs the actual binding at
scheduling time, when all the input data of an operation is actually
available.

It uses a nifty recursion trick based on the tuple index and std::get
to apply a tuple as an argument pack in std::bind. The
bind_operation_tuple function appends tuple elements to the ArgsTail
pack one by one until N==0, at which point a template specialization is
used to issue the final std::bind call.

Commit Details:

Full Hash: af7ec7ac5636043c9c1b62095bfe0c6db77bd4dd
Parent Commit: 6be4abf
Lines Changed: +50, -3

3 Modified Paths:

/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp (+48, -1) (Diff)
/source/blender/depsgraph/intern/depsgraph_type_defines.cpp (+1, -1) (Diff)
/source/blender/depsgraph/intern/stubs.h (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021