StringList
Base interface for JS handles that refer to underlying C++ objects.
See
Extends
- ClassHandle.Iterable<
string>
Methods
| Method | Description |
|---|---|
| push_back() | Adds an element to the end of the list |
| resize() | Resizes the list |
| size() | Returns the number of elements in the list |
| get() | Returns the element at the given index |
| set() | Sets the element at the given index |
Inherited from ClassHandle
| Method | Description |
|---|---|
| isAliasOf() | Returns true if this handle and other alias the same underlying C++ object. |
| delete() | Releases this JavaScript handle. |
| deleteLater() | Schedules this handle for deferred deletion and returns this handle. |
| isDeleted() | Returns true if this handle has already been deleted. |
| [dispose]() | Releases this handle when the enclosing scope exits, so a handle can be declared with using instead of calling delete() later manually. |
| clone() | Returns a new JavaScript handle aliasing the same underlying C++ object. |
push_back()
ts
push_back(value: EmbindString): void;Adds an element to the end of the list
Parameters
| Parameter | Type |
|---|---|
value | EmbindString |
Returns
void
resize()
ts
resize(size: number, value: EmbindString): void;Resizes the list
Parameters
| Parameter | Type |
|---|---|
size | number |
value | EmbindString |
Returns
void
size()
ts
size(): number;Returns the number of elements in the list
Returns
number
get()
ts
get(index: number): string | undefined;Returns the element at the given index
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
string | undefined
set()
ts
set(index: number, value: EmbindString): boolean;Sets the element at the given index
Parameters
| Parameter | Type |
|---|---|
index | number |
value | EmbindString |
Returns
boolean