#include <Pointer.h>
Public Member Functions | |
Pointer (Object< Class > *const anObject=nullptr) | |
Class * | operator-> () const |
Class & | operator* () const |
const Class * | getRaw () const |
Class * | getRaw () |
operator bool () const | |
bool | operator! () const |
bool | operator== (const RefCount &p) const |
bool | operator== (const Other *const p) const |
bool | operator!= (const RefCount &p) const |
bool | operator!= (const Other *const p) const |
Static Public Member Functions | |
static auto | Make (Args &&... args) |
Private Types | |
typedef RefCount< Object< Class > > | Base |
Private Member Functions | |
void | dereference (Object< Class > const *newP=nullptr) |
void | reference (const RefCount &p) |
Private Attributes | |
Object< Class > const * | p_ |
Detailed Description
class Ipc::Mem::Pointer< Class >
uses a refcounted pointer to Object<Class> as a parent, but translates its API to return raw Class pointers
Member Typedef Documentation
◆ Base
|
private |
Constructor & Destructor Documentation
◆ Pointer()
|
inlineexplicit |
Member Function Documentation
◆ dereference()
|
inlineprivateinherited |
Definition at line 112 of file RefCount.h.
◆ getRaw() [1/2]
|
inline |
Definition at line 93 of file Pointer.h.
References RefCount< Object< Class > >::getRaw().
◆ getRaw() [2/2]
|
inline |
Definition at line 92 of file Pointer.h.
References RefCount< Object< Class > >::getRaw().
◆ Make()
creates a new C object using given C constructor arguments (if any)
- Returns
- a refcounting pointer to the created object
Definition at line 34 of file RefCount.h.
◆ operator bool()
Definition at line 78 of file RefCount.h.
◆ operator!()
Definition at line 80 of file RefCount.h.
◆ operator!=() [1/2]
|
inlineinherited |
Definition at line 106 of file RefCount.h.
◆ operator!=() [2/2]
|
inlineinherited |
Definition at line 95 of file RefCount.h.
◆ operator*()
|
inline |
Definition at line 91 of file Pointer.h.
References RefCount< Object< Class > >::operator*().
◆ operator->()
|
inline |
Definition at line 90 of file Pointer.h.
References RefCount< Object< Class > >::operator->().
◆ operator==() [1/2]
Definition at line 100 of file RefCount.h.
◆ operator==() [2/2]
|
inlineinherited |
Definition at line 91 of file RefCount.h.
◆ reference()
|
inlineprivateinherited |
Definition at line 124 of file RefCount.h.
Member Data Documentation
◆ p_
Definition at line 129 of file RefCount.h.
The documentation for this class was generated from the following file:
- src/ipc/mem/Pointer.h