Lines Matching defs:object

37 // Wrapper around a java object pointer, which includes the environment
38 // pointer in which the object "lives". This is used for passing down Java
40 // While an instance of this class does not own the underlying java object, it
50 // Creates a wrapper around the given object in the given JNI environment.
51 JavaObject(jobject object, JNIEnv* env);
62 // Access to the object (non-const as JNI functions are non-const).
63 jobject object() const {
67 // Resets this object to the NULL JavaObject.
77 // The object pointer (not owned).
80 // The reference count of this object
87 // object, which is then mapped to the correct instance here. It should not be
93 // Create a new ObjectPool for a specific object type. Pass the path to the
95 // field that will store the object's ID.
111 // Register a new C++ object with the pool. This does not affect the Java
113 // assignments. Pass true to owns if the object pool owns the object.
114 int RegisterObject(T* object, bool owns) {
116 objects_[id] = object;
122 // Return the object in the pool with the specified ID.
128 // Get the ID of a Java object. This ID can be used to look-up the C++
129 // object.
138 // Take a C++ object and wrap it with a given Java object. This will
139 // essentially set the ID member of the Java object to the ID of the C++
140 // object. Pass true to owns if the object pool owns the object.
150 // Remove the object with the given ID from this pool, and delete it. This
163 // Instantiates a new java object for this class. The Java class must have
210 // Java layer should own the object.
218 // the wrapped object or JNI_NULL if there was an error. Pass true to owns, if
219 // the Java layer should own the object.
231 // Use ConvertFromJava to obtain a C++ instance given a Java object. This
242 // Delete the native object given a Java instance. This should be called from
243 // the Java object's finalizer.
272 // Convert Java object to a (C) Value object.
273 Value ToCValue(JNIEnv* env, jobject object);
275 // Convert a (C) Value object to a Java object.
278 // Returns true, iff the passed object is an instance of the class specified
280 bool IsJavaInstanceOf(JNIEnv* env, jobject object,