retdec
Public Types | Public Member Functions | Private Attributes | List of all members
retdec::ctypes::EnumType::Value Class Reference

A representation of enum value. More...

#include <enum_type.h>

Collaboration diagram for retdec::ctypes::EnumType::Value:
Collaboration graph
[legend]

Public Types

using ValueType = std::int64_t
 Type of enum value. More...
 

Public Member Functions

 Value (const std::string &name, ValueType value)
 Constructs a new enum value. More...
 
const std::string & getName () const
 Returns enum value's name. More...
 
ValueType getValue () const
 Returns enum value's value. More...
 
bool operator== (const Value &other) const
 
bool operator!= (const Value &other) const
 

Private Attributes

std::string name
 
ValueType value
 

Detailed Description

A representation of enum value.

Member Typedef Documentation

◆ ValueType

Type of enum value.

Constructor & Destructor Documentation

◆ Value()

retdec::ctypes::EnumType::Value::Value ( const std::string &  name,
ValueType  value 
)

Constructs a new enum value.

Member Function Documentation

◆ getName()

const std::string & retdec::ctypes::EnumType::Value::getName ( ) const

Returns enum value's name.

◆ getValue()

EnumType::Value::ValueType retdec::ctypes::EnumType::Value::getValue ( ) const

Returns enum value's value.

◆ operator!=()

bool retdec::ctypes::EnumType::Value::operator!= ( const Value other) const

◆ operator==()

bool retdec::ctypes::EnumType::Value::operator== ( const Value other) const

Member Data Documentation

◆ name

std::string retdec::ctypes::EnumType::Value::name
private

◆ value

ValueType retdec::ctypes::EnumType::Value::value
private

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