#include <PointerType.hpp>
Public Member Functions | |
PointerType (const Type *baseType, QualFlags qualFlags) | |
PointerType (const PointerType &other) | |
virtual | ~PointerType () |
virtual PointerType * | clone () 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 Type * | getBaseType () const |
QualFlags | getQualFlags () const |
void | setBaseType (const Type *t) |
void | setQualFlags (QualFlags qf) |
Protected Attributes | |
const Type * | baseType_ |
QualFlags | qualFlags_ |
Definition at line 42 of file PointerType.hpp.
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.
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] |
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] |
Definition at line 79 of file PointerType.hpp.
References baseType_.
Referenced by cfront::CAnalyzer::checkAssignment(), cfront::CAnalyzer::checkCondOperands(), cfront::CAnalyzer::checkPointerArithmeticAdditive(), cfront::CAnalyzer::typeCastExpr(), cfront::CAnalyzer::typeComparisonExpr(), and cfront::CAnalyzer::typeExpr().
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] |
Definition at line 89 of file PointerType.hpp.
References baseType_.
Referenced by cfront::CAnalyzer::buildCompositeDeclaratorType(), and cfront::CAnalyzer::buildPointerDeclaratorType().
void cfront::PointerType::setQualFlags | ( | QualFlags | qf | ) | [inline] |
const Type* cfront::PointerType::baseType_ [protected] |
Definition at line 109 of file PointerType.hpp.
Referenced by getBaseType(), isCompatibleType(), and setBaseType().
QualFlags cfront::PointerType::qualFlags_ [protected] |