From aa101e0cafeceea57f3e5d29bc5e35f6e5b3e2fe Mon Sep 17 00:00:00 2001 From: Camille Wormser Date: Wed, 13 May 2009 22:47:29 +0000 Subject: [PATCH] Laurent's remark: passing the traits as parameter of constructors --- AABB_tree/doc_tex/AABB_tree_ref/AABB_traits.tex | 2 ++ AABB_tree/doc_tex/AABB_tree_ref/AABB_tree.tex | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AABB_tree/doc_tex/AABB_tree_ref/AABB_traits.tex b/AABB_tree/doc_tex/AABB_tree_ref/AABB_traits.tex index 3708c1a2c09..f30de18ddb1 100644 --- a/AABB_tree/doc_tex/AABB_tree_ref/AABB_traits.tex +++ b/AABB_tree/doc_tex/AABB_tree_ref/AABB_traits.tex @@ -45,6 +45,8 @@ The template parameter \ccc{GeomTraits} provides the geometric types as well as \ccCreation \ccCreationVariable{traits} +\ccConstructor{AABB_traits(GeomTraits gt = GeomTraits());}{Default constructor.} + \ccSeeAlso \ccc{AABBTraits},\\ diff --git a/AABB_tree/doc_tex/AABB_tree_ref/AABB_tree.tex b/AABB_tree/doc_tex/AABB_tree_ref/AABB_tree.tex index e7794c27b77..0ac344bcdb8 100644 --- a/AABB_tree/doc_tex/AABB_tree_ref/AABB_tree.tex +++ b/AABB_tree/doc_tex/AABB_tree_ref/AABB_tree.tex @@ -51,10 +51,10 @@ Class \ccRefName\ is a static data structure for efficient intersection and dist \ccCreation \ccCreationVariable{tree} %% variable name -\ccConstructor{AABB_tree();}{Constructs an empty tree.} +\ccConstructor{AABB_tree(AT at = AT());}{Constructs an empty tree.} \ccConstructor{template < class InputIterator> AABB_tree( InputIterator begin, - InputIterator beyond);} + InputIterator beyond, AT at = AT());} {Builds the AABB tree data structure. Type \ccc{InputIterator} can be any const iterator such that \ccc{Primitive} has a constructor taking a \ccc{InputIterator} as argument. The tree stays empty if the memory allocation is not successful.} \ccOperations