Well, I've run into a snag. I have two classes that rely heavily on each other through references in particular functions. In fact, when I forward-declare both of them in each other's files, I get an error telling me that I am incorrectly using incomplete classes, and shouldn't forward-declare. Issue is, if I include both classes in one-another, it doesn't work either. So what do I do? The code, for reference:
I cannot. You see, a connector can only have two vertices as its endpoints, while a vertex can have several connectors attached to it. When a connector is deleted, its reference in each vertex is removed; however, when a vertex is deleted, all connecting connectors too are deleted. Because of this behavior, they cannot be the same object- it would cause way too many complications.