51 std::is_same<T, jclass>() || std::is_same<T, jobject>() ||
52 std::is_same<T, jstring>() || std::is_same<T, jthrowable>() ||
53 std::is_same<T, jbyteArray>() || std::is_same<T, jintArray>() ||
54 std::is_same<T, jshortArray>() || std::is_same<T, jcharArray>() ||
55 std::is_same<T, jlongArray>() || std::is_same<T, jfloatArray>() ||
56 std::is_same<T, jdoubleArray>() || std::is_same<T, jobjectArray>() ||
57 std::is_same<T, jbooleanArray>(),
58 "ScopedGlobalRef instantiated for invalid type");
124 operator bool()
const {
Definition ScopedGlobalRef.h:49
void reset(T ptr=NULL)
Definition ScopedGlobalRef.h:94
ScopedGlobalRef(T globalRef)
Definition ScopedGlobalRef.h:66
T get() const
Definition ScopedGlobalRef.h:117
ScopedGlobalRef & operator=(ScopedGlobalRef &&s) noexcept
Definition ScopedGlobalRef.h:81
ScopedGlobalRef(const ScopedGlobalRef &ref)=delete
ScopedGlobalRef(ScopedGlobalRef &&s) noexcept
Definition ScopedGlobalRef.h:76
ScopedGlobalRef()
Definition ScopedGlobalRef.h:71
T release()
Definition ScopedGlobalRef.h:108
~ScopedGlobalRef()
Definition ScopedGlobalRef.h:86
ScopedGlobalRef & operator=(const ScopedGlobalRef &other)=delete
T mGlobalRef
Definition ScopedGlobalRef.h:132
ScopedGlobalRef< T > make_global_ref(T globalRef)
Definition ScopedGlobalRef.h:136
JNIEXPORT JNIEnv * getCurrentEnv()
Definition corefunctions.cpp:45
void(* DeleteGlobalRef)(JNIEnv *, jobject)
Definition jni.h:184