NamedType Class Reference

#include <include/type.h>

Inheritance diagram for NamedType:

Type List of all members.

Detailed Description

Definition at line 457 of file type.h.

Public Member Functions

virtual Typeclone () const
virtual const char * getCtype (bool final=false) const
const char * getName ()
virtual unsigned getSize () const
virtual bool isCompatible (Type *other, bool all)
virtual bool isNamed () const
virtual Expmatch (Type *pattern)
virtual TypemeetWith (Type *other, bool &ch, bool bHighestPtr)
 NamedType (const char *name)
virtual bool operator< (const Type &other) const
virtual bool operator== (const Type &other) const
TyperesolvesTo () const
virtual ~NamedType ()

Static Public Member Functions

static NamedTypegetAlpha ()

Private Attributes

std::string name

Static Private Attributes

static int nextAlpha = 0

Friends

class XMLProgParser


Constructor & Destructor Documentation

NamedType::NamedType const char *  name  ) 
 

Definition at line 69 of file typeStubs.cpp.

Referenced by getAlpha().

NamedType::~NamedType  )  [virtual]
 

Definition at line 70 of file typeStubs.cpp.


Member Function Documentation

Type * NamedType::clone  )  const [virtual]
 

Implements Type.

Definition at line 71 of file typeStubs.cpp.

References NULL.

NamedType * NamedType::getAlpha  )  [static]
 

Definition at line 993 of file type.cpp.

References NamedType(), and nextAlpha.

Referenced by PointerType::newPtrAlpha().

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

Implements Type.

Definition at line 829 of file type.cpp.

References name.

const char* NamedType::getName  )  [inline]
 

Definition at line 466 of file type.h.

References name.

Referenced by Type::match().

unsigned NamedType::getSize  )  const [virtual]
 

Implements Type.

Definition at line 74 of file typeStubs.cpp.

bool NamedType::isCompatible Type other,
bool  all
[virtual]
 

Implements Type.

Definition at line 1402 of file dfa.cpp.

References Type::isCompatibleWith(), Type::isNamed(), resolvesTo(), and Type::resolvesToVoid().

virtual bool NamedType::isNamed  )  const [inline, virtual]
 

Reimplemented from Type.

Definition at line 465 of file type.h.

Exp * NamedType::match Type pattern  )  [virtual]
 

Reimplemented from Type.

Definition at line 706 of file type.cpp.

References Type::match().

Type * NamedType::meetWith Type other,
bool &  ch,
bool  bHighestPtr
[virtual]
 

Implements Type.

Definition at line 533 of file dfa.cpp.

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

bool NamedType::operator< const Type other  )  const [virtual]
 

Implements Type.

Definition at line 73 of file typeStubs.cpp.

bool NamedType::operator== const Type other  )  const [virtual]
 

Implements Type.

Definition at line 72 of file typeStubs.cpp.

Type * NamedType::resolvesTo  )  const
 

Definition at line 1029 of file type.cpp.

References Type::getNamedType(), and Type::isNamed().

Referenced by isCompatible(), and meetWith().


Friends And Related Function Documentation

friend class XMLProgParser [friend]
 

Reimplemented from Type.

Definition at line 486 of file type.h.


Member Data Documentation

std::string NamedType::name [private]
 

Definition at line 459 of file type.h.

Referenced by getCtype(), getName(), and XMLProgParser::persistToXML().

int NamedType::nextAlpha = 0 [static, private]
 

Definition at line 460 of file type.h.

Referenced by getAlpha().


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