PLCnext API Documentation
21.9.0.40
|
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> | |
PimplPtr (Args &&... args) | |
Constructs an PImpl instance using the supplied arguments. More... | |
PimplPtr (const PimplPtr &arg)=delete | |
Copy constructor. More... | |
PimplPtr (PimplPtr &&arg) noexcept | |
Move constructor. More... | |
PimplPtr & | operator= (const PimplPtr &arg)=delete |
Assignment operator. More... | |
PimplPtr & | operator= (PimplPtr &&arg) noexcept |
Assignment move operator. More... | |
~PimplPtr (void) | |
Destructs this instance and frees all resources. More... | |
Impl * | operator-> (void) |
Gets the pointer to the Impl instance for none const objects. More... | |
const Impl * | operator-> (void) const |
Gets the pointer to the const Impl instance for const objects. More... | |
Impl & | operator* (void) |
Gets the reference to the Impl instance for none const objects. More... | |
const Impl & | operator* (void) const |
Gets the reference to the const Impl instance for const objects. More... | |
Small wrapper class to ensure const correctness using PImpl pattern.
|
explicit |
Constructs an PImpl instance using the supplied arguments.
|
delete |
Copy constructor.
|
noexcept |
Move constructor.
Arp::PimplPtr< T, Copyable >::~PimplPtr | ( | void | ) |
Destructs this instance and frees all resources.
Impl& Arp::PimplPtr< T, Copyable >::operator* | ( | void | ) |
Gets the reference to the Impl instance for none const objects.
const Impl& Arp::PimplPtr< T, Copyable >::operator* | ( | void | ) | const |
Gets the reference to the const Impl instance for const objects.
Impl* Arp::PimplPtr< T, Copyable >::operator-> | ( | void | ) |
Gets the pointer to the Impl instance for none const objects.
const Impl* Arp::PimplPtr< T, Copyable >::operator-> | ( | void | ) | const |
Gets the pointer to the const Impl instance for const objects.
|
delete |
Assignment operator.
|
noexcept |
Assignment move operator.