cfront::Type Class Reference

#include <Type.hpp>

Inheritance diagram for cfront::Type:

Inheritance graph

Public Types

typedef std::list< Extension * > Extensions

Public Member Functions

 Type ()
virtual Typeclone () const =0
virtual ~Type ()
virtual bool isCompatibleType (const Type *other) const =0
virtual bool isScalarType () const
virtual bool isArithmeticType () const
virtual bool isIntegerType () const
virtual bool isVoidType () const
const ExtensionsgetExtensions () const
void addExtension (Extension *e)
virtual size_t getSize (const TargetInfo &targetInfo) const =0
virtual size_t getAlign (const TargetInfo &targetInfo) const =0

Protected Member Functions

 Type (const Type &other)

Protected Attributes

Extensions extensions_

Data Structures

class  Definition

Detailed Description

The abstract class represents the C types.

Definition at line 62 of file Type.hpp.

Member Typedef Documentation

typedef std::list<Extension*> cfront::Type::Extensions

Container of additional information.

Definition at line 77 of file Type.hpp.

Constructor & Destructor Documentation

cfront::Type::Type (  )  [inline]

Definition at line 79 of file Type.hpp.

cfront::Type::Type ( const Type other  )  [inline, protected]

The copy constructor.

Definition at line 85 of file Type.hpp.

References extensions_.

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

Definition at line 99 of file Type.hpp.

Member Function Documentation

virtual Type* cfront::Type::clone (  )  const [pure virtual]

virtual bool cfront::Type::isCompatibleType ( const Type other  )  const [pure virtual]

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

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

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

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

const Extensions& cfront::Type::getExtensions (  )  const [inline]

Definition at line 131 of file Type.hpp.

References extensions_.

void cfront::Type::addExtension ( Extension e  )  [inline]

Definition at line 136 of file Type.hpp.

References extensions_.

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

virtual size_t cfront::Type::getSize ( const TargetInfo targetInfo  )  const [pure virtual]

virtual size_t cfront::Type::getAlign ( const TargetInfo targetInfo  )  const [pure virtual]

Field Documentation

Definition at line 169 of file Type.hpp.

Referenced by addExtension(), getExtensions(), and Type().

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