PLCnext API Documentation  21.9.0.40
Public Types | Public Member Functions | List of all members
Arp::PimplPtr< T, true > Class Template Reference

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)
 Copy constructor. More...
 
 PimplPtr (PimplPtr &&arg) noexcept
 Move constructor. More...
 
PimplPtroperator= (const PimplPtr &arg)
 Assignment operator. More...
 
PimplPtroperator= (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...
 

Constructor & Destructor Documentation

◆ PimplPtr() [1/3]

template<class T >
template<class ... Args>
Arp::PimplPtr< T, true >::PimplPtr ( Args &&...  args)
explicit

Constructs an PImpl instance using the supplied arguments.

◆ PimplPtr() [2/3]

template<class T >
Arp::PimplPtr< T, true >::PimplPtr ( const PimplPtr< T, true > &  arg)

Copy constructor.

◆ PimplPtr() [3/3]

template<class T >
Arp::PimplPtr< T, true >::PimplPtr ( PimplPtr< T, true > &&  arg)
noexcept

Move constructor.

◆ ~PimplPtr()

template<class T >
Arp::PimplPtr< T, true >::~PimplPtr ( void  )

Destructs this instance and frees all resources.

Member Function Documentation

◆ operator*() [1/2]

template<class T >
Impl& Arp::PimplPtr< T, true >::operator* ( void  )

Gets the reference to the Impl instance for none const objects.

◆ operator*() [2/2]

template<class T >
const Impl& Arp::PimplPtr< T, true >::operator* ( void  ) const

Gets the reference to the const Impl instance for const objects.

◆ operator->() [1/2]

template<class T >
Impl* Arp::PimplPtr< T, true >::operator-> ( void  )

Gets the pointer to the Impl instance for none const objects.

◆ operator->() [2/2]

template<class T >
const Impl* Arp::PimplPtr< T, true >::operator-> ( void  ) const

Gets the pointer to the const Impl instance for const objects.

◆ operator=() [1/2]

template<class T >
PimplPtr& Arp::PimplPtr< T, true >::operator= ( const PimplPtr< T, true > &  arg)

Assignment operator.

◆ operator=() [2/2]

template<class T >
PimplPtr& Arp::PimplPtr< T, true >::operator= ( PimplPtr< T, true > &&  arg)
noexcept

Assignment move operator.


The documentation for this class was generated from the following file: