TRInterface has support to assign TF1 functions using functor's pointers