| 34 | FullSubsetIndexingPtrWrapper() = default; |
| 35 | |
| 36 | TAtomicSharedPtr<TArraySubsetIndexing<ui32>> Get(ui32 objectsCount) { |
| 37 | CB_ENSURE_INTERNAL(objectsCount, "Size of TArraySubsetIndexing should be greater than 0"); |
| 38 | if (auto fullSubsetIndexingPtr = VSubsetIndexing[objectsCount]) { |
| 39 | return fullSubsetIndexingPtr; |
| 40 | } |
| 41 | return VSubsetIndexing[objectsCount] = |
| 42 | MakeAtomicShared<TArraySubsetIndexing<ui32>>(TFullSubset<ui32>{objectsCount}); |
| 43 | } |
| 44 | |
| 45 | private: |
| 46 | TMap<ui32, TAtomicSharedPtr<TArraySubsetIndexing<ui32>>> VSubsetIndexing; |
no outgoing calls
no test coverage detected