31 size_t sizeof_element);
55 size_t getSize()
const override;
67 std::string
toString()
const override;
131 std::vector<Enumerator*> enum_list;
Register and manage datatypes at runtime.
Definition: DataTypeInator.hpp:16
Abstract base class for a DataTypeVisitor.
Definition: DataTypeVisitor.hpp:20
Abstract base class for DataTypes.
Definition: DataType.hpp:11
Enum represents an Enumerated data type.
Definition: EnumDataType.hpp:18
void clearValue(void *address) const
Set the instance of this type at the given address to 0.
Definition: EnumDataType.cpp:56
std::string toString() const override
Definition: EnumDataType.cpp:101
bool validate(DataTypeInator *dataTypeInator=NULL) override
Verify that all of the types that are named by this DataType or subordinate DataTypes are resolvable ...
Definition: EnumDataType.cpp:35
bool containsValue(int value) const
Determine if this enum type has something defined to this value.
Definition: EnumDataType.cpp:142
bool accept(DataTypeVisitor *visitor) const override
Definition: EnumDataType.cpp:120
EnumDataType(const EnumDataType &original)=delete
static const std::string invalid_str
Definition: EnumDataType.hpp:127
EnumDataType & operator=(EnumDataType rhs)=delete
void deleteInstance(void *address) const override
Delete this instance.
Definition: EnumDataType.cpp:52
void * createInstance(unsigned int num) const override
Create one or more instances of this type.
Definition: EnumDataType.cpp:47
bool assignValue(void *address, int value) const
Assign the value to the instance of this data member.
Definition: EnumDataType.cpp:66
std::string getTypeSpecName() const override
Definition: EnumDataType.cpp:116
int getValue(void *address) const
Get the Value of an instance of this type with the given address.
Definition: EnumDataType.cpp:86
~EnumDataType()
Definition: EnumDataType.cpp:24
bool isValid() const override
Determine whether this type has already been successfully validated.
Definition: EnumDataType.cpp:39
size_t getSize() const override
Definition: EnumDataType.cpp:43
std::string lookupEnumeratorName(int value) const
Get the string name that corresponds to the integer for this type.
Definition: EnumDataType.cpp:132
void addEnumerator(std::string val_name, int value)
Add a name-value pair to this enum data type.
Definition: EnumDataType.cpp:124
Definition: EnumDictionary.hpp:11