Package org.bytedeco.javacpp.annotation
Annotation Interface Const
A shortcut annotation to
Cast
that simply adds const
to the parameter type, function, or class.
- For a parameter type, the first element is for a value like
const char*
and the second for a pointer likechar const *
. - For a function, the first, second, and third ones are used. The first two are applied to the return value/pointer.
The third one determines whether the function is
const
or not. For backward compatibility, we keep the third element empty. - For a class, only the first one is used, and if it is
true
, it means all the functions areconst
. Can also be declared on aFunctionPointer
in the case ofconst
functions.
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean[]
Iftrue
, appliesconst
to the value and to the pointer, respectively.
-
Element Details
-
value
boolean[] valueIftrue
, appliesconst
to the value and to the pointer, respectively.- Default:
{true, false}
-