reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
37 IndexedSet() { Map.reserve(N); } 41 assert(Idx != 0 && !Map.empty() && Idx-1 < Map.size()); 41 assert(Idx != 0 && !Map.empty() && Idx-1 < Map.size()); 42 return Map[Idx-1]; 47 auto F = llvm::find(Map, Val); 48 if (F != Map.end()) 49 return F - Map.begin() + 1; 50 Map.push_back(Val); 51 return Map.size(); // Return actual_index + 1. 55 auto F = llvm::find(Map, Val); 56 assert(F != Map.end()); 57 return F - Map.begin() + 1; 60 uint32_t size() const { return Map.size(); } 64 const_iterator begin() const { return Map.begin(); } 65 const_iterator end() const { return Map.end(); }