OpenVPN 3 Core Library
|
Adapter object for RCWeak::Controller <—> RCPtr. More...
#include <rc.hpp>
Public Member Functions | |
ControllerRef (RCWeak *parent) noexcept | |
Construct a new RCWeak<RCImpl>::ControllerRef object. | |
void | operator++ () noexcept |
Increments the ref count. | |
olong | operator-- () noexcept |
Decrements the ref count. | |
Public Attributes | |
Controller::Ptr | controller |
object containing actual refcount | |
Adapter object for RCWeak::Controller <—> RCPtr.
RCImpl | the injected ref count implementation |
Serves as an adapter that changes the normal RCPtr/RC interaction such that the embedded controller rc member is used as the ref count.
|
explicitnoexcept |
Construct a new RCWeak<RCImpl>::ControllerRef object.
RCImpl | The ref count implementation |
parent | raw pointer to RCWeak enabled type |
Creates a ControllerRef and associates that adapter with the specified instance
|
noexcept |
|
noexcept |
Controller::Ptr openvpn::RCWeak< RCImpl >::ControllerRef::controller |