FuncType Class Reference

#include <include/type.h>

Inheritance diagram for FuncType:

Type List of all members.

Detailed Description

Definition at line 233 of file type.h.

Public Member Functions

virtual Type * clone () const
 FuncType (Signature *sig=NULL)
virtual const char * getCtype (bool final=false) const
void getReturnAndParam (const char *&ret, const char *&param)
Signature * getSignature ()
virtual unsigned getSize () const
virtual bool isCompatible (Type *other, bool all)
virtual bool isFunc () const
virtual Exp * match (Type *pattern)
virtual Type * meetWith (Type *other, bool &ch, bool bHighestPtr)
virtual bool operator< (const Type &other) const
virtual bool operator== (const Type &other) const
void setSignature (Signature *sig)
virtual ~FuncType ()

Private Attributes

Signature * signature

Friends

class XMLProgParser


Constructor & Destructor Documentation

FuncType::FuncType (  Signature *  sig = NULL  ) 
 

Definition at line 61 of file typeStubs.cpp.

FuncType::~FuncType (   )  [virtual]
 

Definition at line 62 of file typeStubs.cpp.


Member Function Documentation

Type * FuncType::clone (   )  const [virtual]
 

Implements Type.

Definition at line 63 of file typeStubs.cpp.

References NULL.

const char * FuncType::getCtype (  bool  final = false  )  const [virtual]
 

Implements Type.

Definition at line 730 of file type.cpp.

References Type::getCtype(), Signature::getNumParams(), Signature::getNumReturns(), Signature::getParamType(), Signature::getReturnType(), NULL, and signature.

void FuncType::getReturnAndParam (  const char *&  ret,
const char *&  param
) 
 

Definition at line 748 of file type.cpp.

References Type::getCtype(), Signature::getNumParams(), Signature::getNumReturns(), Signature::getParamType(), Signature::getReturnType(), NULL, and signature.

Signature* FuncType::getSignature (   )  [inline]
 

Definition at line 243 of file type.h.

References signature.

Referenced by FrontEnd::decode(), and FrontEnd::getEntryPoints().

unsigned FuncType::getSize (   )  const [virtual]
 

Implements Type.

Definition at line 66 of file typeStubs.cpp.

bool FuncType::isCompatible (  Type *  other,
bool  all
)  [virtual]
 

Implements Type.

Definition at line 1381 of file dfa.cpp.

References Type::asFunc(), Type::isCompatibleWith(), Type::resolvesToFunc(), Type::resolvesToSize(), Type::resolvesToUnion(), Type::resolvesToVoid(), signature, and STD_SIZE.

virtual bool FuncType::isFunc (   )  const [inline, virtual]
 

Reimplemented from Type.

Definition at line 239 of file type.h.

Exp * FuncType::match (  Type *  pattern  )  [virtual]
 

Reimplemented from Type.

Definition at line 685 of file type.cpp.

References Type::match().

Type * FuncType::meetWith (  Type *  other,
bool &  ch,
bool  bHighestPtr
)  [virtual]
 

Implements Type.

Definition at line 383 of file dfa.cpp.

References Type::createUnion(), and Type::resolvesToVoid().

bool FuncType::operator< (  const Type &  other  )  const [virtual]
 

Implements Type.

Definition at line 65 of file typeStubs.cpp.

bool FuncType::operator== (  const Type &  other  )  const [virtual]
 

Implements Type.

Definition at line 64 of file typeStubs.cpp.

void FuncType::setSignature (  Signature *  sig  )  [inline]
 

Definition at line 244 of file type.h.

References signature.


Friends And Related Function Documentation

friend class XMLProgParser [friend]
 

Reimplemented from Type.

Definition at line 262 of file type.h.


Member Data Documentation

Signature* FuncType::signature [private]
 

Definition at line 235 of file type.h.

Referenced by getCtype(), getReturnAndParam(), getSignature(), isCompatible(), XMLProgParser::persistToXML(), and setSignature().


The documentation for this class was generated from the following files:
Generated on Tue Sep 19 21:18:42 2006 for Boomerang by  doxygen 1.4.6