@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,PARAMETER,ANNOTATION_TYPE})
public @interface Adapter
Generator are StringAdapter,
VectorAdapter, and SharedPtrAdapter to bridge a few differences between
std::string and String; between std::vector, Java arrays of
primitive types, Buffer, and Pointer; and between xyz::shared_ptr
and Pointer. Adapter classes must define the following public members:
static void deallocate(owner) function
void assign(pointer, size, owner) function
size member variable for arrays accessed via pointer
StdString, StdVector, and SharedPtr.Generator| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
value
The name of the C++ adapter class.
|
public abstract int argc
Generator takes from the method as
arguments to the adapter constructor.