| 322 | |
| 323 | template <class Item> |
| 324 | uint TopDUContextDynamicData::DUChainItemStorage<Item>::allocateItemIndex(const Item& item, const bool temporary) |
| 325 | { |
| 326 | if (!data->m_dataLoaded) { |
| 327 | data->loadData(); |
| 328 | } |
| 329 | if (!temporary) { |
| 330 | items.append(item); |
| 331 | return items.size(); |
| 332 | } else { |
| 333 | temporaryItems.append(item); |
| 334 | return 0x0fffffff - temporaryItems.size(); //We always keep the highest bit at zero |
| 335 | } |
| 336 | } |
| 337 | |
| 338 | template <class Item> |
| 339 | bool TopDUContextDynamicData::DUChainItemStorage<Item>::isItemForIndexLoaded(uint index) const |
no test coverage detected