Euphoria
eu::core::EnumValue Struct Reference

#include <enum.h>

Public Member Functions

 EnumValue (EnumType *t, size_t v)
 
std::string to_string () const
 
size_t to_value () const
 
bool operator== (const EnumValue &other) const
 
bool operator!= (const EnumValue &other) const
 
bool operator< (const EnumValue &other) const
 

Public Attributes

EnumTypetype
 
size_t value
 

Detailed Description

Definition at line 53 of file enum.h.

Constructor & Destructor Documentation

◆ EnumValue()

eu::core::EnumValue::EnumValue ( EnumType t,
size_t  v 
)

Definition at line 131 of file enum.cc.

Member Function Documentation

◆ operator!=()

bool eu::core::EnumValue::operator!= ( const EnumValue other) const

Definition at line 161 of file enum.cc.

◆ operator<()

bool eu::core::EnumValue::operator< ( const EnumValue other) const

Definition at line 167 of file enum.cc.

◆ operator==()

bool eu::core::EnumValue::operator== ( const EnumValue other) const

Definition at line 153 of file enum.cc.

◆ to_string()

std::string eu::core::EnumValue::to_string ( ) const

Definition at line 139 of file enum.cc.

◆ to_value()

size_t eu::core::EnumValue::to_value ( ) const

Definition at line 146 of file enum.cc.

Member Data Documentation

◆ type

EnumType* eu::core::EnumValue::type

Definition at line 56 of file enum.h.

◆ value

size_t eu::core::EnumValue::value

Definition at line 57 of file enum.h.


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