cfront::GccIntegerAttribute Class Reference

#include <GccIntegerAttribute.hpp>

Inheritance diagram for cfront::GccIntegerAttribute:

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

Collaboration graph
[legend]

Public Member Functions

 GccIntegerAttribute (const std::string &name, int value)
virtual const std::string & getName () const
int getValue () const
void setValue (int v)

Private Attributes

std::string name_
int value_

Detailed Description

This class represents the integer value of GCC '__attribute__'.

Definition at line 44 of file GccIntegerAttribute.hpp.


Constructor & Destructor Documentation

cfront::GccIntegerAttribute::GccIntegerAttribute ( const std::string &  name,
int  value 
) [inline]

Definition at line 46 of file GccIntegerAttribute.hpp.


Member Function Documentation

virtual const std::string& cfront::GccIntegerAttribute::getName (  )  const [inline, virtual]

return the name of this information.

Implements cfront::Extension.

Definition at line 49 of file GccIntegerAttribute.hpp.

References name_.

Referenced by cfront::CAnalyzer::setTypeAttribute(), and cfront::CAnalyzer::setVariableAttribute().

int cfront::GccIntegerAttribute::getValue (  )  const [inline]

Definition at line 54 of file GccIntegerAttribute.hpp.

References value_.

Referenced by cfront::CAnalyzer::setTypeAttribute().

void cfront::GccIntegerAttribute::setValue ( int  v  )  [inline]

Definition at line 59 of file GccIntegerAttribute.hpp.

References value_.


Field Documentation

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

Definition at line 65 of file GccIntegerAttribute.hpp.

Referenced by getName().

Definition at line 66 of file GccIntegerAttribute.hpp.

Referenced by getValue(), and setValue().


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