void generateKwic(std::istream &in, std::ostream &out) { std::vector<std::vector<Word>> lines {readLines(in)}; std::vector<std::vector<Word>> preparedLines {prepareLines(lines)}; printLines(preparedLines, out); }
void Viewport::rebuild() { // guess: we want the lock to carry over both methods.. SharedDataLock ctxlock(ctx->mutex); SharedDataLock setslock(sets->mutex); prepareLines(); // will also call reset() if indicated by ctx updateBuffers(); }