alpaqa 1.0.0a16
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
copyable_unique_ptr< T > Struct Template Reference

#include <alpaqa/util/copyable_unique_ptr.hpp>

Detailed Description

template<class T>
struct alpaqa::util::copyable_unique_ptr< T >

Definition at line 8 of file copyable_unique_ptr.hpp.

+ Collaboration diagram for copyable_unique_ptr< T >:

Public Member Functions

 copyable_unique_ptr (std::unique_ptr< T > ptr)
 
 copyable_unique_ptr ()=default
 
 copyable_unique_ptr (const copyable_unique_ptr &o)
 
copyable_unique_ptroperator= (const copyable_unique_ptr &o)
 
 copyable_unique_ptr (copyable_unique_ptr &&) noexcept=default
 
copyable_unique_ptroperator= (copyable_unique_ptr &&) noexcept=default
 
 operator std::unique_ptr< T > & () &
 
 operator const std::unique_ptr< T > & () const &
 
 operator std::unique_ptr< T > && () &&
 
std::unique_ptr< T > & operator-> ()
 
const std::unique_ptr< T > & operator-> () const
 
autooperator* ()
 
autooperator* () const
 

Public Attributes

std::unique_ptr< Tptr
 

Constructor & Destructor Documentation

◆ copyable_unique_ptr() [1/4]

template<class T >
copyable_unique_ptr ( std::unique_ptr< T ptr)
inline

Definition at line 9 of file copyable_unique_ptr.hpp.

◆ copyable_unique_ptr() [2/4]

template<class T >
copyable_unique_ptr ( )
default

◆ copyable_unique_ptr() [3/4]

template<class T >
copyable_unique_ptr ( const copyable_unique_ptr< T > &  o)
inline

Definition at line 11 of file copyable_unique_ptr.hpp.

◆ copyable_unique_ptr() [4/4]

template<class T >
copyable_unique_ptr ( copyable_unique_ptr< T > &&  )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

template<class T >
copyable_unique_ptr & operator= ( const copyable_unique_ptr< T > &  o)
inline

Definition at line 13 of file copyable_unique_ptr.hpp.

◆ operator=() [2/2]

template<class T >
copyable_unique_ptr & operator= ( copyable_unique_ptr< T > &&  )
defaultnoexcept

◆ operator std::unique_ptr< T > &()

template<class T >
operator std::unique_ptr< T > & ( ) &
inline

Definition at line 20 of file copyable_unique_ptr.hpp.

◆ operator const std::unique_ptr< T > &()

template<class T >
operator const std::unique_ptr< T > & ( ) const &
inline

Definition at line 21 of file copyable_unique_ptr.hpp.

◆ operator std::unique_ptr< T > &&()

template<class T >
operator std::unique_ptr< T > && ( ) &&
inline

Definition at line 22 of file copyable_unique_ptr.hpp.

◆ operator->() [1/2]

template<class T >
std::unique_ptr< T > & operator-> ( )
inline

Definition at line 24 of file copyable_unique_ptr.hpp.

◆ operator->() [2/2]

template<class T >
const std::unique_ptr< T > & operator-> ( ) const
inline

Definition at line 25 of file copyable_unique_ptr.hpp.

◆ operator*() [1/2]

template<class T >
auto & operator* ( )
inline

Definition at line 26 of file copyable_unique_ptr.hpp.

◆ operator*() [2/2]

template<class T >
auto & operator* ( ) const
inline

Definition at line 27 of file copyable_unique_ptr.hpp.

Member Data Documentation

◆ ptr

template<class T >
std::unique_ptr<T> ptr

Definition at line 29 of file copyable_unique_ptr.hpp.


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