#include <FieldInclusionType.hpp>
Public Member Functions | |
SUDefinition (const std::string &name) | |
virtual | ~SUDefinition () |
virtual size_t | getSize (const TargetInfo &targetInfo) const =0 |
size_t | getAlign (const TargetInfo &targetInfo) const |
bool | isIncomplete () const |
const Fields & | getFields () const |
Environment * | getEnv () const |
const std::string & | getName () const |
void | addField (Type *t, ConstantValue bf, const std::string &name) |
void | setIncomplete (bool b) |
void | setEnv (Environment *env) |
void | setName (const std::string &name) |
Protected Attributes | |
Fields | fields_ |
bool | isIncomplete_ |
Environment * | env_ |
std::string | name_ |
Definition at line 56 of file FieldInclusionType.hpp.
cfront::SUDefinition::SUDefinition | ( | const std::string & | name | ) | [inline, explicit] |
Definition at line 58 of file FieldInclusionType.hpp.
virtual cfront::SUDefinition::~SUDefinition | ( | ) | [inline, virtual] |
Definition at line 60 of file FieldInclusionType.hpp.
virtual size_t cfront::SUDefinition::getSize | ( | const TargetInfo & | targetInfo | ) | const [pure virtual] |
Implemented in cfront::StructDefinition, and cfront::UnionDefinition.
Referenced by cfront::FieldInclusionType::getSize().
size_t cfront::SUDefinition::getAlign | ( | const TargetInfo & | targetInfo | ) | const [inline] |
Definition at line 64 of file FieldInclusionType.hpp.
References getFields().
Referenced by cfront::FieldInclusionType::getAlign(), and cfront::StructDefinition::getSize().
bool cfront::SUDefinition::isIncomplete | ( | ) | const [inline] |
Definition at line 78 of file FieldInclusionType.hpp.
References isIncomplete_.
Referenced by cfront::CAnalyzer::checkStructOrUnionDefinition().
const Fields& cfront::SUDefinition::getFields | ( | ) | const [inline] |
Definition at line 83 of file FieldInclusionType.hpp.
References fields_.
Referenced by getAlign(), cfront::UnionDefinition::getSize(), and cfront::StructDefinition::getSize().
Environment* cfront::SUDefinition::getEnv | ( | ) | const [inline] |
Definition at line 88 of file FieldInclusionType.hpp.
References env_.
Referenced by cfront::CAnalyzer::typeExpr().
const std::string& cfront::SUDefinition::getName | ( | ) | const [inline] |
void cfront::SUDefinition::addField | ( | Type * | t, | |
ConstantValue | bf, | |||
const std::string & | name | |||
) | [inline] |
Definition at line 98 of file FieldInclusionType.hpp.
References fields_.
Referenced by TypeTest::testSizeofType().
void cfront::SUDefinition::setIncomplete | ( | bool | b | ) | [inline] |
void cfront::SUDefinition::setEnv | ( | Environment * | env | ) | [inline] |
void cfront::SUDefinition::setName | ( | const std::string & | name | ) | [inline] |
Fields cfront::SUDefinition::fields_ [protected] |
Definition at line 119 of file FieldInclusionType.hpp.
Referenced by addField(), getFields(), and cfront::StructDefinition::getNthFieldType().
bool cfront::SUDefinition::isIncomplete_ [protected] |
Definition at line 120 of file FieldInclusionType.hpp.
Referenced by isIncomplete(), and setIncomplete().
Environment* cfront::SUDefinition::env_ [protected] |
std::string cfront::SUDefinition::name_ [protected] |