5#ifndef INCLUDE_V8_CONTAINER_H_
6#define INCLUDE_V8_CONTAINER_H_
42#ifdef V8_ENABLE_CHECKS
45 return static_cast<Array*
>(value);
102 static void CheckCast(
Value* obj);
134#ifdef V8_ENABLE_CHECKS
137 return static_cast<Map*
>(value);
142 static void CheckCast(
Value* obj);
170#ifdef V8_ENABLE_CHECKS
173 return static_cast<Set*
>(value);
178 static void CheckCast(
Value* obj);
static Local< Array > New(Isolate *isolate, Local< Value > *elements, size_t length)
static Local< Array > New(Isolate *isolate, int length=0)
CallbackResult(*)(uint32_t index, Local< Value > element, void *data) IterationCallback
static V8_INLINE Array * Cast(Value *value)
Maybe< void > Iterate(Local< Context > context, IterationCallback callback, void *callback_data)
static MaybeLocal< Array > New(Local< Context > context, size_t length, std::function< MaybeLocal< v8::Value >()> next_value_callback)
Local< Array > AsArray() const
V8_WARN_UNUSED_RESULT Maybe< bool > Has(Local< Context > context, Local< Value > key)
V8_WARN_UNUSED_RESULT Maybe< bool > Delete(Local< Context > context, Local< Value > key)
static V8_INLINE Map * Cast(Value *value)
V8_WARN_UNUSED_RESULT MaybeLocal< Value > Get(Local< Context > context, Local< Value > key)
static Local< Map > New(Isolate *isolate)
V8_WARN_UNUSED_RESULT MaybeLocal< Map > Set(Local< Context > context, Local< Value > key, Local< Value > value)
Local< Array > AsArray() const
static Local< Set > New(Isolate *isolate)
V8_WARN_UNUSED_RESULT Maybe< bool > Has(Local< Context > context, Local< Value > key)
V8_WARN_UNUSED_RESULT Maybe< bool > Delete(Local< Context > context, Local< Value > key)
static V8_INLINE Set * Cast(Value *value)
V8_WARN_UNUSED_RESULT MaybeLocal< Set > Add(Local< Context > context, Local< Value > key)
#define V8_WARN_UNUSED_RESULT