diff --git a/Kernel_23/doc/Kernel_23/Concepts/FunctionObjectConcepts.h b/Kernel_23/doc/Kernel_23/Concepts/FunctionObjectConcepts.h index 91a9fa8387d..0c9c730a29c 100644 --- a/Kernel_23/doc/Kernel_23/Concepts/FunctionObjectConcepts.h +++ b/Kernel_23/doc/Kernel_23/Concepts/FunctionObjectConcepts.h @@ -2808,6 +2808,52 @@ public: }; /* end Kernel::ComputeVolume_3 */ + + +/*! + \ingroup PkgKernel23ConceptsFunctionObjects + \cgalConcept + + \cgalRefines `AdaptableFunctor` + +*/ +class ComputeWeight_2 { +public: + + /// \name Operations + /// A model of this concept must provide: + /// @{ + + /*! + returns the weight of the weighted point. + */ + Kernel::FT operator()(const Kernel::WeightedPoint_2& p) const; + +}; /* end Kernel::ComputeWeight_2 + +/*! + \ingroup PkgKernel23ConceptsFunctionObjects + \cgalConcept + + \cgalRefines `AdaptableFunctor` + +*/ +class ComputeWeight_3 { +public: + + /// \name Operations + /// A model of this concept must provide: + /// @{ + + /*! + returns the weight of the weighted point. + */ + Kernel::FT operator()(const Kernel::WeightedPoint_3& p) const; + +}; /* end Kernel::ComputeWeight_3 + + + /*! \ingroup PkgKernel23ConceptsFunctionObjects \cgalConcept diff --git a/Kernel_23/doc/Kernel_23/Concepts/Kernel.h b/Kernel_23/doc/Kernel_23/Concepts/Kernel.h index 093a3fb285f..e4281211604 100644 --- a/Kernel_23/doc/Kernel_23/Concepts/Kernel.h +++ b/Kernel_23/doc/Kernel_23/Concepts/Kernel.h @@ -422,6 +422,11 @@ public: */ typedef unspecified_type Assign_2; + /*! + a model of `Kernel::ComputeWeight_2` + */ + typedef unspecified_type Compute_weight_2; + /*! a model of `Kernel::ComputeX_2` */ @@ -1123,6 +1128,11 @@ public: */ typedef unspecified_type Assign_3; + /*! + a model of `Kernel::ComputeWeight_3` + */ + typedef unspecified_type Compute_weight_3; + /*! a model of `Kernel::ComputeX_3` */ diff --git a/Kernel_23/doc/Kernel_23/PackageDescription.txt b/Kernel_23/doc/Kernel_23/PackageDescription.txt index 5891a4bc069..895b6f67416 100644 --- a/Kernel_23/doc/Kernel_23/PackageDescription.txt +++ b/Kernel_23/doc/Kernel_23/PackageDescription.txt @@ -316,6 +316,8 @@ - `Kernel::ComputeSquaredRadius_2` - `Kernel::ComputeSquaredRadius_3` - `Kernel::ComputeVolume_3` +- `Kernel::ComputeWeight_2` +- `Kernel::ComputeWeight_3` - `Kernel::ComputeX_2` - `Kernel::ComputeX_3` - `Kernel::ComputeY_2`