equal
deleted
inserted
replaced
104 |
104 |
105 FORCEINLINE CSegmentCostCacheT() {} |
105 FORCEINLINE CSegmentCostCacheT() {} |
106 |
106 |
107 FORCEINLINE Tsegment& Get(Key& key, bool *found) |
107 FORCEINLINE Tsegment& Get(Key& key, bool *found) |
108 { |
108 { |
109 Tsegment* item = &m_map.Find(key); |
109 Tsegment* item = m_map.Find(key); |
110 if (item == NULL) { |
110 if (item == NULL) { |
111 *found = false; |
111 *found = false; |
112 item = new (&m_heap.AddNC()) Tsegment(key); |
112 item = new (&m_heap.AddNC()) Tsegment(key); |
113 m_map.Push(*item); |
113 m_map.Push(*item); |
114 } else { |
114 } else { |