reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
90 llvm::DenseMap<Token, std::vector<DocID>> TempInvertedIndex; 91 for (DocID SymbolRank = 0; SymbolRank < Symbols.size(); ++SymbolRank) { 211 using IDAndScore = std::pair<DocID, float>; 220 const DocID SymbolDocID = IDAndScore.first;tools/clang/tools/extra/clangd/index/dex/Iterator.cpp
57 void advanceTo(DocID ID) override { 63 DocID peek() const override { return Children.front()->peek(); } 159 void advanceTo(DocID ID) override { 168 DocID peek() const override { 170 DocID Result = std::numeric_limits<DocID>::max(); 170 DocID Result = std::numeric_limits<DocID>::max(); 183 const DocID ID = peek(); 220 explicit TrueIterator(DocID Size) : Iterator(Kind::True), Size(Size) {} 229 void advanceTo(DocID ID) override { 234 DocID peek() const override { 251 DocID Index = 0; 253 DocID Size; 262 void advanceTo(DocID ID) override { assert(false); } 263 DocID peek() const override { 290 void advanceTo(DocID ID) override { Child->advanceTo(ID); } 292 DocID peek() const override { return Child->peek(); } 322 void advanceTo(DocID ID) override { Child->advanceTo(ID); } 324 DocID peek() const override { return Child->peek(); } 350 std::vector<std::pair<DocID, float>> consume(Iterator &It) { 351 std::vector<std::pair<DocID, float>> Result;tools/clang/tools/extra/clangd/index/dex/Iterator.h
68 virtual void advanceTo(DocID ID) = 0; 72 virtual DocID peek() const = 0; 120 std::vector<std::pair<DocID, float>> consume(Iterator &It); 135 DocID Size; 138 explicit Corpus(DocID Size) : Size(Size) {}tools/clang/tools/extra/clangd/index/dex/PostingList.cpp
46 void advanceTo(DocID ID) override { 58 DocID peek() const override { 80 for (const DocID Doc : C.decompress()) { 102 void advanceToChunk(DocID ID) { 121 llvm::SmallVector<DocID, Chunk::PayloadSize + 1> DecompressedChunk; 132 bool encodeVByte(DocID Delta, llvm::MutableArrayRef<uint8_t> &Payload) { 168 std::vector<Chunk> encodeStream(llvm::ArrayRef<DocID> Documents) { 172 DocID Last = Result.back().Head = Documents.front(); 174 for (DocID Doc : Documents.drop_front()) { 187 llvm::Optional<DocID> readVByte(llvm::ArrayRef<uint8_t> &Bytes) { 190 DocID Result = 0; 205 llvm::SmallVector<DocID, Chunk::PayloadSize + 1> Chunk::decompress() const { 206 llvm::SmallVector<DocID, Chunk::PayloadSize + 1> Result{Head}; 208 DocID Delta; 209 for (DocID Current = Head; !Bytes.empty(); Current += Delta) { 219 PostingList::PostingList(llvm::ArrayRef<DocID> Documents)tools/clang/tools/extra/clangd/index/dex/PostingList.h
44 static constexpr size_t PayloadSize = 32 - sizeof(DocID); 46 llvm::SmallVector<DocID, PayloadSize + 1> decompress() const; 49 DocID Head; 61 explicit PostingList(llvm::ArrayRef<DocID> Documents);tools/clang/tools/extra/clangd/unittests/DexTests.cpp
40 std::vector<DocID> consumeIDs(Iterator &It) { 42 std::vector<DocID> IDs(IDAndScore.size());