Stay organized with collections
Save and categorize content based on your preferences.
ndk::SharedRefBase
#include <binder_interface_utils.h>
Binder analog to using std::shared_ptr for an internally held refcount.
Summary
ref must be called at least one time during the lifetime of this object. The recommended way to construct this object is with SharedRefBase::make.
If you need a "this" shared reference analogous to shared_from_this, use this->ref().
Inheritance
Direct Known Subclasses:
ndk::ICInterface
Public functions
|
ref()
|
A shared_ptr must be held to this object when this is called.
|
ref()
|
std::shared_ptr< CHILD >
Convenience method for a ref (see above) which automatically casts to the desired child type.
|
Public static functions
|
make(Args &&... args)
|
std::shared_ptr< T >
Convenience method for making an object directly with a reference.
|
operator delete(void *p)
|
void
|
Public functions
SharedRefBase
SharedRefBase()
ref
std::shared_ptr< SharedRefBase > ref()
A shared_ptr must be held to this object when this is called.
This must be called once during the lifetime of this object.
ref
std::shared_ptr< CHILD > ref()
Convenience method for a ref (see above) which automatically casts to the desired child type.
~SharedRefBase
virtual ~SharedRefBase()
Public static functions
make
std::shared_ptr< T > make(
Args &&... args
)
Convenience method for making an object directly with a reference.
operator delete
void operator delete(
void *p
)
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-17 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-04-17 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-17 UTC."]]