Collection vs RefIdCollection

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

Collection vs RefIdCollection

Post by cc9cii » 09 Mar 2015, 04:38

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?


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
Posts: 5535
Joined: 06 Aug 2011, 15:16

Re: Collection vs RefIdCollection

Post by Zini » 09 Mar 2015, 17:09

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests