Android-cuttlefish cvd tool
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | List of all members
gfxstream::Lib Class Reference

#include <lib.h>

Classes

struct  LibraryCloser
 

Public Types

using FunctionPtr = void(*)(void)
 

Public Member Functions

 Lib ()=default
 
 Lib (const Lib &)=delete
 
Liboperator= (const Lib &)=delete
 
 Lib (Lib &&)=default
 
Liboperator= (Lib &&)=default
 
FunctionPtr GetSymbol (const char *name)
 

Static Public Member Functions

static gfxstream::expected< Lib, std::string > Load (const char *name)
 

Private Types

using ManagedLibrary = std::unique_ptr< void, LibraryCloser >
 

Private Attributes

ManagedLibrary lib_
 

Member Typedef Documentation

◆ FunctionPtr

using gfxstream::Lib::FunctionPtr = void (*)(void)

◆ ManagedLibrary

using gfxstream::Lib::ManagedLibrary = std::unique_ptr<void, LibraryCloser>
private

Constructor & Destructor Documentation

◆ Lib() [1/3]

gfxstream::Lib::Lib ( )
default

◆ Lib() [2/3]

gfxstream::Lib::Lib ( const Lib )
delete

◆ Lib() [3/3]

gfxstream::Lib::Lib ( Lib &&  )
default

Member Function Documentation

◆ GetSymbol()

Lib::FunctionPtr gfxstream::Lib::GetSymbol ( const char *  name)

◆ Load()

gfxstream::expected< Lib, std::string > gfxstream::Lib::Load ( const char *  name)
static

◆ operator=() [1/2]

Lib & gfxstream::Lib::operator= ( const Lib )
delete

◆ operator=() [2/2]

Lib & gfxstream::Lib::operator= ( Lib &&  )
default

Member Data Documentation

◆ lib_

ManagedLibrary gfxstream::Lib::lib_
private

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