comma::EnumerationDecl Class Reference

#include <Decl.h>

Inheritance diagram for comma::EnumerationDecl:
Inheritance graph
[legend]
Collaboration diagram for comma::EnumerationDecl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool isSubtypeDeclaration () const
 Returns true if this declaration denotes a subtype declaration.
void generateImplicitDeclarations (AstResource &resource)
unsigned getNumLiterals () const
unsigned genBitsNeeded () const
EnumLiteralfindLiteral (IdentifierInfo *name)
void markAsCharacterType ()
bool isCharacterType () const
const EnumLiteralfindCharacterLiteral (char ch) const
bool hasEncoding (char ch) const
unsigned getEncoding (char ch) const
PosADgetPosAttribute ()
 Returns the declaration corresponding to the Pos attribute.
ValADgetValAttribute ()
 Returns the declaration corresponding to the Val attribute.
FunctionAttribDeclgetAttribute (attrib::AttributeID ID)



const EnumerationTypegetType () const
 Returns the first subtype of this enumeration type declaration.
EnumerationTypegetType ()
 Returns the first subtype of this enumeration type declaration.
const EnumerationTypegetBaseSubtype () const
 Returns the base subtype of this enumeration type declaration.
EnumerationTypegetBaseSubtype ()
 Returns the first subtype of this enumeration type declaration.
const EnumLiteralgetFirstLiteral () const
 Returns the first enumeration literal defined by this declaration.
EnumLiteralgetFirstLiteral ()
 Returns the first subtype of this enumeration type declaration.
const EnumLiteralgetLastLiteral () const
 Returns the last enumeration literal defined by this declaration.
EnumLiteralgetLastLiteral ()
 Returns the first subtype of this enumeration type declaration.

Static Public Member Functions

static bool classof (const EnumerationDecl *node)
 Support isa and dyn_cast.
static bool classof (const Ast *node)

Friends

class AstResource

Detailed Description

Definition at line 1409 of file Decl.h.


Member Function Documentation

static bool comma::EnumerationDecl::classof ( const Ast node  )  [inline, static]

Reimplemented from comma::TypeDecl.

Definition at line 1510 of file Decl.h.

static bool comma::EnumerationDecl::classof ( const EnumerationDecl node  )  [inline, static]

Support isa and dyn_cast.

Reimplemented from comma::TypeDecl.

Definition at line 1509 of file Decl.h.

const EnumLiteral * EnumerationDecl::findCharacterLiteral ( char  ch  )  const

Definition at line 1008 of file Decl.cpp.

EnumLiteral * EnumerationDecl::findLiteral ( IdentifierInfo name  ) 

Definition at line 999 of file Decl.cpp.

unsigned comma::EnumerationDecl::genBitsNeeded (  )  const
void EnumerationDecl::generateImplicitDeclarations ( AstResource resource  ) 

Populates the declarative region of this type with all implicit operations. This must be called once the type has been constructed to gain access to the types operations.

Definition at line 967 of file Decl.cpp.

FunctionAttribDecl * EnumerationDecl::getAttribute ( attrib::AttributeID  ID  ) 

Returns a Pos or Val attribute corresponding to the given ID.

If the given ID does not correspond to an attribute defined for this type an assertion will fire.

Definition at line 1053 of file Decl.cpp.

EnumerationType* comma::EnumerationDecl::getBaseSubtype (  )  [inline]

Returns the first subtype of this enumeration type declaration.

Definition at line 1442 of file Decl.h.

const EnumerationType* comma::EnumerationDecl::getBaseSubtype (  )  const [inline]

Returns the base subtype of this enumeration type declaration.

Definition at line 1439 of file Decl.h.

unsigned comma::EnumerationDecl::getEncoding ( char  ch  )  const [inline]

Definition at line 1491 of file Decl.h.

EnumLiteral * EnumerationDecl::getFirstLiteral (  ) 

Returns the first subtype of this enumeration type declaration.

Definition at line 1029 of file Decl.cpp.

const EnumLiteral * EnumerationDecl::getFirstLiteral (  )  const

Returns the first enumeration literal defined by this declaration.

Definition at line 1024 of file Decl.cpp.

EnumLiteral * EnumerationDecl::getLastLiteral (  ) 

Returns the first subtype of this enumeration type declaration.

Definition at line 1043 of file Decl.cpp.

const EnumLiteral * EnumerationDecl::getLastLiteral (  )  const

Returns the last enumeration literal defined by this declaration.

Definition at line 1038 of file Decl.cpp.

unsigned comma::EnumerationDecl::getNumLiterals (  )  const [inline]

Definition at line 1448 of file Decl.h.

PosAD* comma::EnumerationDecl::getPosAttribute (  )  [inline]

Returns the declaration corresponding to the Pos attribute.

Definition at line 1498 of file Decl.h.

EnumerationType* comma::EnumerationDecl::getType (  )  [inline]

Returns the first subtype of this enumeration type declaration.

Reimplemented from comma::TypeDecl.

Definition at line 1432 of file Decl.h.

const EnumerationType* comma::EnumerationDecl::getType (  )  const [inline]

Returns the first subtype of this enumeration type declaration.

Reimplemented from comma::TypeDecl.

Definition at line 1429 of file Decl.h.

ValAD* comma::EnumerationDecl::getValAttribute (  )  [inline]

Returns the declaration corresponding to the Val attribute.

Definition at line 1501 of file Decl.h.

bool comma::EnumerationDecl::hasEncoding ( char  ch  )  const [inline]

Definition at line 1485 of file Decl.h.

bool comma::EnumerationDecl::isCharacterType (  )  const [inline]

Definition at line 1477 of file Decl.h.

bool comma::EnumerationDecl::isSubtypeDeclaration (  )  const [inline]

Returns true if this declaration denotes a subtype declaration.

Definition at line 1420 of file Decl.h.

void comma::EnumerationDecl::markAsCharacterType (  )  [inline]

Definition at line 1474 of file Decl.h.


Friends And Related Function Documentation

friend class AstResource [friend]

Definition at line 1535 of file Decl.h.


The documentation for this class was generated from the following files:

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1