Lines Matching refs:JavaRef

39 template<typename T> class JavaRef;  variable
45 class BASE_EXPORT JavaRef<jobject> {
48 constexpr JavaRef() : obj_(nullptr) {} in JavaRef() function
53 constexpr JavaRef(std::nullptr_t) : JavaRef() {} in JavaRef() function
57 ~JavaRef() {} in ~JavaRef()
68 JavaRef(JNIEnv* env, jobject obj);
71 JavaRef(JNIEnv* env, jobject obj) : obj_(obj) {}
74 void swap(JavaRef& other) { std::swap(obj_, other.obj_); } in swap()
87 DISALLOW_COPY_AND_ASSIGN(JavaRef);
94 class JavaRef : public JavaRef<jobject> {
96 JavaRef() {} in JavaRef() function
97 JavaRef(std::nullptr_t) : JavaRef<jobject>(nullptr) {} in JavaRef() function
98 ~JavaRef() {} in ~JavaRef()
100 T obj() const { return static_cast<T>(JavaRef<jobject>::obj()); } in obj()
103 JavaRef(JNIEnv* env, T obj) : JavaRef<jobject>(env, obj) {} in JavaRef() function
106 DISALLOW_COPY_AND_ASSIGN(JavaRef);
114 class JavaParamRef : public JavaRef<T> {
118 JavaParamRef(JNIEnv* env, T obj) : JavaRef<T>(env, obj) {} in JavaParamRef()
124 JavaParamRef(std::nullptr_t) : JavaRef<T>(nullptr) {} in JavaParamRef()
130 operator T() const { return JavaRef<T>::obj(); } in T()
147 class ScopedJavaLocalRef : public JavaRef<T> {
163 explicit ScopedJavaLocalRef(const JavaRef<T>& other) : env_(nullptr) { in ScopedJavaLocalRef()
171 ScopedJavaLocalRef(JNIEnv* env, T obj) : JavaRef<T>(env, obj), env_(env) {} in ScopedJavaLocalRef()
199 void Reset(const JavaRef<T>& other) { in Reset()
235 class ScopedJavaGlobalRef : public JavaRef<T> {
248 explicit ScopedJavaGlobalRef(const JavaRef<T>& other) { this->Reset(other); } in ScopedJavaGlobalRef()
266 void Reset(const JavaRef<T>& other) { this->Reset(nullptr, other.obj()); } in Reset()