Flutter Engine
tonic::DartConverter< PTR< T > > Struct Template Reference

#include <dart_wrappable.h>

Static Public Member Functions

static Dart_Handle ToDart (const PTR< T > &val)
 
static PTR< T > FromDart (Dart_Handle handle)
 
static PTR< T > FromArguments (Dart_NativeArguments args, int index, Dart_Handle &exception, bool auto_scope=true)
 
static void SetReturnValue (Dart_NativeArguments args, const PTR< T > &val, bool auto_scope=true)
 

Detailed Description

template<template< typename T > class PTR, typename T>
struct tonic::DartConverter< PTR< T > >

Definition at line 145 of file dart_wrappable.h.

Member Function Documentation

◆ FromArguments()

template<template< typename T > class PTR, typename T >
static PTR<T> tonic::DartConverter< PTR< T > >::FromArguments ( Dart_NativeArguments  args,
int  index,
Dart_Handle &  exception,
bool  auto_scope = true 
)
inlinestatic

Definition at line 154 of file dart_wrappable.h.

157  {
158  return PTR<T>(
159  DartConverter<T*>::FromArguments(args, index, exception, auto_scope));
160  }
G_BEGIN_DECLS FlValue * args

◆ FromDart()

template<template< typename T > class PTR, typename T >
static PTR<T> tonic::DartConverter< PTR< T > >::FromDart ( Dart_Handle  handle)
inlinestatic

Definition at line 150 of file dart_wrappable.h.

150  {
151  return DartConverter<T*>::FromDart(handle);
152  }

◆ SetReturnValue()

template<template< typename T > class PTR, typename T >
static void tonic::DartConverter< PTR< T > >::SetReturnValue ( Dart_NativeArguments  args,
const PTR< T > &  val,
bool  auto_scope = true 
)
inlinestatic

Definition at line 162 of file dart_wrappable.h.

164  {
165  DartConverter<T*>::SetReturnValue(args, val.get());
166  }
G_BEGIN_DECLS FlValue * args

◆ ToDart()

template<template< typename T > class PTR, typename T >
static Dart_Handle tonic::DartConverter< PTR< T > >::ToDart ( const PTR< T > &  val)
inlinestatic

Definition at line 146 of file dart_wrappable.h.

References tonic::ToDart().

146  {
147  return DartConverter<T*>::ToDart(val.get());
148  }
Dart_Handle ToDart(const T &object)

The documentation for this struct was generated from the following file: