WPILibC++ 2024.3.2
wpi::java::JLocal< T > Class Template Reference

Container class for cleaning up Java local references. More...

#include <wpi/jni_util.h>

Public Member Functions

 JLocal (JNIEnv *env, T obj)
 
 JLocal (const JLocal &)=delete
 
 JLocal (JLocal &&oth)
 
JLocaloperator= (const JLocal &)=delete
 
JLocaloperator= (JLocal &&oth)
 
 ~JLocal ()
 
 operator T ()
 
obj ()
 

Detailed Description

template<typename T>
class wpi::java::JLocal< T >

Container class for cleaning up Java local references.

The destructor calls DeleteLocalRef.

Constructor & Destructor Documentation

◆ JLocal() [1/3]

template<typename T >
wpi::java::JLocal< T >::JLocal ( JNIEnv *  env,
obj 
)
inline

◆ JLocal() [2/3]

template<typename T >
wpi::java::JLocal< T >::JLocal ( const JLocal< T > &  )
delete

◆ JLocal() [3/3]

template<typename T >
wpi::java::JLocal< T >::JLocal ( JLocal< T > &&  oth)
inline

◆ ~JLocal()

template<typename T >
wpi::java::JLocal< T >::~JLocal ( )
inline

Member Function Documentation

◆ obj()

template<typename T >
T wpi::java::JLocal< T >::obj ( )
inline

◆ operator T()

template<typename T >
wpi::java::JLocal< T >::operator T ( )
inline

◆ operator=() [1/2]

template<typename T >
JLocal & wpi::java::JLocal< T >::operator= ( const JLocal< T > &  )
delete

◆ operator=() [2/2]

template<typename T >
JLocal & wpi::java::JLocal< T >::operator= ( JLocal< T > &&  oth)
inline

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