LibreOffice Module vcl (master) 1
|
#include <vclptr.hxx>
Public Member Functions | |
ScopedVclPtr () | |
Constructor... More... | |
ScopedVclPtr (reference_type *pBody) | |
Constructor. More... | |
ScopedVclPtr (const VclPtr< reference_type > &handle) | |
Copy constructor... More... | |
void | disposeAndReset (reference_type *pBody) |
Assignment that releases the last reference. More... | |
ScopedVclPtr< reference_type > & | operator= (reference_type *pBody) |
Assignment that releases the last reference. More... | |
template<class derived_type > | |
ScopedVclPtr (const VclPtr< derived_type > &rRef, typename std::enable_if< std::is_base_of< reference_type, derived_type >::value, int >::type=0) | |
Up-casting conversion constructor: Copies interface reference. More... | |
template<typename derived_type > | |
std::enable_if< std::is_base_of< reference_type, derived_type >::value, ScopedVclPtr & >::type | operator= (VclPtr< derived_type > const &rRef) |
Up-casting assignment operator. More... | |
~ScopedVclPtr () | |
![]() | |
VclPtr () | |
Constructor... More... | |
VclPtr (reference_type *pBody) | |
Constructor... More... | |
VclPtr (reference_type *pBody, __sal_NoAcquire) | |
Constructor... that doesn't take a ref. More... | |
template<class derived_type > | |
VclPtr (const VclPtr< derived_type > &rRef, typename std::enable_if< std::is_base_of< reference_type, derived_type >::value, int >::type=0) | |
Up-casting conversion constructor: Copies interface reference. More... | |
~VclPtr () | |
VclPtr (VclPtr const &)=default | |
VclPtr (VclPtr &&)=default | |
VclPtr & | operator= (VclPtr const &)=default |
VclPtr & | operator= (VclPtr &&)=default |
reference_type * | operator-> () const |
Probably most common used: handle->someBodyOp(). More... | |
reference_type * | get () const |
Get the body. More... | |
void | set (reference_type *pBody) |
void | reset (reference_type *pBody) |
template<typename derived_type > | |
std::enable_if< std::is_base_of< reference_type, derived_type >::value, VclPtr & >::type | operator= (VclPtr< derived_type > const &rRef) |
Up-casting copy assignment operator. More... | |
VclPtr & | operator= (reference_type *pBody) |
operator reference_type * () const | |
operator bool () const | |
void | clear () |
void | reset () |
void | disposeAndClear () |
bool | operator< (const VclPtr< reference_type > &handle) const |
Needed to place VclPtr's into STL collection. More... | |
Static Public Member Functions | |
template<typename... Arg> | |
static ScopedVclPtr< reference_type > | Create (Arg &&...)=delete |
Override and disallow this, to prevent people accidentally calling it and actually getting VclPtr::Create and getting a naked VclPtr<> instance. More... | |
![]() | |
template<typename... Arg> | |
static VclPtr< reference_type > | Create (Arg &&... arg) |
A construction helper for VclPtr. More... | |
Protected Member Functions | |
ScopedVclPtr (reference_type *pBody, __sal_NoAcquire) | |
Private Member Functions | |
ScopedVclPtr (const ScopedVclPtr< reference_type > &)=delete | |
ScopedVclPtr< reference_type > & | operator= (const ScopedVclPtr< reference_type > &)=delete |
void | reset ()=delete |
void | reset (reference_type *pBody)=delete |
Definition at line 292 of file vclptr.hxx.
|
inline |
Constructor...
Definition at line 297 of file vclptr.hxx.
|
inline |
Constructor.
Definition at line 303 of file vclptr.hxx.
|
inline |
Copy constructor...
Definition at line 309 of file vclptr.hxx.
|
inline |
Up-casting conversion constructor: Copies interface reference.
Does not work for up-casts to ambiguous bases. For the special case of up-casting to Reference< XInterface >, see the corresponding conversion operator.
rRef | another reference |
Definition at line 342 of file vclptr.hxx.
|
inline |
Definition at line 373 of file vclptr.hxx.
References VclPtr< reference_type >::disposeAndClear().
|
privatedelete |
|
inlineprotected |
Definition at line 389 of file vclptr.hxx.
|
staticdelete |
Override and disallow this, to prevent people accidentally calling it and actually getting VclPtr::Create and getting a naked VclPtr<> instance.
References Arg.
|
inline |
Assignment that releases the last reference.
Definition at line 316 of file vclptr.hxx.
References VclPtr< reference_type >::disposeAndClear(), VclPtr< reference_type >::get(), and VclPtr< reference_type >::set().
Referenced by ScopedVclPtr< reference_type >::operator=(), and vcl::PDFWriterImpl::playMetafile().
|
privatedelete |
|
inline |
Assignment that releases the last reference.
Definition at line 327 of file vclptr.hxx.
References ScopedVclPtr< reference_type >::disposeAndReset().
|
inline |
Up-casting assignment operator.
Does not work for up-casts to ambiguous bases.
rRef | another VclPtr |
Definition at line 361 of file vclptr.hxx.
References ScopedVclPtr< reference_type >::disposeAndReset(), and VclPtr< reference_type >::get().
|
privatedelete |
|
privatedelete |