Apache Ignite C++
Public Member Functions | List of all members
ignite::jni::JavaGlobalRef Class Reference

Represents global reference to Java object. More...

#include <utils.h>

Public Member Functions

 JavaGlobalRef ()
 Default constructor.
 
 JavaGlobalRef (common::concurrent::SharedPointer< java::JniContext > &ctx, jobject obj)
 Constructor. More...
 
 JavaGlobalRef (const JavaGlobalRef &other)
 Copy constructor. More...
 
JavaGlobalRefoperator= (const JavaGlobalRef &other)
 Assignment operator. More...
 
 ~JavaGlobalRef ()
 Destructor.
 
jobject Get ()
 Get object. More...
 

Detailed Description

Represents global reference to Java object.

Constructor & Destructor Documentation

◆ JavaGlobalRef() [1/2]

ignite::jni::JavaGlobalRef::JavaGlobalRef ( common::concurrent::SharedPointer< java::JniContext > &  ctx,
jobject  obj 
)
inline

Constructor.

Parameters
ctxJNI context.
objJava object.

◆ JavaGlobalRef() [2/2]

ignite::jni::JavaGlobalRef::JavaGlobalRef ( const JavaGlobalRef other)
inline

Copy constructor.

Parameters
otherOther instance.

Member Function Documentation

◆ Get()

jobject ignite::jni::JavaGlobalRef::Get ( )
inline

Get object.

Returns
Object.

◆ operator=()

JavaGlobalRef& ignite::jni::JavaGlobalRef::operator= ( const JavaGlobalRef other)
inline

Assignment operator.

Parameters
otherOther instance.
Returns
*this.

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