jaulib v1.3.6
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
jau::jni::JNIGlobalRef Class Reference

#include <jni_mem.hpp>

Collaboration diagram for jau::jni::JNIGlobalRef:

Public Member Functions

 JNIGlobalRef () noexcept
 
 JNIGlobalRef (const JNIGlobalRef &o)
 
 JNIGlobalRef (JNIGlobalRef &&o) noexcept
 
 JNIGlobalRef (jobject object)
 
 ~JNIGlobalRef () noexcept
 
jclass getClass () const noexcept
 
jobject getObject () const noexcept
 
jobjectRefType getObjectRefType () const noexcept
 Should return JNIGlobalRefType if the object is valid or JNIInvalidRefType if the object is nullptr.
 
bool isValidReference () const noexcept
 
bool operator!= (const JNIGlobalRef &rhs) const noexcept
 
jobject operator* () noexcept
 
JNIGlobalRefoperator= (const JNIGlobalRef &o)
 
JNIGlobalRefoperator= (JNIGlobalRef &&o) noexcept
 
bool operator== (const JNIGlobalRef &rhs) const noexcept
 

Static Public Member Functions

static void check (jobject object, const char *file, int line)
 

Friends

class JavaGlobalObj
 

Detailed Description

Definition at line 84 of file jni_mem.hpp.

Constructor & Destructor Documentation

◆ JNIGlobalRef() [1/4]

jau::jni::JNIGlobalRef::JNIGlobalRef ( )
noexcept
Here is the caller graph for this function:

◆ JNIGlobalRef() [2/4]

jau::jni::JNIGlobalRef::JNIGlobalRef ( jobject object)

◆ JNIGlobalRef() [3/4]

jau::jni::JNIGlobalRef::JNIGlobalRef ( const JNIGlobalRef & o)

◆ JNIGlobalRef() [4/4]

jau::jni::JNIGlobalRef::JNIGlobalRef ( JNIGlobalRef && o)
noexcept

◆ ~JNIGlobalRef()

jau::jni::JNIGlobalRef::~JNIGlobalRef ( )
noexcept

Member Function Documentation

◆ check()

static void jau::jni::JNIGlobalRef::check ( jobject object,
const char * file,
int line )
inlinestatic

Definition at line 91 of file jni_mem.hpp.

◆ operator=() [1/2]

JNIGlobalRef & jau::jni::JNIGlobalRef::operator= ( const JNIGlobalRef & o)

◆ operator=() [2/2]

JNIGlobalRef & jau::jni::JNIGlobalRef::operator= ( JNIGlobalRef && o)
noexcept

◆ getObjectRefType()

jobjectRefType jau::jni::JNIGlobalRef::getObjectRefType ( ) const
noexcept

Should return JNIGlobalRefType if the object is valid or JNIInvalidRefType if the object is nullptr.

Here is the caller graph for this function:

◆ isValidReference()

bool jau::jni::JNIGlobalRef::isValidReference ( ) const
inlinenoexcept

Definition at line 116 of file jni_mem.hpp.

Here is the caller graph for this function:

◆ operator*()

jobject jau::jni::JNIGlobalRef::operator* ( )
noexcept

◆ getObject()

jobject jau::jni::JNIGlobalRef::getObject ( ) const
noexcept
Here is the caller graph for this function:

◆ getClass()

jclass jau::jni::JNIGlobalRef::getClass ( ) const
inlinenoexcept

Definition at line 125 of file jni_mem.hpp.

Here is the caller graph for this function:

◆ operator==()

bool jau::jni::JNIGlobalRef::operator== ( const JNIGlobalRef & rhs) const
noexcept

◆ operator!=()

bool jau::jni::JNIGlobalRef::operator!= ( const JNIGlobalRef & rhs) const
inlinenoexcept

Definition at line 129 of file jni_mem.hpp.

Friends And Related Symbol Documentation

◆ JavaGlobalObj

friend class JavaGlobalObj
friend

Definition at line 86 of file jni_mem.hpp.


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