cfront::PointerType Class Reference

#include <PointerType.hpp>

Inheritance diagram for cfront::PointerType:

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

Collaboration graph
[legend]

Public Member Functions

 PointerType (const Type *baseType, QualFlags qualFlags)
 PointerType (const PointerType &other)
virtual ~PointerType ()
virtual PointerTypeclone () const
virtual bool isCompatibleType (const Type *other) const
virtual bool isScalarType () const
virtual size_t getSize (const TargetInfo &targetInfo) const
virtual size_t getAlign (const TargetInfo &targetInfo) const
const TypegetBaseType () const
QualFlags getQualFlags () const
void setBaseType (const Type *t)
void setQualFlags (QualFlags qf)

Protected Attributes

const TypebaseType_
QualFlags qualFlags_

Detailed Description

This class represents the pointer type.

Definition at line 42 of file PointerType.hpp.


Constructor & Destructor Documentation

cfront::PointerType::PointerType ( const Type baseType,
QualFlags  qualFlags 
) [inline]

Definition at line 44 of file PointerType.hpp.

Referenced by clone().

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

Definition at line 46 of file PointerType.hpp.

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

Definition at line 50 of file PointerType.hpp.


Member Function Documentation

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

Return the copy of self.

Implements cfront::Type.

Definition at line 52 of file PointerType.hpp.

References PointerType().

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

Tests whether this type is compatible to the given one.

Implements cfront::Type.

Definition at line 57 of file PointerType.hpp.

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

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

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

Reimplemented from cfront::Type.

Definition at line 64 of file PointerType.hpp.

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

Implements cfront::Type.

Definition at line 69 of file PointerType.hpp.

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

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

Implements cfront::Type.

Definition at line 74 of file PointerType.hpp.

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

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

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

Definition at line 84 of file PointerType.hpp.

References qualFlags_.

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

void cfront::PointerType::setBaseType ( const Type t  )  [inline]

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

Definition at line 94 of file PointerType.hpp.

References qualFlags_.


Field Documentation

Definition at line 109 of file PointerType.hpp.

Referenced by getBaseType(), isCompatibleType(), and setBaseType().

Definition at line 110 of file PointerType.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