Is it possible for one function to pass a reference to itself to another class?

Basically I'm trying to implement a tracing class.. for this Ideally the class should have a reference to the function and it's values... how do I do this?

Thanks,

Rob.