MPD
0.20.15
|
Container for a global reference to a JNI object that gets initialised and deinitialised explicitly. More...
#include <Ref.hxx>
Public Member Functions | |
constexpr | TrivialRef () |
TrivialRef (const TrivialRef &other)=delete | |
TrivialRef & | operator= (const TrivialRef &other)=delete |
bool | IsDefined () const |
void | Set (JNIEnv *env, T _value) |
Obtain a global reference on the specified object and store it. More... | |
void | Clear (JNIEnv *env) |
Release the global reference and clear this object. More... | |
void | ClearOptional (JNIEnv *env) |
Release the global reference and clear this object. More... | |
T | Get () const |
operator T () const | |
Container for a global reference to a JNI object that gets initialised and deinitialised explicitly.
Since there is no implicit initialisation in the default constructor, this is a trivial C++ class. It should only be used for global variables that are implicitly initialised with zeroes.
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
|
inline |