GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
java_local_ref< T > Class Template Reference
Collaboration diagram for java_local_ref< T >:

Public Member Functions

 java_local_ref (JNIEnv *_env)
 
 java_local_ref (JNIEnv *_env, T obj)
 
 ~java_local_ref (void)
 
void detach (void)
 
 operator bool () const
 
 operator T ()
 
T & operator= (T obj)
 

Protected Attributes

bool detached
 
JNIEnv * env
 
jobj
 

Private Member Functions

 java_local_ref (void)
 
void release (void)
 

Detailed Description

template<typename T>
class java_local_ref< T >

Definition at line 97 of file ov-java.cc.

Constructor & Destructor Documentation

◆ java_local_ref() [1/3]

template<typename T >
java_local_ref< T >::java_local_ref ( JNIEnv *  _env)
inline

Definition at line 101 of file ov-java.cc.

◆ java_local_ref() [2/3]

template<typename T >
java_local_ref< T >::java_local_ref ( JNIEnv *  _env,
obj 
)
inline

Definition at line 104 of file ov-java.cc.

◆ ~java_local_ref()

template<typename T >
java_local_ref< T >::~java_local_ref ( void  )
inline

Definition at line 107 of file ov-java.cc.

References java_local_ref< T >::release().

◆ java_local_ref() [3/3]

template<typename T >
java_local_ref< T >::java_local_ref ( void  )
inlineprivate

Definition at line 134 of file ov-java.cc.

Member Function Documentation

◆ detach()

template<typename T >
void java_local_ref< T >::detach ( void  )
inline

Definition at line 122 of file ov-java.cc.

References java_local_ref< T >::detached.

Referenced by compute_array_dimensions().

◆ operator bool()

template<typename T >
java_local_ref< T >::operator bool ( ) const
inline

Definition at line 119 of file ov-java.cc.

References java_local_ref< T >::jobj.

◆ operator T()

template<typename T >
java_local_ref< T >::operator T ( )
inline

Definition at line 120 of file ov-java.cc.

References java_local_ref< T >::jobj.

◆ operator=()

template<typename T >
T& java_local_ref< T >::operator= ( obj)
inline

◆ release()

template<typename T >
void java_local_ref< T >::release ( void  )
inlineprivate

Member Data Documentation

◆ detached

template<typename T >
bool java_local_ref< T >::detached
protected

◆ env

template<typename T >
JNIEnv* java_local_ref< T >::env
protected

Definition at line 142 of file ov-java.cc.

Referenced by java_local_ref< T >::release().

◆ jobj


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