TransFlow
0.1.0
A transient pipeline flow simulation library
|
Variables | |
const typedef arma::vec &(Pipeline::* | PropertyGetter )() const |
const typedef arma::vec&(Pipeline::* PropertyGetter) () const |
Typedef for pointer to const member function (getter) in Pipeline.
Makes it trivial to declare a member-function pointer
PropertyGetter p = &Pipeline::flow;
and declaring functions that receive member-function pointers
void function(PropertyGetter p) { ... }
and declaring functions that return member-function pointers
PropertyGetter function() { ... }
From here: https://isocpp.org/wiki/faq/pointers-to-members#typedef-for-ptr-to-memfn