Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

AllocGlobalRef Class Reference

JNI global reference. More...

#include <allocGlobalRef.h>

Inheritance diagram for AllocGlobalRef::

LI1 ListItem RefCount List of all members.

Public Methods

 AllocGlobalRef ()
 Default constructor.

virtual ~AllocGlobalRef ()
 Destructor.

const jobject & getKey (jobject &key)
 Retrieves object's key. More...

int operator== (const jobject &key)
 Compares object with given key. More...

void * operator new (size_t sz)
 Overloaded new() operator.

void operator delete (void *unit)
 Overloaded delete() operator.


Static Public Methods

int hashKey (const jobject &key)
 Hash function. More...


Public Attributes

AllocInstanceinstance
 object referred to by the global reference.

jobject refId
 JNI global reference.


Static Private Attributes

Allocator _allocator
 allocator.


Detailed Description

JNI global reference.

This class consists of data about JNI global reference acquired by receiving a JVMPI_EVENT_JNI_GLOBALREF_ALLOC or a JVMPI_EVENT_JNI_WEAK_GLOBALREF_ALLOC event.

Author:
Marek Przeczek

Definition at line 49 of file allocGlobalRef.h.


Member Function Documentation

const jobject& AllocGlobalRef::getKey jobject &    key [inline]
 

Retrieves object's key.

Parameters:
key  where to store the key
Returns:
key
See also:
Hash

Definition at line 79 of file allocGlobalRef.h.

int AllocGlobalRef::hashKey const jobject &    key [inline, static]
 

Hash function.

Parameters:
key  reference to a key
Returns:
hash value

Definition at line 98 of file allocGlobalRef.h.

int AllocGlobalRef::operator== const jobject &    key [inline]
 

Compares object with given key.

Parameters:
key  key
Returns:
1 (true); 0 (false)
See also:
Hash

Definition at line 90 of file allocGlobalRef.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 28 14:53:27 2002 for Java Profiler Dynamic Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001