Added BaseType::setType()

This commit is contained in:
Roberto Raggi
2010-01-06 11:23:41 +01:00
parent ce684eb664
commit 6d47004cc3
2 changed files with 6 additions and 1 deletions

View File

@@ -475,7 +475,10 @@ BaseClass::~BaseClass()
{ }
FullySpecifiedType BaseClass::type() const
{ return FullySpecifiedType(); }
{ return _type; }
void BaseClass::setType(const FullySpecifiedType &type)
{ _type = type; }
bool BaseClass::isVirtual() const
{ return _isVirtual; }

View File

@@ -436,6 +436,7 @@ public:
// Symbol's interface
virtual FullySpecifiedType type() const;
void setType(const FullySpecifiedType &type);
virtual const BaseClass *asBaseClass() const
{ return this; }
@@ -448,6 +449,7 @@ protected:
private:
bool _isVirtual;
FullySpecifiedType _type;
};
class CPLUSPLUS_EXPORT Class: public ScopedSymbol, public Type