Puma::CEnumeratorInfo Class Reference

#include <Puma/infos/CEnumeratorInfo.h>

Inheritance diagram for Puma::CEnumeratorInfo:

Inheritance graph

List of all members.


Detailed Description

A CEnumeratorInfo object represents an enumerator constant.

Public Member Functions

 CEnumeratorInfo ()
 ~CEnumeratorInfo ()
CEnumeratorInfoBaseObject () const
CT_EnumeratorTree () const
CT_ExprListInit () const
CTypeInfoUnderlyingType () const
CEnumInfoEnum () const
void Enum (CEnumInfo *ei)
LONG_LONG Value () const
void Value (LONG_LONG v)

Constructor & Destructor Documentation

Puma::CEnumeratorInfo::CEnumeratorInfo (  )  [inline]

Construct a new enumerator info.

Puma::CEnumeratorInfo::~CEnumeratorInfo (  ) 

Destruct the enumerator info. If the object id is ENUMERATOR_INFO, Puma::CObjectInfo::CleanUp() is called.


Member Function Documentation

CEnumeratorInfo * Puma::CEnumeratorInfo::BaseObject (  )  const [inline]

Get the base info object of the info object. The corresponding information is not yet set!

Returns:
This method always returns NULL.
Warning:
Do not use this method.

Reimplemented from Puma::CAttributeInfo.

CT_Enumerator* Puma::CEnumeratorInfo::Tree (  )  const

Get the syntax tree node of the enumerator constant.

Reimplemented from Puma::CAttributeInfo.

CT_ExprList* Puma::CEnumeratorInfo::Init (  )  const

Get the initialization expression syntax tree node of the enumerator.

Returns:
The syntax tree node or NULL if no initializer.

Reimplemented from Puma::CAttributeInfo.

CTypeInfo* Puma::CEnumeratorInfo::UnderlyingType (  )  const

Get the underlying value type.

CEnumInfo * Puma::CEnumeratorInfo::Enum (  )  const [inline]

Get the corresponding enumeration info.

void Puma::CEnumeratorInfo::Enum ( CEnumInfo ei  )  [inline]

Set the enumeration info.

Parameters:
ei The corresponding enumeration info.

LONG_LONG Puma::CEnumeratorInfo::Value (  )  const [inline]

Get the constant value of the enumerator.

void Puma::CEnumeratorInfo::Value ( LONG_LONG  v  )  [inline]

Set the value of the enumerator constant.

Parameters:
v The value of the enumerator.


Generated on Sat May 10 03:03:49 2008 for Puma by  doxygen 1.5.5