Then, In Outer.cxx I want to create object b of Bar such that it can use the member variables of f in the constructor.
Like the constructor for Bar would look something like Bar* b = new Bar(f->a);
Can I do something like this? Can I access the member functions of f when creating b?