LibreOffice Module connectivity (master) 1
Public Member Functions | Private Attributes | List of all members
connectivity::jdbc::GlobalRef< T > Class Template Reference

helper class to hold a local ref to a JNI object More...

#include <GlobalRef.hxx>

Inheritance diagram for connectivity::jdbc::GlobalRef< T >:
[legend]

Public Member Functions

 GlobalRef ()
 
 GlobalRef (const GlobalRef &_source)
 
GlobalRefoperator= (const GlobalRef &_source)
 
 ~GlobalRef () COVERITY_NOEXCEPT_FALSE
 
void reset ()
 
void set (JNIEnv &_environment, T _object)
 
void set (LocalRef< T > &_object)
 
get () const
 
bool is () const
 

Private Attributes

m_object
 

Detailed Description

template<typename T>
class connectivity::jdbc::GlobalRef< T >

helper class to hold a local ref to a JNI object

Definition at line 31 of file GlobalRef.hxx.

Constructor & Destructor Documentation

◆ GlobalRef() [1/2]

template<typename T >
connectivity::jdbc::GlobalRef< T >::GlobalRef ( )
inline

Definition at line 34 of file GlobalRef.hxx.

◆ GlobalRef() [2/2]

template<typename T >
connectivity::jdbc::GlobalRef< T >::GlobalRef ( const GlobalRef< T > &  _source)
inline

Definition at line 39 of file GlobalRef.hxx.

◆ ~GlobalRef()

template<typename T >
connectivity::jdbc::GlobalRef< T >::~GlobalRef ( )
inline

Definition at line 55 of file GlobalRef.hxx.

References connectivity::jdbc::GlobalRef< T >::reset().

Member Function Documentation

◆ get()

template<typename T >
T connectivity::jdbc::GlobalRef< T >::get ( ) const
inline

◆ is()

template<typename T >
bool connectivity::jdbc::GlobalRef< T >::is ( ) const
inline

Definition at line 89 of file GlobalRef.hxx.

References connectivity::jdbc::GlobalRef< T >::m_object.

◆ operator=()

template<typename T >
GlobalRef & connectivity::jdbc::GlobalRef< T >::operator= ( const GlobalRef< T > &  _source)
inline

◆ reset()

template<typename T >
void connectivity::jdbc::GlobalRef< T >::reset ( )
inline

◆ set() [1/2]

template<typename T >
void connectivity::jdbc::GlobalRef< T >::set ( JNIEnv &  _environment,
_object 
)
inline

◆ set() [2/2]

template<typename T >
void connectivity::jdbc::GlobalRef< T >::set ( LocalRef< T > &  _object)
inline

Member Data Documentation

◆ m_object

template<typename T >
T connectivity::jdbc::GlobalRef< T >::m_object
private

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