Wasmtime
wasmtime::component::Flag Class Reference

Class representing a component model flags value. More...

#include <val.hh>

Public Member Functions

 Flag (Raw &&capi)
 
 Flag (const Flag &other)
 Copy constructor to clone other.
More...
 
Flagoperator= (const Flag &other)
 Copy assignment to clone from other.
More...
 
 Flag (Flag &&other)
 Move constructor to move the contents of other.
More...
 
Flagoperator= (Flag &&other)
 Move assignment to move the contents of other.
More...
 
const Rawcapi () const
 Returns a pointer to the underlying C API representation.
More...
 
 Flag (std::string_view name)
 Creates a new flag from the provided string.
 
std::string_view name () const
 Returns the name of this flag.
 

Static Public Member Functions

static const Flagfrom_capi (const Raw *capi)
 
static Flagfrom_capi (Raw *capi)
 
static const Rawto_capi (const Flag *capi)
 
static Rawto_capi (Flag *capi)
 

Friends

class Flags
 

Detailed Description

Class representing a component model flags value.

Constructor & Destructor Documentation

◆ Flag() [1/3]

wasmtime::component::Flag::Flag ( Raw &&  capi)
inlineexplicit
  • Create a variant that takes ownership of the underlying C API variant.

◆ Flag() [2/3]

wasmtime::component::Flag::Flag ( const Flag other)
inline

Copy constructor to clone other.

◆ Flag() [3/3]

wasmtime::component::Flag::Flag ( Flag &&  other)
inline

Move constructor to move the contents of other.

Member Function Documentation

◆ capi()

const Raw * wasmtime::component::Flag::capi ( ) const
inline

Returns a pointer to the underlying C API representation.

◆ from_capi() [1/2]

static const Flag * wasmtime::component::Flag::from_capi ( const Raw capi)
inlinestatic
  • Converts the raw C API representation to this class without taking * ownership.

◆ from_capi() [2/2]

static Flag * wasmtime::component::Flag::from_capi ( Raw capi)
inlinestatic
  • Converts the raw C API representation to this class without taking * ownership.

◆ operator=() [1/2]

Flag & wasmtime::component::Flag::operator= ( const Flag other)
inline

Copy assignment to clone from other.

◆ operator=() [2/2]

Flag & wasmtime::component::Flag::operator= ( Flag &&  other)
inline

Move assignment to move the contents of other.

◆ to_capi() [1/2]

static const Raw * wasmtime::component::Flag::to_capi ( const Flag capi)
inlinestatic
  • Converts to the raw C API representation to this class without taking * ownership.

◆ to_capi() [2/2]

static Raw * wasmtime::component::Flag::to_capi ( Flag capi)
inlinestatic
  • Converts to the raw C API representation to this class without taking * ownership.

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