C++ - Two-way Communication between objects if A (obj) creates an instance of B (obj)
I have two classes, for argument's sake A and B.
A implements the core functionality, B is an encapsulated data structure. If you imagine this situation Code:
class A This is not an inheritance issue, they are two discrete classes with radically different functionality. Class A makes an object of B. If someone could please offer advice about the "best practise" way to set up this communication, I would greatly appreciate it! I would prefer advice in the form of topics or links to reading material, rather than code samples! Thank you! |
I may be barking up the wrong tree, but still, did you look up the "Friend" functionality?
|
Quote:
Send a pointer of "this" from A to B? |
Did you look up the C++ "Callbacks"?
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 05:11 PM. |