Ejemplo n.º 1
0
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);
}
Ejemplo n.º 2
0
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();
}