Example #1
0
	void IndexPseudoPyramidTree::clear()
	{
		// NOTE: Using assigment not clear() to ensure memory is de-allocated
		// (through destructors of containers)
		points = PointList();
		pointSums = RealList();
		hashMap = OneDMap();
		emptyElementIndices = IndexList();
	}
Example #2
0
void DictClient::lookup_simple(const gchar *word)
{
	simple_lookup_ = true;

	if (!word || !*word) {
		on_simple_lookup_end_.emit(IndexList());
		return;
	}

	if (!channel_ || !source_id_)
			return;
    connect();

	cmd_.reset(new DefineCmd("*", word));
}