#include <PyConnectionDecisionPredicate.h>
Public Member Functions | |
virtual void | init (SimObjectPopulation const &source, SimObjectPopulation const &destination, RandomEngine *rnd) |
Implementation to be overriden in python. | |
virtual bool | decide (size_t src, size_t dst, RandomEngine *rnd) |
Implementation to be overriden in python. |
The reason why this class exists is a performance issue: If one would set up the python interface such that one could directly base python classes directly on ConnectionDecisionPredicate C++ classes based on ConnectionDecisionPredicate instatiated in python will have a lot of overhead when ConnectionDecisionPredicate::decide is called. Since this method is called in the inner loop of (virtual any) wiring algorithm this is not feasable.
Definition at line 23 of file PyConnectionDecisionPredicate.h.
virtual void PyConnectionDecisionPredicate::init | ( | SimObjectPopulation const & | source, | |
SimObjectPopulation const & | destination, | |||
RandomEngine * | rnd | |||
) | [inline, virtual] |
Implementation to be overriden in python.
Typically references to source and destination will be stored.
Implements ConnectionDecisionPredicate.
Definition at line 32 of file PyConnectionDecisionPredicate.h.
virtual bool PyConnectionDecisionPredicate::decide | ( | size_t | src, | |
size_t | dst, | |||
RandomEngine * | rnd | |||
) | [inline, virtual] |
Implementation to be overriden in python.
src | The index into the source population | |
dst | The index into the destination population | |
rnd | A reference to the RandomNumberEngine to use for stochastic decisions. |
Implements ConnectionDecisionPredicate.
Definition at line 43 of file PyConnectionDecisionPredicate.h.