cfront::EnumDefinition Class Reference

#include <EnumType.hpp>

Inheritance diagram for cfront::EnumDefinition:

Inheritance graph
Collaboration diagram for cfront::EnumDefinition:

Collaboration graph

Public Member Functions

 EnumDefinition (const std::string &name)
const EnumConstantsgetConsts () const
const std::string & getName () const
void addConst (const std::string &name, const ConstantValue &value)

Private Attributes

EnumConstants consts_
std::string name_

Detailed Description

Definition at line 51 of file EnumType.hpp.

Constructor & Destructor Documentation

cfront::EnumDefinition::EnumDefinition ( const std::string &  name  )  [inline, explicit]

Definition at line 53 of file EnumType.hpp.

Member Function Documentation

const EnumConstants& cfront::EnumDefinition::getConsts (  )  const [inline]

Definition at line 55 of file EnumType.hpp.

References consts_.

const std::string& cfront::EnumDefinition::getName (  )  const [inline]

Definition at line 60 of file EnumType.hpp.

References name_.

void cfront::EnumDefinition::addConst ( const std::string &  name,
const ConstantValue value 
) [inline]

Definition at line 65 of file EnumType.hpp.

References consts_.

Field Documentation

Definition at line 71 of file EnumType.hpp.

Referenced by addConst(), and getConsts().

std::string cfront::EnumDefinition::name_ [private]

Definition at line 72 of file EnumType.hpp.

Referenced by getName().

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