libabigail
|
The abstraction of an enumerator. More...
#include <abg-ir.h>
Public Member Functions | |
enumerator () | |
Default constructor of the enum_type_decl::enumerator type. More... | |
enumerator (const enumerator &) | |
Copy constructor of the enum_type_decl::enumerator type. More... | |
enumerator (const string &name, int64_t value) | |
Constructor of the enum_type_decl::enumerator type. More... | |
enum_type_decl * | get_enum_type () const |
Getter for the enum type that this enumerator is for. More... | |
const string & | get_name () const |
Getter for the name of the current instance of enum_type_decl::enumerator. More... | |
const string & | get_qualified_name (bool internal=false) const |
Getter for the qualified name of the current instance of enum_type_decl::enumerator. The first invocation of the method builds the qualified name, caches it and return a reference to the cached qualified name. Subsequent invocations just return the cached value. More... | |
int64_t | get_value () const |
Getter for the value of enum_type_decl::enumerator. More... | |
bool | operator!= (const enumerator &other) const |
Inequality operator. More... | |
enumerator & | operator= (const enumerator &) |
Assignment operator of the enum_type_decl::enumerator type. More... | |
bool | operator== (const enumerator &other) const |
Equality operator. More... | |
void | set_enum_type (enum_type_decl *) |
Setter for the enum type that this enumerator is for. More... | |
void | set_name (const string &n) |
Setter for the name of enum_type_decl::enumerator. More... | |
void | set_value (int64_t v) |
Setter for the value of enum_type_decl::enumerator. More... | |
enumerator | ( | ) |
Default constructor of the enum_type_decl::enumerator type.
enumerator | ( | const string & | name, |
int64_t | value | ||
) |
Constructor of the enum_type_decl::enumerator type.
env | the environment we are operating from. |
name | the name of the enumerator. |
value | the value of the enumerator. |
enumerator | ( | const enumerator & | other | ) |
Copy constructor of the enum_type_decl::enumerator type.
other | enumerator to copy. |
enum_type_decl * get_enum_type | ( | ) | const |
const string & get_name | ( | ) | const |
Getter for the name of the current instance of enum_type_decl::enumerator.
const string & get_qualified_name | ( | bool | internal = false | ) | const |
Getter for the qualified name of the current instance of enum_type_decl::enumerator. The first invocation of the method builds the qualified name, caches it and return a reference to the cached qualified name. Subsequent invocations just return the cached value.
internal | set to true if the call is intended for an internal use (for technical use inside the library itself), false otherwise. If you don't know what this is for, then set it to false. |
int64_t get_value | ( | ) | const |
Getter for the value of enum_type_decl::enumerator.
bool operator!= | ( | const enumerator & | other | ) | const |
enum_type_decl::enumerator & operator= | ( | const enumerator & | o | ) |
Assignment operator of the enum_type_decl::enumerator type.
o |
bool operator== | ( | const enumerator & | other | ) | const |
Equality operator.
other | the enumerator to compare to the current instance of enum_type_decl::enumerator. |
other
equals the current instance of enum_type_decl::enumerator. void set_enum_type | ( | enum_type_decl * | e | ) |
void set_name | ( | const string & | n | ) |
Setter for the name of enum_type_decl::enumerator.
n | the new name. |
void set_value | ( | int64_t | v | ) |
Setter for the value of enum_type_decl::enumerator.
v | the new value of the enum_type_decl::enumerator. |