Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SkAutoTCallVProc< T, P > Class Template Reference

#include <SkTemplates.h>

Inheritance diagram for SkAutoTCallVProc< T, P >:
SkAutoFc< FcConfig, FcConfigCreate, FcConfigDestroy > SkAutoFc< FcFontSet, FcFontSetCreate, FcFontSetDestroy > SkAutoFc< FcPattern, FcPatternCreate, FcPatternDestroy >

Public Member Functions

 SkAutoTCallVProc (const SkAutoTCallVProc &)=delete
 
 SkAutoTCallVProc (SkAutoTCallVProc &&that)
 
 operator T* () const
 

Detailed Description

template<typename T, void(*)(T *) P>
class SkAutoTCallVProc< T, P >

Call a function when this goes out of scope. The template uses two parameters, the object, and a function that is to be called in the destructor. If release() is called, the object reference is set to null. If the object reference is null when the destructor is called, we do not call the function.

Definition at line 84 of file SkTemplates.h.

Constructor & Destructor Documentation

◆ SkAutoTCallVProc() [1/2]

template<typename T , void(*)(T *) P>
SkAutoTCallVProc< T, P >::SkAutoTCallVProc ( const SkAutoTCallVProc< T, P > &  )
delete

◆ SkAutoTCallVProc() [2/2]

template<typename T , void(*)(T *) P>
SkAutoTCallVProc< T, P >::SkAutoTCallVProc ( SkAutoTCallVProc< T, P > &&  that)
inline

Definition at line 90 of file SkTemplates.h.

90: inherited(std::move(that)) {}

Member Function Documentation

◆ operator T*()

template<typename T , void(*)(T *) P>
SkAutoTCallVProc< T, P >::operator T* ( ) const
inline

Definition at line 92 of file SkTemplates.h.

92{ return this->get(); }
const myers::Point & get(const myers::Segment &)

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