GlobalReference< T > Class Template Reference

Global Reference. More...

#include <JNIReferences.h>

List of all members.

Public Member Functions

 GlobalReference (JNIEnv *env, T t)
 Constructs new GlobalReference object.
virtual ~GlobalReference ()
 Destructs GlobalReference object.
ref () const
 Returns global reference.

Protected Attributes

JNIEnv * m_env
m_obj


Detailed Description

template<typename T>
class GlobalReference< T >

Global Reference.

Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
Version:
0.2.0

Constructor & Destructor Documentation

template<typename T>
GlobalReference< T >::GlobalReference ( JNIEnv *  env,
t 
) [inline]

Constructs new GlobalReference object.

Parameters:
env the JNIEnv pointer
t the reference type


Member Function Documentation

template<typename T>
T GlobalReference< T >::ref (  )  const [inline]

Returns global reference.

Returns:
global reference


Copyright © 2007 ETF and contributors. All Rights Reserved.