cfront::EnumType Class Reference

#include <EnumType.hpp>

Inheritance diagram for cfront::EnumType:

Inheritance graph
[legend]
Collaboration diagram for cfront::EnumType:

Collaboration graph
[legend]

Public Member Functions

 EnumType (EnumDefinition *def, QualFlags qf=0)
 EnumType (const EnumType &other)
virtual ~EnumType ()
virtual EnumTypeclone () const
virtual bool isCompatibleType (const Type *other) const
virtual bool isArithmeticType () const
virtual bool isIntegerType () const
virtual size_t getSize (const TargetInfo &targetInfo) const
virtual size_t getAlign (const TargetInfo &targetInfo) const
EnumDefinitiongetDefinition () const
QualFlags getQualFlags () const
void setQualFlags (QualFlags qf)

Protected Attributes

EnumDefinitiondefinition_
QualFlags qualFlags_

Detailed Description

This class represents the enum type.

Definition at line 79 of file EnumType.hpp.


Constructor & Destructor Documentation

cfront::EnumType::EnumType ( EnumDefinition def,
QualFlags  qf = 0 
) [inline, explicit]

Definition at line 81 of file EnumType.hpp.

Referenced by clone().

cfront::EnumType::EnumType ( const EnumType other  )  [inline]

Definition at line 83 of file EnumType.hpp.

virtual cfront::EnumType::~EnumType (  )  [inline, virtual]

Definition at line 87 of file EnumType.hpp.


Member Function Documentation

virtual EnumType* cfront::EnumType::clone (  )  const [inline, virtual]

Return the copy of self.

Implements cfront::Type.

Definition at line 89 of file EnumType.hpp.

References EnumType().

virtual bool cfront::EnumType::isCompatibleType ( const Type other  )  const [inline, virtual]

Tests whether this type is compatible to the given one.

Implements cfront::Type.

Definition at line 94 of file EnumType.hpp.

References definition_, and getDefinition().

virtual bool cfront::EnumType::isArithmeticType (  )  const [inline, virtual]

Reimplemented from cfront::Type.

Definition at line 101 of file EnumType.hpp.

virtual bool cfront::EnumType::isIntegerType (  )  const [inline, virtual]

Reimplemented from cfront::Type.

Definition at line 106 of file EnumType.hpp.

virtual size_t cfront::EnumType::getSize ( const TargetInfo targetInfo  )  const [inline, virtual]

Implements cfront::Type.

Definition at line 111 of file EnumType.hpp.

References cfront::TargetInfo::ENUM, and cfront::TargetInfo::getSize().

virtual size_t cfront::EnumType::getAlign ( const TargetInfo targetInfo  )  const [inline, virtual]

Implements cfront::Type.

Definition at line 116 of file EnumType.hpp.

References cfront::TargetInfo::ENUM, and cfront::TargetInfo::getAlign().

EnumDefinition* cfront::EnumType::getDefinition (  )  const [inline]

Definition at line 121 of file EnumType.hpp.

References definition_.

Referenced by isCompatibleType().

QualFlags cfront::EnumType::getQualFlags (  )  const [inline]

Definition at line 126 of file EnumType.hpp.

References qualFlags_.

void cfront::EnumType::setQualFlags ( QualFlags  qf  )  [inline]

Definition at line 131 of file EnumType.hpp.

References qualFlags_.


Field Documentation

Definition at line 147 of file EnumType.hpp.

Referenced by getDefinition(), and isCompatibleType().

Definition at line 148 of file EnumType.hpp.

Referenced by getQualFlags(), and setQualFlags().


The documentation for this class was generated from the following file:

Generated on Tue Mar 31 20:19:53 2009 for ctrump by  doxygen 1.5.6