Package org.bytedeco.javacpp.annotation
Annotation Type Const
-
@Documented @Retention(RUNTIME) @Target({TYPE,METHOD,PARAMETER}) public @interface ConstA shortcut annotation toCastthat simply addsconstto 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
constor 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 aFunctionPointerin the case ofconstfunctions.
- 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[]valueIftrue, appliesconstto the value and to the pointer, respectively.
-