Would appreciate very much help on this data structure issue:
I want to create an object of type "event" which will include for example the fields "bike", "station","time". My goal is to keep each object of this class only once in the computer's memory but to be part of two different lists - one of a certain value of "bike" and one of a certain value of "station". Like using pointers in C.
an illustration is provided as attachment.
A huge thanks in advance,