reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
39 m_map.push_back(typename UniqueCStringMap<T>::Entry(unique_cstr, value)); 42 void Append(const Entry &e) { m_map.push_back(e); } 44 void Clear() { m_map.clear(); } 51 if (idx < m_map.size()) { 52 value = m_map[idx].value; 59 return m_map[idx].cstring; 64 T GetValueAtIndexUnchecked(uint32_t idx) const { return m_map[idx].value; } 69 return m_map[idx].value; 73 return ((idx < m_map.size()) ? m_map[idx].cstring : ConstString()); 73 return ((idx < m_map.size()) ? m_map[idx].cstring : ConstString()); 83 auto pos = llvm::lower_bound(m_map, unique_cstr, Compare()); 84 if (pos != m_map.end() && pos->cstring == unique_cstr) 95 auto pos = llvm::lower_bound(m_map, unique_cstr, Compare()); 96 if (pos != m_map.end() && pos->cstring == unique_cstr) 108 if (!m_map.empty()) { 109 const Entry *first_entry = &m_map[0]; 110 const Entry *after_last_entry = first_entry + m_map.size(); 124 m_map.begin(), m_map.end(), unique_cstr, Compare()))) 124 m_map.begin(), m_map.end(), unique_cstr, Compare()))) 134 const_iterator pos, end = m_map.end(); 135 for (pos = m_map.begin(); pos != end; ++pos) { 144 size_t GetSize() const { return m_map.size(); } 147 bool IsEmpty() const { return m_map.empty(); } 153 void Reserve(size_t n) { m_map.reserve(n); } 164 void Sort() { llvm::sort(m_map.begin(), m_map.end(), Compare()); } 164 void Sort() { llvm::sort(m_map.begin(), m_map.end(), Compare()); } 172 if (m_map.size() < m_map.capacity()) { 172 if (m_map.size() < m_map.capacity()) { 173 collection temp(m_map.begin(), m_map.end()); 173 collection temp(m_map.begin(), m_map.end()); 174 m_map.swap(temp);