| 135 | }; |
| 136 | |
| 137 | size_t CorpusObject::findUid(const std::string& uid) const |
| 138 | { |
| 139 | if (isIndependent() || isSubDocs()) |
| 140 | { |
| 141 | auto it = invmap.find(uid); |
| 142 | if (it == invmap.end()) return -1; |
| 143 | return it->second; |
| 144 | } |
| 145 | else |
| 146 | { |
| 147 | return tm->inst->getDocIdByUid(uid); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | const tomoto::RawDocKernel* CorpusObject::getDoc(size_t idx) const |
| 152 | { |
nothing calls this directly
no test coverage detected