RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Linker::Enumeration< Enum > Class Template Reference

A representation of an enumeration with associated string representations for each value. More...

#include <options.h>

Public Types

typedef Enum value_type
 

Public Member Functions

template<typename ... Args>
 Enumeration (Args ... args)
 
std::optional< value_type > LookupName (std::string name) const
 Searches (in a case-insensitive way) for a string.
 

Public Attributes

std::map< value_type, std::vector< std::string > > values
 Maps each value to a sequence of valid strings.
 

Protected Member Functions

void init (value_type next_value)
 
void init (value_type next_value, std::string name)
 
template<typename ... Args>
void init (value_type next_value, std::string name, std::string next_name, Args ... args)
 
void init (value_type _, std::string name, value_type actual_next_value)
 
template<typename ... Args>
void init (value_type _, std::string name, value_type actual_next_value, std::string next_name, Args ... args)
 

Protected Attributes

std::map< std::string, value_type, CaseInsensitiveLessnames
 Maps each name to its value.
 

Detailed Description

template<typename Enum>
class Linker::Enumeration< Enum >

A representation of an enumeration with associated string representations for each value.


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