Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Static Public Member Functions | List of all members
JNIGlobalRef Class Reference

#include <jni_mem.hpp>

Collaboration diagram for JNIGlobalRef:

Public Member Functions

 JNIGlobalRef () noexcept
 
 JNIGlobalRef (jobject object)
 
 JNIGlobalRef (const JNIGlobalRef &o)
 
 JNIGlobalRef (JNIGlobalRef &&o) noexcept
 
JNIGlobalRefoperator= (const JNIGlobalRef &o)
 
JNIGlobalRefoperator= (JNIGlobalRef &&o) noexcept
 
 ~JNIGlobalRef () noexcept
 
void clear () noexcept
 Clears the java reference, i.e. More...
 
jobject operator* () noexcept
 
jobject getObject () const noexcept
 
jclass getClass () const noexcept
 
bool operator== (const JNIGlobalRef &rhs) const noexcept
 
bool operator!= (const JNIGlobalRef &rhs) const noexcept
 

Static Public Member Functions

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

Detailed Description

Definition at line 75 of file jni_mem.hpp.

Constructor & Destructor Documentation

◆ JNIGlobalRef() [1/4]

JNIGlobalRef::JNIGlobalRef ( )
noexcept

◆ JNIGlobalRef() [2/4]

JNIGlobalRef::JNIGlobalRef ( jobject  object)

◆ JNIGlobalRef() [3/4]

JNIGlobalRef::JNIGlobalRef ( const JNIGlobalRef o)

◆ JNIGlobalRef() [4/4]

JNIGlobalRef::JNIGlobalRef ( JNIGlobalRef &&  o)
noexcept

◆ ~JNIGlobalRef()

JNIGlobalRef::~JNIGlobalRef ( )
noexcept

Member Function Documentation

◆ check()

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

Definition at line 80 of file jni_mem.hpp.

Here is the caller graph for this function:

◆ clear()

void JNIGlobalRef::clear ( )
noexcept

Clears the java reference, i.e.

nulling it, without deleting the global reference via JNI.

Here is the caller graph for this function:

◆ getClass()

jclass JNIGlobalRef::getClass ( ) const
inlinenoexcept

Definition at line 110 of file jni_mem.hpp.

Here is the caller graph for this function:

◆ getObject()

jobject JNIGlobalRef::getObject ( ) const
inlinenoexcept

Definition at line 108 of file jni_mem.hpp.

Here is the caller graph for this function:

◆ operator!=()

bool JNIGlobalRef::operator!= ( const JNIGlobalRef rhs) const
inlinenoexcept

Definition at line 114 of file jni_mem.hpp.

◆ operator*()

jobject JNIGlobalRef::operator* ( )
inlinenoexcept

Definition at line 105 of file jni_mem.hpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator==()

bool JNIGlobalRef::operator== ( const JNIGlobalRef rhs) const
noexcept

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