Let's say I have a class, let it be foo. It contains object someclass obj[10][10].
Now I want to refer to bar, which is an object of type foo, in such a way that bar[7] is equivalent to bar.obj[7] and returns an object of type someclass*. It's rather simple.
But I also want to refer to bar in such a way that bar[7][3] is equivalent to bar.obj[7][3] and returns an object of type someclass. It's not that simple right now...
How to do it?