I\'ve written a callback function for another library, but I need to access member functions from within the callback to decide what to do. This function accesses a public g