mirror of https://github.com/CGAL/cgal
Add const handle concept.
This commit is contained in:
parent
17ff67f454
commit
816dda0c23
|
|
@ -0,0 +1,34 @@
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\ingroup PkgHandlesAndCirculatorsConcepts
|
||||||
|
\cgalConcept
|
||||||
|
|
||||||
|
A constant handle. Refer to the `Handle` concept for more details.
|
||||||
|
|
||||||
|
\cgalRefines Descriptor
|
||||||
|
|
||||||
|
\cgalHasModel const T* (const pointers)
|
||||||
|
|
||||||
|
\sa `Handle`
|
||||||
|
|
||||||
|
*/
|
||||||
|
class ConstHandle {
|
||||||
|
public:
|
||||||
|
|
||||||
|
/// \name Dereference
|
||||||
|
/// @{
|
||||||
|
|
||||||
|
/*!
|
||||||
|
returns the object pointed to.
|
||||||
|
*/
|
||||||
|
const value_type& operator*();
|
||||||
|
|
||||||
|
/*!
|
||||||
|
returns a pointer to the object pointed to.
|
||||||
|
*/
|
||||||
|
const value_type* operator->();
|
||||||
|
|
||||||
|
/// @}
|
||||||
|
|
||||||
|
}; /* end Handle */
|
||||||
|
|
||||||
Loading…
Reference in New Issue