PLCnext API Documentation 23.6.0.37
|
Small wrapper class to ensure const correctness using PImpl pattern. More...
#include <PimplPtr.hxx>
Public Types | |
using | Impl = T |
using | ImplPtr = std::unique_ptr< Impl > |
Public Member Functions | |
template<class ... Args> | |
ARP_CXX_SYMBOL_EXPORT | PimplPtr (Args &&... args) |
Constructs an PImpl instance using the supplied arguments. | |
PimplPtr (const PimplPtr &arg)=delete | |
Copy constructor. | |
ARP_CXX_SYMBOL_EXPORT | PimplPtr (PimplPtr &&arg) noexcept |
Move constructor. | |
PimplPtr & | operator= (const PimplPtr &arg)=delete |
Assignment operator. | |
ARP_CXX_SYMBOL_EXPORT PimplPtr & | operator= (PimplPtr &&arg) noexcept |
Assignment move operator. | |
ARP_CXX_SYMBOL_EXPORT | ~PimplPtr (void) |
Destructs this instance and frees all resources. | |
ARP_CXX_SYMBOL_EXPORT Impl * | operator-> (void) |
Gets the pointer to the Impl instance for none const objects. | |
ARP_CXX_SYMBOL_EXPORT const Impl * | operator-> (void) const |
Gets the pointer to the const Impl instance for const objects. | |
ARP_CXX_SYMBOL_EXPORT Impl & | operator* (void) |
Gets the reference to the Impl instance for none const objects. | |
ARP_CXX_SYMBOL_EXPORT const Impl & | operator* (void) const |
Gets the reference to the const Impl instance for const objects. | |
ARP_CXX_SYMBOL_EXPORT | operator bool (void) const noexcept |
Checks if the pointer points to a valid object | |
Small wrapper class to ensure const correctness using PImpl pattern.