
Wed, 01/21/2015 - 00:12
Forums:
Hello, everybody
I would like to ask a question about the OCC collections.
OCC6.8.0 drops off the class "NCollection_Set". I would like to know if there is a similar class to allow me to use in OCC6.8.0.
For example, in OCC6.7.1, I have code: NCollection_Set
Everytime I add a component to the set, I don't need to check the duplication. The set takes care of checking by itself.
It is a equivalent to C++ std::set.
I know I can implement the class by myself. But I want to know if there is one substitute available in OCC6.8.0 already. So I don't need to spend extra time on it.
Thanks!
-Fan
Wed, 01/21/2015 - 12:09
Dear Fan,
We recommend you to use hash maps (NCollection_Map) instead of NCollection_Set.
Best regards
FSR.
Wed, 01/21/2015 - 17:28
Dear Forum supervisor
Thank you for your reply.
I was thinking that I use the NCollection_Map instead. But because I don't need store a pair. The only thing I need is the key. It would be a waste for NCollection_Map.
Anyway, it is a solution. I will make the change.
Thanks!
-Fan