Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
fml::jni::ScopedJavaGlobalRef< T > Class Template Reference

#include <scoped_java_ref.h>

Inheritance diagram for fml::jni::ScopedJavaGlobalRef< T >:
fml::jni::JavaRef< T >

Public Member Functions

 ScopedJavaGlobalRef ()
 
 ScopedJavaGlobalRef (const ScopedJavaGlobalRef< T > &other)
 
 ScopedJavaGlobalRef (JNIEnv *env, T obj)
 
template<typename U >
 ScopedJavaGlobalRef (const U &other)
 
 ~ScopedJavaGlobalRef ()
 
void Reset ()
 
template<typename U >
void Reset (const U &other)
 
template<typename U >
void Reset (JNIEnv *env, U obj)
 
T Release ()
 
- Public Member Functions inherited from fml::jni::JavaRef< T >
T obj () const
 

Additional Inherited Members

- Protected Member Functions inherited from fml::jni::JavaRef< T >
 JavaRef ()
 
 ~JavaRef ()
 
 JavaRef (JNIEnv *env, T obj)
 

Detailed Description

template<typename T>
class fml::jni::ScopedJavaGlobalRef< T >

Definition at line 163 of file scoped_java_ref.h.

Constructor & Destructor Documentation

◆ ScopedJavaGlobalRef() [1/4]

template<typename T >
fml::jni::ScopedJavaGlobalRef< T >::ScopedJavaGlobalRef ( )
inline

Definition at line 165 of file scoped_java_ref.h.

165{}

◆ ScopedJavaGlobalRef() [2/4]

template<typename T >
fml::jni::ScopedJavaGlobalRef< T >::ScopedJavaGlobalRef ( const ScopedJavaGlobalRef< T > &  other)
inlineexplicit

Definition at line 168 of file scoped_java_ref.h.

168 {
169 this->Reset(other);
170 }

◆ ScopedJavaGlobalRef() [3/4]

template<typename T >
fml::jni::ScopedJavaGlobalRef< T >::ScopedJavaGlobalRef ( JNIEnv *  env,
T  obj 
)
inline

Definition at line 172 of file scoped_java_ref.h.

172{ this->Reset(env, obj); }
Definition: __init__.py:1

◆ ScopedJavaGlobalRef() [4/4]

template<typename T >
template<typename U >
fml::jni::ScopedJavaGlobalRef< T >::ScopedJavaGlobalRef ( const U &  other)
inlineexplicit

Definition at line 175 of file scoped_java_ref.h.

175 {
176 this->Reset(other);
177 }

◆ ~ScopedJavaGlobalRef()

template<typename T >
fml::jni::ScopedJavaGlobalRef< T >::~ScopedJavaGlobalRef ( )
inline

Definition at line 179 of file scoped_java_ref.h.

179{ this->Reset(); }

Member Function Documentation

◆ Release()

template<typename T >
T fml::jni::ScopedJavaGlobalRef< T >::Release ( )
inline

Definition at line 195 of file scoped_java_ref.h.

195{ return static_cast<T>(this->ReleaseInternal()); }
#define T
Definition: precompiler.cc:65

◆ Reset() [1/3]

template<typename T >
void fml::jni::ScopedJavaGlobalRef< T >::Reset ( )
inline

Definition at line 181 of file scoped_java_ref.h.

181{ this->ResetGlobalRef(); }

◆ Reset() [2/3]

template<typename T >
template<typename U >
void fml::jni::ScopedJavaGlobalRef< T >::Reset ( const U &  other)
inline

Definition at line 184 of file scoped_java_ref.h.

184 {
185 this->Reset(NULL, other.obj());
186 }

◆ Reset() [3/3]

template<typename T >
template<typename U >
void fml::jni::ScopedJavaGlobalRef< T >::Reset ( JNIEnv *  env,
obj 
)
inline

Definition at line 189 of file scoped_java_ref.h.

189 {
190 this->SetNewGlobalRef(env, obj);
191 }

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