Wasmtime
wasmtime::component::Flags Class Reference

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

#include <val.hh>

Public Member Functions

 Flags (Raw &&capi)
 
 Flags (const Flags &other)
 Copy constructor to clone other.
More...
 
Flags & operator= (const Flags &other)
 Copy assignment to clone from other.
More...
 
 Flags (Flags &&other)
 Move constructor to move the contents of other.
More...
 
Flags & operator= (Flags &&other)
 Move assignment to move the contents of other.
More...
 
const Raw * capi () const
 Returns a pointer to the underlying C API representation.
More...
 
 Flags (std::vector< Flag > flags)
 Creates a new flags value from the provided flags.
 
size_t size () const
 Returns the number of flags.
 
const Flag * begin () const
 Returns an iterator to the beginning of the flags.
 
const Flag * end () const
 Returns an iterator to the end of the flags.
 

Static Public Member Functions

static const Flags * from_capi (const Raw *capi)
 
static Flags * from_capi (Raw *capi)
 
static const Raw * to_capi (const Flags *capi)
 
static Raw * to_capi (Flags *capi)
 

Friends

class Val
 

Detailed Description

Class representing a component model flags value.

Constructor & Destructor Documentation

◆ Flags() [1/3]

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

◆ Flags() [2/3]

wasmtime::component::Flags::Flags ( const Flags &  other)
inline

Copy constructor to clone other.

◆ Flags() [3/3]

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

Move constructor to move the contents of other.

Member Function Documentation

◆ capi()

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

Returns a pointer to the underlying C API representation.

◆ from_capi() [1/2]

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

◆ from_capi() [2/2]

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

◆ operator=() [1/2]

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

Copy assignment to clone from other.

◆ operator=() [2/2]

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

Move assignment to move the contents of other.

◆ to_capi() [1/2]

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

◆ to_capi() [2/2]

static Raw * wasmtime::component::Flags::to_capi ( Flags *  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: