Changeset 299 in dev for trunk/abdev/BasicCompiler_Common/include/Class.h
- Timestamp:
- Aug 23, 2007, 6:17:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/Class.h
r293 r299 56 56 const CClass *pSuperClass; 57 57 58 // 継承クラスの型パラメータ(実パラメータ) 59 Types superClassActualTypeParameters; 60 58 61 // Blittable型情報 59 62 Type blittableType; … … 93 96 ar & BOOST_SERIALIZATION_NVP( formalGenericTypes ); 94 97 ar & boost::serialization::make_nvp( "pSuperClass", const_cast<CClass *&>(pSuperClass) ); 98 ar & BOOST_SERIALIZATION_NVP( superClassActualTypeParameters ); 95 99 ar & BOOST_SERIALIZATION_NVP( blittableType ); 96 100 //ar & BOOST_SERIALIZATION_NVP( interfaces ); … … 185 189 this->formalGenericTypes.push_back( genericType ); 186 190 } 191 int GetFormalGenericTypeParameterIndex( const std::string &name ) const 192 { 193 int i = 0; 194 BOOST_FOREACH( const GenericType &genericType, formalGenericTypes ) 195 { 196 if( genericType.GetName() == name ) 197 { 198 return i; 199 } 200 i++; 201 } 202 return -1; 203 } 187 204 bool IsExistFormalGenericTypeParameter( const std::string &name ) const 188 205 { … … 210 227 this->pSuperClass = pSuperClass; 211 228 } 229 const Types &GetSuperClassActualTypeParameters() const 230 { 231 return superClassActualTypeParameters; 232 } 233 void SetSuperClassActualTypeParameters( const Types &actualTypeParameters ) 234 { 235 this->superClassActualTypeParameters = actualTypeParameters; 236 } 212 237 213 238 // Blittable型 … … 270 295 //継承させる 271 296 bool Inherits( const char *inheritNames, int nowLine ); 272 bool InheritsClass( const CClass &inheritsClass, int nowLine );297 bool InheritsClass( const CClass &inheritsClass, const Types &actualTypeParameters, int nowLine ); 273 298 bool InheritsInterface( const CClass &inheritsClass, int nowLine ); 274 299
Note:
See TracChangeset
for help on using the changeset viewer.