![]() |
Prusa Slicer 2.6.0
|
#include <src/libslic3r/AnyPtr.hpp>
Inheritance diagram for Slic3r::AnyPtr< T >:Public Member Functions | |
| template<class TT = T, class = std::enable_if_t<std::is_convertible_v<TT*, T*>>> | |
| AnyPtr (TT *p=nullptr) | |
| template<class TT , class = std::enable_if_t<std::is_convertible_v<TT*, T*>>> | |
| AnyPtr (std::unique_ptr< TT > p) | |
| template<class TT , class = std::enable_if_t<std::is_convertible_v<TT*, T*>>> | |
| AnyPtr (std::shared_ptr< TT > p) | |
| template<class TT , class = std::enable_if_t<std::is_convertible_v<TT*, T*>>> | |
| AnyPtr (std::weak_ptr< TT > p) | |
| ~AnyPtr ()=default | |
| AnyPtr (AnyPtr &&other) noexcept | |
| AnyPtr (const AnyPtr &other)=delete | |
| AnyPtr & | operator= (AnyPtr &&other) noexcept |
| AnyPtr & | operator= (const AnyPtr &other)=delete |
| template<class TT , class = std::enable_if_t<std::is_convertible_v<TT*, T*>>> | |
| AnyPtr & | operator= (TT *p) |
| template<class TT , class = std::enable_if_t<std::is_convertible_v<TT*, T*>>> | |
| AnyPtr & | operator= (std::unique_ptr< TT > p) |
| template<class TT , class = std::enable_if_t<std::is_convertible_v<TT*, T*>>> | |
| AnyPtr & | operator= (std::shared_ptr< TT > p) |
| template<class TT , class = std::enable_if_t<std::is_convertible_v<TT*, T*>>> | |
| AnyPtr & | operator= (std::weak_ptr< TT > p) |
| const T & | operator* () const |
| T & | operator* () |
| T * | operator-> () |
| const T * | operator-> () const |
| T * | get () |
| const T * | get () const |
| operator bool () const | |
| std::shared_ptr< T > | get_shared_cpy () const |
| void | convert_unique_to_shared () |
| bool | is_owned () const noexcept |
Private Types | |
| enum | { RawPtr , UPtr , ShPtr , WkPtr } |
Static Private Member Functions | |
| template<class Self > | |
| static T * | get_ptr (Self &&s) |
Private Attributes | |
| boost::variant< T *, std::unique_ptr< T >, std::shared_ptr< T >, std::weak_ptr< T > > | ptr |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
inlinenoexcept |
|
delete |
|
inline |
References Slic3r::AnyPtr< T >::ptr, and Slic3r::AnyPtr< T >::UPtr.
|
inline |
References Slic3r::AnyPtr< T >::get_ptr().
Referenced by Slic3r::AnyPtr< T >::get_ptr(), Slic3r::GUI::MeshClipper::set_mesh(), Slic3r::GUI::MeshClipper::set_mesh(), Slic3r::GUI::MeshClipper::set_negative_mesh(), and Slic3r::GUI::MeshClipper::set_negative_mesh().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inlinestaticprivate |
References Slic3r::AnyPtr< T >::get(), Slic3r::AnyPtr< T >::RawPtr, Slic3r::AnyPtr< T >::ShPtr, Slic3r::AnyPtr< T >::UPtr, and Slic3r::AnyPtr< T >::WkPtr.
Referenced by Slic3r::AnyPtr< T >::get(), Slic3r::AnyPtr< T >::get(), Slic3r::AnyPtr< T >::operator*(), Slic3r::AnyPtr< T >::operator*(), Slic3r::AnyPtr< T >::operator->(), and Slic3r::AnyPtr< T >::operator->().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::AnyPtr< T >::ptr, Slic3r::AnyPtr< T >::ShPtr, and Slic3r::AnyPtr< T >::WkPtr.
|
inlinenoexcept |
References Slic3r::AnyPtr< T >::ptr, Slic3r::AnyPtr< T >::ShPtr, and Slic3r::AnyPtr< T >::UPtr.
|
inline |
References Slic3r::AnyPtr< T >::ptr, Slic3r::AnyPtr< T >::RawPtr, Slic3r::AnyPtr< T >::ShPtr, Slic3r::AnyPtr< T >::UPtr, and Slic3r::AnyPtr< T >::WkPtr.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
References Slic3r::AnyPtr< T >::ptr.
|
delete |
|
inline |
References Slic3r::AnyPtr< T >::ptr.
|
inline |
References Slic3r::AnyPtr< T >::ptr.
|
inline |
References Slic3r::AnyPtr< T >::ptr.
|
inline |
References Slic3r::AnyPtr< T >::ptr.
|
private |
Referenced by Slic3r::AnyPtr< T >::convert_unique_to_shared(), Slic3r::AnyPtr< T >::get_shared_cpy(), Slic3r::AnyPtr< T >::is_owned(), Slic3r::AnyPtr< T >::operator bool(), Slic3r::AnyPtr< T >::operator=(), Slic3r::AnyPtr< T >::operator=(), Slic3r::AnyPtr< T >::operator=(), Slic3r::AnyPtr< T >::operator=(), and Slic3r::AnyPtr< T >::operator=().