Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
tonic::DartConverter< PTR< T > > Struct Template Reference

#include <dart_wrappable.h>

Public Types

using NativeType = PTR< T >
 
using FfiType = Dart_Handle
 

Static Public Member Functions

static Dart_Handle ToDart (const NativeType &val)
 
static NativeType FromDart (Dart_Handle handle)
 
static NativeType FromArguments (Dart_NativeArguments args, int index, Dart_Handle &exception, bool auto_scope=true)
 
static void SetReturnValue (Dart_NativeArguments args, const NativeType &val, bool auto_scope=true)
 
static NativeType FromFfi (FfiType val)
 
static FfiType ToFfi (const NativeType &val)
 
static const char * GetFfiRepresentation ()
 
static const char * GetDartRepresentation ()
 
static bool AllowedInLeafCall ()
 

Static Public Attributes

static constexpr const char * kFfiRepresentation = "Handle"
 
static constexpr const char * kDartRepresentation = "Object"
 
static constexpr bool kAllowedInLeafCall = false
 

Detailed Description

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

Definition at line 161 of file dart_wrappable.h.

Member Typedef Documentation

◆ FfiType

template<template< typename T > class PTR, typename T >
using tonic::DartConverter< PTR< T > >::FfiType = Dart_Handle

Definition at line 163 of file dart_wrappable.h.

◆ NativeType

template<template< typename T > class PTR, typename T >
using tonic::DartConverter< PTR< T > >::NativeType = PTR<T>

Definition at line 162 of file dart_wrappable.h.

Member Function Documentation

◆ AllowedInLeafCall()

template<template< typename T > class PTR, typename T >
static bool tonic::DartConverter< PTR< T > >::AllowedInLeafCall ( )
inlinestatic

Definition at line 194 of file dart_wrappable.h.

194{ return kAllowedInLeafCall; }
static constexpr bool kAllowedInLeafCall

◆ FromArguments()

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

Definition at line 176 of file dart_wrappable.h.

179 {
180 return NativeType(
181 DartConverter<T*>::FromArguments(args, index, exception, auto_scope));
182 }
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args

◆ FromDart()

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

Definition at line 172 of file dart_wrappable.h.

172 {
173 return NativeType(DartConverter<T*>::FromDart(handle));
174 }

◆ FromFfi()

template<template< typename T > class PTR, typename T >
static NativeType tonic::DartConverter< PTR< T > >::FromFfi ( FfiType  val)
inlinestatic

Definition at line 190 of file dart_wrappable.h.

190{ return FromDart(val); }
static NativeType FromDart(Dart_Handle handle)

◆ GetDartRepresentation()

template<template< typename T > class PTR, typename T >
static const char * tonic::DartConverter< PTR< T > >::GetDartRepresentation ( )
inlinestatic

Definition at line 193 of file dart_wrappable.h.

193{ return kDartRepresentation; }
static constexpr const char * kDartRepresentation

◆ GetFfiRepresentation()

template<template< typename T > class PTR, typename T >
static const char * tonic::DartConverter< PTR< T > >::GetFfiRepresentation ( )
inlinestatic

Definition at line 192 of file dart_wrappable.h.

192{ return kFfiRepresentation; }
static constexpr const char * kFfiRepresentation

◆ SetReturnValue()

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

Definition at line 184 of file dart_wrappable.h.

186 {
187 DartConverter<T*>::SetReturnValue(args, val.get());
188 }

◆ ToDart()

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

Definition at line 168 of file dart_wrappable.h.

168 {
169 return DartConverter<T*>::ToDart(val.get());
170 }

◆ ToFfi()

template<template< typename T > class PTR, typename T >
static FfiType tonic::DartConverter< PTR< T > >::ToFfi ( const NativeType val)
inlinestatic

Definition at line 191 of file dart_wrappable.h.

191{ return ToDart(val); }
static Dart_Handle ToDart(const NativeType &val)

Member Data Documentation

◆ kAllowedInLeafCall

template<template< typename T > class PTR, typename T >
constexpr bool tonic::DartConverter< PTR< T > >::kAllowedInLeafCall = false
staticconstexpr

Definition at line 166 of file dart_wrappable.h.

◆ kDartRepresentation

template<template< typename T > class PTR, typename T >
constexpr const char* tonic::DartConverter< PTR< T > >::kDartRepresentation = "Object"
staticconstexpr

Definition at line 165 of file dart_wrappable.h.

◆ kFfiRepresentation

template<template< typename T > class PTR, typename T >
constexpr const char* tonic::DartConverter< PTR< T > >::kFfiRepresentation = "Handle"
staticconstexpr

Definition at line 164 of file dart_wrappable.h.


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