HEaaN
Crypto Lab's great homomorphic encryption library
|
A class holding unique_ptr but is copied with deepcopy. More...
#include <Pointer.hpp>
Public Member Functions | |
template<class... U> | |
Pointer (U &&...args) | |
~Pointer () | |
Pointer (Pointer const &other) | |
Pointer (Pointer &&other) noexcept | |
Pointer & | operator= (const Pointer &other) |
Pointer & | operator= (Pointer &&other) noexcept |
T & | operator* () |
T * | operator-> () |
const T & | operator* () const |
const T * | operator-> () const |
Private Attributes | |
std::unique_ptr< T > | ptr_ |
A class holding unique_ptr but is copied with deepcopy.
This class helps implementing PIMPL idiom. Include Pointer.tpp
in implementation files and instantiate the forward decl-ed class at there like template class Pointer<Impl>;
.
HEaaN::Pointer< T >::~Pointer | ( | ) |
HEaaN::Pointer< T >::Pointer | ( | Pointer< T > const & | other | ) |
|
noexcept |
T& HEaaN::Pointer< T >::operator* | ( | ) |
const T& HEaaN::Pointer< T >::operator* | ( | ) | const |
T* HEaaN::Pointer< T >::operator-> | ( | ) |
const T* HEaaN::Pointer< T >::operator-> | ( | ) | const |
Pointer& HEaaN::Pointer< T >::operator= | ( | const Pointer< T > & | other | ) |
|
noexcept |
|
private |