Puma Reference Manual Puma: Puma::CTypeEnum Class Reference



Puma::CTypeEnum Class Reference

Type of an enumeration. More...

#include <Puma/CTypeInfo.h>

Inheritance diagram for Puma::CTypeEnum:
Inheritance graph

List of all members.

Public Member Functions

 CTypeEnum (CEnumInfo *e)
 Constructor.
 ~CTypeEnum ()
 Destructor.
CEnumInfoEnumInfo () const
 Get the semantic information about the enumeration.
bool isComplete (unsigned long pos=0) const
 Check if the enumeration is complete.
CTypeInfoUnderlyingType () const
 Get the implementation-defined underlying data type of the enumeration (defaults to int).

Detailed Description

Type of an enumeration.

Examples:

 enum E { A,B } e;  // e has type 'enum E'
 enum { C,D } a;    // a has type 'enum <anonymous>'

Constructor & Destructor Documentation

Puma::CTypeEnum::CTypeEnum ( CEnumInfo e) [inline]

Constructor.

Type has id CTypeInfo::TYPE_ENUM.

Parameters:
eThe semantic information about the enumeration.
Puma::CTypeEnum::~CTypeEnum ( ) [inline]

Destructor.


Member Function Documentation

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.

Parameters:
posOptional 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).