|
CTL
0.6.1
Computed Tomography Library
|
Extends std::unique_ptr<T> with copy operations using the clone method of type T.
More...
#include <copyableuniqueptr.h>


Public Member Functions | |
| CopyableUniquePtr (std::unique_ptr< T > uniquePtr) noexcept | |
| CopyableUniquePtr (const CopyableUniquePtr< T > &other) | |
| CopyableUniquePtr & | operator= (const CopyableUniquePtr< T > &other) |
| CopyableUniquePtr (CopyableUniquePtr< T > &&other)=default | |
| CopyableUniquePtr & | operator= (CopyableUniquePtr< T > &&other)=default |
| bool | isNull () const noexcept |
| std::unique_ptr< T > & | wrapped () noexcept |
| const std::unique_ptr< T > & | wrapped () const noexcept |
Extends std::unique_ptr<T> with copy operations using the clone method of type T.
|
noexcept |
Constructs a new instance by wrapping an std::unique_ptr.
| CTL::CopyableUniquePtr< T >::CopyableUniquePtr | ( | const CopyableUniquePtr< T > & | other | ) |
Constructs a new instance by calling the clone method of other or, if other is a null pointer the object is initialized with nullptr.
|
noexcept |
Returns true if only a null pointer is managed and false otherwise.
| CopyableUniquePtr< T > & CTL::CopyableUniquePtr< T >::operator= | ( | const CopyableUniquePtr< T > & | other | ) |
Copy-assignment of other to the current object by calling the clone method of other. If other is a null pointer, it sets the managed object to nullptr. Note that the old managed object (before assignment) gets destroyed.
|
noexcept |
Returns a reference to the wrapped std::unique_ptr.
|
noexcept |
Returns a const reference to the wrapped std::unique_ptr.
1.8.16