added dimension template argument to doc

This commit is contained in:
m.overtheil 2014-11-04 11:15:07 +01:00
parent 994094cfec
commit d598526bfe
5 changed files with 48 additions and 8 deletions

View File

@ -6,7 +6,9 @@ namespace CGAL {
The class `Search_traits` can be used as a template parameter of the kd tree
and the search classes. It is a mere wrapper for the geometric types needed
by these classes.
\cgalModifBegin
Added Dimension
\cgalModifEnd
\cgalModels `SearchTraits`
\sa `Search_traits_2<Kernel>`
@ -14,13 +16,19 @@ by these classes.
\sa `Search_traits_d<Kernel>`
*/
template< typename NT, typename Point, typename CartesianIterator, typename ConstructCartesianIterator, typename ConstructMinVertex, typename ConstructMaxVertex >
template< typename NT, typename Point, typename CartesianIterator, typename ConstructCartesianIterator, typename ConstructMinVertex, typename ConstructMaxVertex, typename Dim >
class Search_traits {
public:
/// \name Types
/// @{
/*!
Dimension type. Either `Dimension_tag<int dim>`
or `Dynamic_dimension_tag`.
*/
typedef unspecified_type Dimension;
/*!
The number type of the coordinates.
*/

View File

@ -5,7 +5,9 @@ namespace CGAL {
The class `Search_traits_2` can be used as a template parameter of the kd tree
and the search classes.
\cgalModifBegin
Added Dimension
\cgalModifEnd
\cgalHeading{Parameters}
Expects for the template argument a model of the concept `Kernel`,
@ -25,6 +27,11 @@ public:
/// \name Types
/// @{
/*!
Dimension type.
*/
typedef Dimension_tag<2> Dimension;
/*!
Number type.
*/

View File

@ -5,7 +5,9 @@ namespace CGAL {
The class `Search_traits_3` can be used as a template parameter of the kd tree
and the search classes. `Kernel` must be a \cgal kernel.
\cgalModifBegin
Added Dimension
\cgalModifEnd
\cgalHeading{Parameters}
Expects for the template argument a model of the concept `Kernel`,
@ -25,6 +27,10 @@ public:
/// \name Types
/// @{
/*!
Dimension type.
*/
typedef Dimension_tag<3> Dimension;
/*!
Number type.
*/

View File

@ -5,13 +5,16 @@ namespace CGAL {
The class `Search_traits_d` can be used as a template parameter of the kd tree
and the search classes. `Kernel` must be a \cgal kernel.
\cgalModifBegin
Added Dimension
\cgalModifEnd
`Kernel` must be a d-dimensional \cgal kernel.
\cgalHeading{Parameters}
Expects for the template argument a model of the concept `Kernel_d`,
for example `Cartesian_d<double>`.
Expects for the first template argument a model of the concept `Kernel_d`
(for example `Cartesian_d<double>`) and for the second argument a `Dimension_tag`
(default value is `Dynamic_dimension_tag`).
\cgalModels `SearchTraits`
\cgalModels `RangeSearchTraits`
@ -21,13 +24,19 @@ for example `Cartesian_d<double>`.
\sa `Search_traits<Point,CartesianConstIterator,ConstructCartesianConstIterator>`
*/
template< typename Kernel >
template< typename Kernel, typename Dim >
class Search_traits_d {
public:
/// \name Types
/// @{
/*!
Dimension type. Either `Dimension_tag<int dim>`
or `Dynamic_dimension_tag`.
*/
typedef Dim Dimension;
/*!
Number type.
*/

View File

@ -4,11 +4,15 @@
The concept `SearchTraits` defines the requirements for the template
parameter of the search classes.
\cgalModifBegin
Added Search_traits_d and Dimension
\cgalModifEnd
\cgalHasModel `CGAL::Cartesian_d<FT>`
\cgalHasModel `CGAL::Homogeneous_d<RT>`
\cgalHasModel `CGAL::Search_traits_2<Kernel>`
\cgalHasModel `CGAL::Search_traits_3<Kernel>`
\cgalHasModel `CGAL::Search_traits_d<Kernel,Dim>`
\cgalHasModel `CGAL::Search_traits<NT,Point,CartesianCoordinateIterator,ConstructCartesianCoordinateIterator,ConstructMinVertex,ConstructMaxVertex>`
\sa `RangeSearchTraits`
@ -22,6 +26,12 @@ public:
/// \name Types
/// @{
/*!
Dimension type. Either `CGAL::Dimension_tag`
or `CGAL::Dynamic_dimension_tag`.
*/
typedef unspecified_type Dimension;
/*!
Point type. `CGAL::Kernel_traits` has to be
specialized for this type.