| Puma Reference Manual | Puma: Puma::CTypeEnum Class Reference |
#include <Puma/CTypeInfo.h>

Examples:
enum E { A,B } e; // e has type 'enum E' enum { C,D } a; // a has type 'enum <anonymous>'
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). | |
| 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] |
| 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).