Collection vs RefIdCollection

Involved development of the OpenMW construction set.
Post Reply
User avatar
cc9cii
Posts: 523
Joined: 28 Mar 2013, 04:01

Collection vs RefIdCollection

Post by cc9cii »

These two classes seem to do similar things, and they are both derived from CollectionBase. What were the original motivation for the two? Is Collection meant to be for single and RefIdCollection for nested data structures?

Background:

While looking at Bug #2435, I've noticed that these two similar implementations exist, one setting modified flag and the other not. Naturally I wondered why? I'm guessing that there must've been a good reason that I'm not seeing.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Collection vs RefIdCollection

Post by Zini »

Collection contains records of a single type. RefIdCollection contains records of varying types.
Post Reply