LibreOffice Module bridges (master)  1
Public Member Functions | Private Attributes | List of all members
jni_uno::JLocalAutoRef Class Reference

#include <jni_base.h>

Collaboration diagram for jni_uno::JLocalAutoRef:
[legend]

Public Member Functions

 JLocalAutoRef (JNI_context const &jni)
 
 JLocalAutoRef (JNI_context const &jni, jobject jo)
 
 JLocalAutoRef (JLocalAutoRef &auto_ref)
 
 ~JLocalAutoRef ()
 
jobject get () const
 
bool is () const
 
jobject release ()
 
void reset (jobject jo)
 
JLocalAutoRefoperator= (JLocalAutoRef &auto_ref)
 

Private Attributes

JNI_context const & m_jni
 
jobject m_jo
 

Detailed Description

Definition at line 138 of file jni_base.h.

Constructor & Destructor Documentation

jni_uno::JLocalAutoRef::JLocalAutoRef ( JNI_context const &  jni)
inlineexplicit

Definition at line 144 of file jni_base.h.

jni_uno::JLocalAutoRef::JLocalAutoRef ( JNI_context const &  jni,
jobject  jo 
)
inlineexplicit

Definition at line 148 of file jni_base.h.

jni_uno::JLocalAutoRef::JLocalAutoRef ( JLocalAutoRef auto_ref)
inline

Definition at line 170 of file jni_base.h.

References m_jo.

jni_uno::JLocalAutoRef::~JLocalAutoRef ( )
inline

Definition at line 164 of file jni_base.h.

References m_jni, and m_jo.

Member Function Documentation

jobject jni_uno::JLocalAutoRef::get ( ) const
inline
bool jni_uno::JLocalAutoRef::is ( ) const
inline

Definition at line 157 of file jni_base.h.

Referenced by jni_uno::Bridge::handle_java_exc(), and jni_uno::Bridge::map_to_uno().

JLocalAutoRef & jni_uno::JLocalAutoRef::operator= ( JLocalAutoRef auto_ref)
inline

Definition at line 194 of file jni_base.h.

References assert(), jni_uno::JNI_context::get_jni_env(), m_jni, m_jo, and reset().

jobject jni_uno::JLocalAutoRef::release ( )
inline

Definition at line 177 of file jni_base.h.

References m_jo.

Referenced by jni_uno::Bridge::map_to_java().

void jni_uno::JLocalAutoRef::reset ( jobject  jo)
inline

Member Data Documentation

JNI_context const& jni_uno::JLocalAutoRef::m_jni
private

Definition at line 140 of file jni_base.h.

Referenced by operator=(), reset(), and ~JLocalAutoRef().

jobject jni_uno::JLocalAutoRef::m_jo
private

Definition at line 141 of file jni_base.h.

Referenced by get(), JLocalAutoRef(), operator=(), release(), reset(), and ~JLocalAutoRef().


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