plugify  1.0.0.0
Public Member Functions | List of all members
plugify::EnumRef Class Reference

A reference class for the Enum structure. More...

#include <method.hpp>

Inheritance diagram for plugify::EnumRef:
Inheritance graph
[legend]
Collaboration diagram for plugify::EnumRef:
Collaboration graph
[legend]

Public Member Functions

std::string_view GetName () const noexcept
 < Inherit constructors from Ref<const Enum>. More...
 
std::span< const EnumValueRefGetValues () const noexcept
 Retrieves the values contained within the enum. More...
 
- Public Member Functions inherited from plugify::Ref< const Enum >
 Ref (const Enum &impl) noexcept
 
 Ref (Ref const &)=default
 
 Ref (Ref &&)=default
 
bool operator== (const Ref &other) const noexcept
 
bool operator== (const const Enum *impl) const noexcept
 
Refoperator= (const Ref &) &=default
 
Refoperator= (const Ref &) &&=delete
 
Refoperator= (Ref &&) &=default
 
Refoperator= (Ref &&) &&=delete
 
 operator bool () const noexcept
 

Additional Inherited Members

- Protected Attributes inherited from plugify::Ref< const Enum >
const Enum * _impl
 

Detailed Description

A reference class for the Enum structure.

This class holds a reference to an Enum object, providing access to its name and values.

Definition at line 49 of file method.hpp.

Member Function Documentation

◆ GetName()

std::string_view plugify::EnumRef::GetName ( ) const
noexcept

< Inherit constructors from Ref<const Enum>.

Retrieves the enum name.

Returns
A string view representing the name of the enum.

◆ GetValues()

std::span<const EnumValueRef> plugify::EnumRef::GetValues ( ) const
noexcept

Retrieves the values contained within the enum.

Returns
A span of EnumValueRef objects representing the values in the enum.

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