diff --git a/fastlib/tree/kdtree.h b/fastlib/tree/kdtree.h index 9a843bfbbc..3054cf0df0 100644 --- a/fastlib/tree/kdtree.h +++ b/fastlib/tree/kdtree.h @@ -213,6 +213,7 @@ namespace tree { // TODO: Perhaps move this into a "util.h" file + /** Serializes a KD tree to a serializer. */ template void SerializeKdTree(const TKdTree *tree, const Matrix& matrix, @@ -223,6 +224,7 @@ namespace tree { old_from_new.Serialize(s); } + /** Deserializes a KD tree from a serializer. */ template void DeserializeKdTree(TKdTree *uninit_tree, Matrix* uninit_matrix, @@ -235,6 +237,7 @@ namespace tree { } } + /** Reads a KD tree from a file in the SERIALIZED format. */ template void ReadKdTreeFromFile(const char *fname, TKdTree *uninit_tree, @@ -248,6 +251,7 @@ namespace tree { } }; +/** Basic KD tree structure. */ typedef BinarySpaceTree BasicKdTree; #endif