Hi, I've never seen such nesting of types, but my professor sprung it on us for our final project this semester.
He was kind enough to make the code to load the information from our test files into this structure, but I don't understand how to get the information out of it (whether through iteration or in order to access certain parts to load the info into other objects to begin using and manipulating it).
So far, what I've come up with for iteration is this:
But it obviously doesn't work as I'm not taking to account any of the list or pair functionality (I also understand my adj_list is empty, but I just want to get this to compile my professor's code in my real project will help me load it once I understand how to output).
for (list_of_list_of_points_t::iterator list_of_points_iter = adj_list.begin(); ...)
// *list_of_points_iter is a list_of_points_t.
// You might want to use another loop to print the list of points:
for (list_of_points_t::iterator point_iter = list_of_points_iter->begin(); ...)
// *point_iter is a point_t
// Use the .first and .second items to get at it
cout << "(" << point_iter->first
<< "," << point_iter->second << ") ";
cout << "\n";