AVPKit
com::avpkit::ferry::RefCountedTester Class Reference

Internal Only. More...

#include <RefCountedTester.h>

Inheritance diagram for com::avpkit::ferry::RefCountedTester:
Collaboration diagram for com::avpkit::ferry::RefCountedTester:

Static Public Member Functions

static RefCountedTestermake (RefCountedTester *objToAcquire)
 Acquires a reference to a passed in object, and returns the new object. More...
 

Additional Inherited Members

- Public Member Functions inherited from com::avpkit::ferry::RefCounted
virtual int32_t acquire ()
 Internal Only. More...
 
virtual int32_t release ()
 Internal Only. More...
 
virtual RefCountedcopyReference ()
 Create a new Java object that refers to the same native object. More...
 
virtual int32_t getCurrentRefCount ()
 Return the current reference count on this object. More...
 
void setJavaAllocator (void *allocator)
 This method is public but not part of the standard API. More...
 
void * getJavaAllocator ()
 This method is public but not part of the standard API. More...
 
- Protected Member Functions inherited from com::avpkit::ferry::RefCounted
virtual void destroy ()
 This method is called by RefCounted objects when their Ref Count reaches zero and they are about to be destroyed.
 
- Protected Attributes inherited from com::avpkit::ferry::RefCounted
AtomicIntegermRefCount
 This is the internal reference count, represented as an AtomicInteger to make sure it is thread safe.
 
void * mAllocator
 Not part of public API.
 

Detailed Description

Internal Only.

This object exists in order for the ferry test libraries to test the memory management functionality of the RefCounted class from Java.

It is NOT part of the public API.

Definition at line 39 of file RefCountedTester.h.

Member Function Documentation

◆ make()

RefCountedTester * com::avpkit::ferry::RefCountedTester::make ( RefCountedTester objToAcquire)
static

Acquires a reference to a passed in object, and returns the new object.

This, when wrapped by Swig, will be wrapped in a new Java object.

Definition at line 37 of file RefCountedTester.cpp.

38 {
39  if (obj) obj->acquire();
40  return obj;
41 }

References com::avpkit::ferry::RefCounted::acquire().


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