Flutter Engine
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)
 
Release ()
 
- Public Member Functions inherited from fml::jni::JavaRef< 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 167 of file scoped_java_ref.h.

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

◆ ScopedJavaGlobalRef() [3/4]

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

Definition at line 171 of file scoped_java_ref.h.

171 { this->Reset(env, obj); }

◆ ScopedJavaGlobalRef() [4/4]

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

Definition at line 174 of file scoped_java_ref.h.

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

◆ ~ScopedJavaGlobalRef()

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

Definition at line 178 of file scoped_java_ref.h.

178 { this->Reset(); }

Member Function Documentation

◆ Release()

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

Definition at line 194 of file scoped_java_ref.h.

194 { return static_cast<T>(this->ReleaseInternal()); }

◆ Reset() [1/3]

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

Definition at line 180 of file scoped_java_ref.h.

180 { this->ResetGlobalRef(); }

◆ Reset() [2/3]

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

Definition at line 183 of file scoped_java_ref.h.

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

◆ Reset() [3/3]

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

Definition at line 188 of file scoped_java_ref.h.

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

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