CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
slimsig::trackable_delete< T, Observer, Deleter > Struct Template Reference

#include <tracked_connect.h>

Public Member Functions

constexpr trackable_delete () noexcept=default
 
template<class U , class OtherObserver = Observer, class OtherDeleter = Deleter, std::enable_if< std::is_convertible< U *, T * >::value, bool > = true>
 trackable_delete (const trackable_delete< U, OtherObserver, OtherDeleter > &other)
 
 trackable_delete (Observer observer=Observer{}, Deleter deleter=Deleter{})
 
 trackable_delete (const trackable_delete &)=default
 
 trackable_delete (trackable_delete &&)=default
 
trackable_deleteoperator= (const trackable_delete &)=default
 
trackable_deleteoperator= (trackable_delete &&)=default
 
void operator() (T *ptr) const
 
const Deleter & get_deleter () const
 
Deleter & get_deleter ()
 
const Observer & get_observer () const
 
Observer & get_observer ()
 

Detailed Description

template<class T, class Observer, class Deleter = std::default_delete<T>>
struct slimsig::trackable_delete< T, Observer, Deleter >

Definition at line 53 of file tracked_connect.h.

Constructor & Destructor Documentation

◆ trackable_delete() [1/5]

template<class T , class Observer , class Deleter = std::default_delete<T>>
constexpr slimsig::trackable_delete< T, Observer, Deleter >::trackable_delete ( )
constexprdefaultnoexcept

◆ trackable_delete() [2/5]

template<class T , class Observer , class Deleter = std::default_delete<T>>
template<class U , class OtherObserver = Observer, class OtherDeleter = Deleter, std::enable_if< std::is_convertible< U *, T * >::value, bool > = true>
slimsig::trackable_delete< T, Observer, Deleter >::trackable_delete ( const trackable_delete< U, OtherObserver, OtherDeleter > &  other)
inline

Definition at line 56 of file tracked_connect.h.

◆ trackable_delete() [3/5]

template<class T , class Observer , class Deleter = std::default_delete<T>>
slimsig::trackable_delete< T, Observer, Deleter >::trackable_delete ( Observer  observer = Observer{},
Deleter  deleter = Deleter{} 
)
inline

Definition at line 57 of file tracked_connect.h.

◆ trackable_delete() [4/5]

template<class T , class Observer , class Deleter = std::default_delete<T>>
slimsig::trackable_delete< T, Observer, Deleter >::trackable_delete ( const trackable_delete< T, Observer, Deleter > &  )
default

◆ trackable_delete() [5/5]

template<class T , class Observer , class Deleter = std::default_delete<T>>
slimsig::trackable_delete< T, Observer, Deleter >::trackable_delete ( trackable_delete< T, Observer, Deleter > &&  )
default

Member Function Documentation

◆ get_deleter() [1/2]

template<class T , class Observer , class Deleter = std::default_delete<T>>
Deleter & slimsig::trackable_delete< T, Observer, Deleter >::get_deleter ( )
inline

Definition at line 69 of file tracked_connect.h.

◆ get_deleter() [2/2]

template<class T , class Observer , class Deleter = std::default_delete<T>>
const Deleter & slimsig::trackable_delete< T, Observer, Deleter >::get_deleter ( ) const
inline

Definition at line 66 of file tracked_connect.h.

◆ get_observer() [1/2]

template<class T , class Observer , class Deleter = std::default_delete<T>>
Observer & slimsig::trackable_delete< T, Observer, Deleter >::get_observer ( )
inline

Definition at line 75 of file tracked_connect.h.

◆ get_observer() [2/2]

template<class T , class Observer , class Deleter = std::default_delete<T>>
const Observer & slimsig::trackable_delete< T, Observer, Deleter >::get_observer ( ) const
inline

Definition at line 72 of file tracked_connect.h.

◆ operator()()

template<class T , class Observer , class Deleter = std::default_delete<T>>
void slimsig::trackable_delete< T, Observer, Deleter >::operator() ( T *  ptr) const
inline

Definition at line 62 of file tracked_connect.h.

◆ operator=() [1/2]

template<class T , class Observer , class Deleter = std::default_delete<T>>
trackable_delete & slimsig::trackable_delete< T, Observer, Deleter >::operator= ( const trackable_delete< T, Observer, Deleter > &  )
default

◆ operator=() [2/2]

template<class T , class Observer , class Deleter = std::default_delete<T>>
trackable_delete & slimsig::trackable_delete< T, Observer, Deleter >::operator= ( trackable_delete< T, Observer, Deleter > &&  )
default

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