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

A reference class for an EnumValue structure. More...

#include <method.hpp>

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

Public Member Functions

std::string_view GetName () const noexcept
 < Inherit constructors from Ref<const EnumValue>. More...
 
int64_t GetValue () const noexcept
 Retrieves the enum value. More...
 
- Public Member Functions inherited from plugify::Ref< const EnumValue >
 Ref (const EnumValue &impl) noexcept
 
 Ref (Ref const &)=default
 
 Ref (Ref &&)=default
 
bool operator== (const Ref &other) const noexcept
 
bool operator== (const const EnumValue *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 EnumValue >
const EnumValue * _impl
 

Detailed Description

A reference class for an EnumValue structure.

This class holds a reference to a specific value within an Enum object, allowing users to retrieve information such as the name and value of the enum element.

Definition at line 24 of file method.hpp.

Member Function Documentation

◆ GetName()

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

< Inherit constructors from Ref<const EnumValue>.

Retrieves the enum value name.

Returns
A string view representing the name of the enum value.

◆ GetValue()

int64_t plugify::EnumValueRef::GetValue ( ) const
noexcept

Retrieves the enum value.

Returns
An integer representing the value of the enum element.

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