#include <dart_list.h>
Definition at line 15 of file dart_list.h.
◆ DartList()
| tonic::DartList::DartList |
( |
DartList && |
other | ) |
|
Definition at line 25 of file dart_list.cc.
26 : dart_handle_(other.dart_handle_),
27 size_(other.size_),
28 is_valid_(other.is_valid_) {
29 other.dart_handle_ = nullptr;
30 other.size_ = 0;
31 other.is_valid_ = false;
32}
◆ dart_handle()
| Dart_Handle tonic::DartList::dart_handle |
( |
| ) |
const |
|
inline |
Definition at line 32 of file dart_list.h.
32{ return dart_handle_; }
◆ Get() [1/2]
| Dart_Handle tonic::DartList::Get |
( |
size_t |
index | ) |
|
◆ Get() [2/2]
template<class T >
| T tonic::DartList::Get |
( |
size_t |
index | ) |
|
|
inline |
Definition at line 28 of file dart_list.h.
28 {
29 return DartConverter<T>::FromDart(
Get(index));
30 }
Dart_Handle Get(size_t index)
References Get().
◆ is_valid()
| bool tonic::DartList::is_valid |
( |
| ) |
const |
|
inline |
◆ operator bool()
| tonic::DartList::operator bool |
( |
| ) |
const |
|
inlineexplicit |
◆ Set() [1/2]
| void tonic::DartList::Set |
( |
size_t |
index, |
|
|
Dart_Handle |
value |
|
) |
| |
◆ Set() [2/2]
template<class T >
| void tonic::DartList::Set |
( |
size_t |
index, |
|
|
T |
value |
|
) |
| |
|
inline |
Definition at line 23 of file dart_list.h.
23 {
24 Set(index, DartConverter<T>::ToDart(value));
25 }
void Set(size_t index, Dart_Handle value)
References Set(), and value.
◆ size()
| size_t tonic::DartList::size |
( |
| ) |
const |
|
inline |
◆ DartConverter< DartList >
The documentation for this class was generated from the following files: