Codemesh Runtime v3 C++ API Reference  3.9.205
Public Types | Public Member Functions | List of all members
xmog_remote_ref_map Class Reference

A utility class that tracks remote object references with a reference count. More...

#include <xmog_remote_ref_map.h>

Inheritance diagram for xmog_remote_ref_map:
Inheritance graph
[legend]

Public Types

typedef jobject Key
 
typedef xmog_remote_refValue
 
typedef ACE_Map_Manager< Key, Value, ACE_Null_Mutex > ObjectFrame
 

Public Member Functions

 xmog_remote_ref_map (xmog_remote_ref_map *parentFrame)
 Constructs a reference map.
 
int get_data (jobject _ref, void **pData, size_t *pLength)
 Returns the cached data associated with a reference.
 
int delete_global (jobject _ref)
 Deletes a global reference from the map. More...
 
jobject new_global (jobject _ref, void *data=NULL, size_t size=0)
 Adds a global reference to the map.
 
int delete_local (jobject _ref)
 Deletes a local reference from the map. More...
 
jobject new_local (jobject _ref, void *data=NULL, size_t size=0)
 Adds a local reference to the map.
 
int delete_weakglobal (jobject _ref)
 Deletes a weak global reference from the map. More...
 
jobject new_weakglobal (jobject _ref, void *data=NULL, size_t size=0)
 Adds a weak global reference to the map.
 
xmog_remote_ref_mappush_frame ()
 Pushes a new frame on the stack and returns the new frame.
 
xmog_remote_ref_mappop_frame ()
 Pops a frame from the stack and returns the parent frame.
 

Detailed Description

A utility class that tracks remote object references with a reference count.

Member Function Documentation

◆ delete_global()

int xmog_remote_ref_map::delete_global ( jobject  _ref)

Deletes a global reference from the map.

Returns
-1 on error, 0 in nothing else to do, 1 if further cleanup is required

◆ delete_local()

int xmog_remote_ref_map::delete_local ( jobject  _ref)

Deletes a local reference from the map.

Returns
-1 on error, 0 in nothing else to do, 1 if further cleanup is required

◆ delete_weakglobal()

int xmog_remote_ref_map::delete_weakglobal ( jobject  _ref)

Deletes a weak global reference from the map.

Returns
-1 on error, 0 in nothing else to do, 1 if further cleanup is required

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

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.