LLDB mainline
lldb_private::LazyImport< FnPtr > Class Template Reference

#include <LazyImport.h>

Public Member Functions

 LazyImport (const wchar_t *dll, const char *symbol)
FnPtr get () const
 Returns the resolved function pointer, or nullptr if the DLL or symbol is unavailable on this system.
 operator bool () const
FnPtr operator* () const

Static Private Member Functions

static FnPtr Resolve (const wchar_t *dll, const char *symbol)

Private Attributes

FnPtr m_resolved

Detailed Description

template<typename FnPtr>
class lldb_private::LazyImport< FnPtr >

Definition at line 16 of file LazyImport.h.

Constructor & Destructor Documentation

◆ LazyImport()

template<typename FnPtr>
lldb_private::LazyImport< FnPtr >::LazyImport ( const wchar_t * dll,
const char * symbol )
inline

Definition at line 18 of file LazyImport.h.

References m_resolved, and Resolve().

Member Function Documentation

◆ get()

template<typename FnPtr>
FnPtr lldb_private::LazyImport< FnPtr >::get ( ) const
inline

Returns the resolved function pointer, or nullptr if the DLL or symbol is unavailable on this system.

Definition at line 23 of file LazyImport.h.

References m_resolved.

◆ operator bool()

template<typename FnPtr>
lldb_private::LazyImport< FnPtr >::operator bool ( ) const
inlineexplicit

Definition at line 25 of file LazyImport.h.

References m_resolved.

◆ operator*()

template<typename FnPtr>
FnPtr lldb_private::LazyImport< FnPtr >::operator* ( ) const
inline

Definition at line 26 of file LazyImport.h.

References m_resolved.

◆ Resolve()

template<typename FnPtr>
FnPtr lldb_private::LazyImport< FnPtr >::Resolve ( const wchar_t * dll,
const char * symbol )
inlinestaticprivate

Definition at line 29 of file LazyImport.h.

Referenced by LazyImport().

Member Data Documentation

◆ m_resolved

template<typename FnPtr>
FnPtr lldb_private::LazyImport< FnPtr >::m_resolved
private

Definition at line 37 of file LazyImport.h.

Referenced by get(), LazyImport(), operator bool(), and operator*().


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