TopTools_ListOfShape and TopoDS_ListOfShape


What's different between TopTools_ListOfShape and TopoDS_ListOfShape?
TopTools_DataMapOfIntegerListOfShape takes TopTools_ListOfShape as second key. Why isn't it TopoDS_ListOfShape?

Thanks in advance for any help.


Roman Lygin's picture

Hi Ziyoo,
There's effectively no difference. Both are instantiations of TCollection_List with TopoDS_Shape. However since these are not true template instantiations (but are code generations from CDL language with different #define's), one cannot replace the other.
OCC sometimes abuses such duplications but in 6.3.1 the team had made an effort to eliminate much of these.
Hope this helps,
--- - the Open CASCADE blog - CAD Exchanger, your 3D data translator