cfront::FunctionType Class Reference

#include <FunctionType.hpp>

Inheritance diagram for cfront::FunctionType:

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

Collaboration graph
[legend]

Public Member Functions

 FunctionType (Type *retType=NULL)
 FunctionType (const FunctionType &other)
virtual ~FunctionType ()
virtual FunctionTypeclone () const
virtual bool isCompatibleType (const Type *other) const
virtual size_t getSize (const TargetInfo &targetInfo) const
virtual size_t getAlign (const TargetInfo &targetInfo) const
const TypegetReturnType () const
const ParameterTypesgetParameterTypes () const
void addParameterType (Type *t)
void setVararg (bool hasVararg)
bool hasVararg () const
void setReturnType (Type *t)

Protected Attributes

TypereturnType_
ParameterTypes parameterTypes_
bool hasVararg_

Detailed Description

This class represents the function type.

Definition at line 46 of file FunctionType.hpp.


Constructor & Destructor Documentation

cfront::FunctionType::FunctionType ( Type retType = NULL  )  [inline]

Definition at line 48 of file FunctionType.hpp.

Referenced by clone().

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

Definition at line 50 of file FunctionType.hpp.

References parameterTypes_.

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

Definition at line 59 of file FunctionType.hpp.


Member Function Documentation

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

Return the copy of self.

Implements cfront::Type.

Definition at line 61 of file FunctionType.hpp.

References FunctionType().

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

Tests whether this type is compatible to the given one.

Implements cfront::Type.

Definition at line 66 of file FunctionType.hpp.

References cfront::Type::isCompatibleType(), parameterTypes_, and returnType_.

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

Implements cfront::Type.

Definition at line 86 of file FunctionType.hpp.

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

Referenced by TypeTest::testSizeofType().

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

Implements cfront::Type.

Definition at line 91 of file FunctionType.hpp.

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

const Type* cfront::FunctionType::getReturnType (  )  const [inline]

Definition at line 96 of file FunctionType.hpp.

References returnType_.

const ParameterTypes& cfront::FunctionType::getParameterTypes (  )  const [inline]

Definition at line 101 of file FunctionType.hpp.

References parameterTypes_.

void cfront::FunctionType::addParameterType ( Type t  )  [inline]

Definition at line 106 of file FunctionType.hpp.

References parameterTypes_.

Referenced by TypeTest::testSizeofType().

void cfront::FunctionType::setVararg ( bool  hasVararg  )  [inline]

Definition at line 111 of file FunctionType.hpp.

References hasVararg_.

bool cfront::FunctionType::hasVararg (  )  const [inline]

Definition at line 116 of file FunctionType.hpp.

References hasVararg_.

void cfront::FunctionType::setReturnType ( Type t  )  [inline]


Field Documentation

Definition at line 144 of file FunctionType.hpp.

Referenced by getReturnType(), isCompatibleType(), and setReturnType().

Definition at line 146 of file FunctionType.hpp.

Referenced by hasVararg(), and setVararg().


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