E - public interface CXXStdVector<E> extends FFIVector<E>
Bean, simply define a new class:
@FFIGen
@FFITypeAlias("std::vector")
@CXXTemplate(cxx = "bean", java = "Bean")
class BeanVector<E> extends CXXStdVector<E> {
@FFIFactory
interface Factory<E> {
BeanVector<E> create();
}
}
This class is mainly used by FFIMirror, where all type mapping are predefined.
In that case, we can infer the type mapping from Java type system
without any CXXTemplate annotation.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CXXStdVector.Factory<E> |
| Modifier and Type | Method and Description |
|---|---|
long |
capacity() |
void |
clear() |
long |
data() |
void |
dispose() |
boolean |
empty() |
E |
get(long index) |
void |
push_back(E e) |
void |
reserve(long cap) |
void |
resize(long size) |
void |
set(long index,
E value) |
long |
size() |
getAddress, getAddressCopyright © 2022 Alibaba Group Holding Ltd.. All rights reserved.