cfront::TypedefType Class Reference

#include <TypedefType.hpp>

Inheritance diagram for cfront::TypedefType:

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

Collaboration graph
[legend]

Public Member Functions

 TypedefType (TypeDefinition *def, QualFlags qf=0)
 TypedefType (const TypedefType &other)
virtual ~TypedefType ()
virtual TypedefTypeclone () const
virtual bool isCompatibleType (const Type *other) const
virtual bool isScalarType () const
virtual bool isArithmeticType () const
virtual bool isIntegerType () const
virtual bool isVoidType () const
virtual size_t getSize (const TargetInfo &targetInfo) const
virtual size_t getAlign (const TargetInfo &targetInfo) const
const TypegetBaseType () const
TypeDefinitiongetDefinition () const
QualFlags getQualFlags () const
void setQualFlags (QualFlags qf)

Protected Attributes

TypeDefinitiondef_
QualFlags qualFlags_

Detailed Description

This class represents the type that declared with 'typedef'.

Definition at line 65 of file TypedefType.hpp.


Constructor & Destructor Documentation

cfront::TypedefType::TypedefType ( TypeDefinition def,
QualFlags  qf = 0 
) [inline]

Definition at line 67 of file TypedefType.hpp.

Referenced by clone().

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

Definition at line 69 of file TypedefType.hpp.

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

Definition at line 72 of file TypedefType.hpp.


Member Function Documentation

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

Return the copy of self.

Implements cfront::Type.

Definition at line 74 of file TypedefType.hpp.

References TypedefType().

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

Tests whether this type is compatible to the given one.

Implements cfront::Type.

Definition at line 79 of file TypedefType.hpp.

References getBaseType(), and cfront::Type::isCompatibleType().

virtual bool cfront::TypedefType::isScalarType (  )  const [inline, virtual]

Reimplemented from cfront::Type.

Definition at line 87 of file TypedefType.hpp.

References getBaseType(), and cfront::Type::isScalarType().

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

Reimplemented from cfront::Type.

Definition at line 92 of file TypedefType.hpp.

References getBaseType(), and cfront::Type::isArithmeticType().

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

Reimplemented from cfront::Type.

Definition at line 97 of file TypedefType.hpp.

References getBaseType(), and cfront::Type::isIntegerType().

virtual bool cfront::TypedefType::isVoidType (  )  const [inline, virtual]

Tests whether this type is 'void' type.

Reimplemented from cfront::Type.

Definition at line 102 of file TypedefType.hpp.

References getBaseType(), and cfront::Type::isVoidType().

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

Implements cfront::Type.

Definition at line 107 of file TypedefType.hpp.

References getBaseType(), and cfront::Type::getSize().

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

Implements cfront::Type.

Definition at line 112 of file TypedefType.hpp.

References cfront::Type::getAlign(), and getBaseType().

const Type* cfront::TypedefType::getBaseType (  )  const [inline]

TypeDefinition* cfront::TypedefType::getDefinition (  )  const [inline]

Definition at line 122 of file TypedefType.hpp.

References def_.

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

Definition at line 127 of file TypedefType.hpp.

References qualFlags_.

Referenced by cfront::CAnalyzer::getOriginalType().

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

Definition at line 132 of file TypedefType.hpp.

References qualFlags_.


Field Documentation

Definition at line 148 of file TypedefType.hpp.

Referenced by getBaseType(), and getDefinition().

Definition at line 149 of file TypedefType.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