Puma Reference Manual | Puma: Puma::CTypeEnum Class Reference |
Type of an enumeration. More...
#include <Puma/CTypeInfo.h>
Inherits Puma::CTypeInfo.
Public Member Functions | |
CTypeEnum (CEnumInfo *e) | |
Constructor. | |
~CTypeEnum () | |
Destructor. | |
CEnumInfo * | EnumInfo () const |
Get the semantic information about the enumeration. | |
bool | isComplete (unsigned long pos=0) const |
Check if the enumeration is complete. | |
CTypeInfo * | UnderlyingType () const |
Get the implementation-defined underlying data type of the enumeration (defaults to int). |
Type of an enumeration.
Examples:
enum E { A,B } e; // e has type 'enum E' enum { C,D } a; // a has type 'enum <anonymous>'
Puma::CTypeEnum::CTypeEnum | ( | CEnumInfo * | e | ) | [inline] |
Constructor.
Type has id CTypeInfo::TYPE_ENUM.
e | The semantic information about the enumeration. |
Puma::CTypeEnum::~CTypeEnum | ( | ) | [inline] |
Destructor.
CEnumInfo * Puma::CTypeEnum::EnumInfo | ( | ) | const [inline] |
Get the semantic information about the enumeration.
Reimplemented from Puma::CTypeInfo.
bool Puma::CTypeEnum::isComplete | ( | unsigned long | pos = 0 |
) | const |
Check if the enumeration is complete.
pos | Optional source code position. |
Reimplemented from Puma::CTypeInfo.
CTypeInfo* Puma::CTypeEnum::UnderlyingType | ( | ) | const |
Get the implementation-defined underlying data type of the enumeration (defaults to int).