Package org.bytedeco.javacpp.annotation
Annotation Type Const
-
@Documented @Retention(RUNTIME) @Target({TYPE,METHOD,PARAMETER}) public @interface Const
A shortcut annotation toCast
that simply addsconst
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:
Generator
- For a parameter type, the first element is for a value like
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean[]
value
Iftrue
, appliesconst
to the value and to the pointer, respectively.
-