Changeset 409 in dev for trunk/abdev/BasicCompiler_Common/include/Class.h
- Timestamp:
- Mar 3, 2008, 6:33:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/Class.h
r387 r409 221 221 , isCompilingDestructor( false ) 222 222 , pobj_NextClass( NULL ) 223 , cacheSize( 0 ) 223 224 { 224 225 } … … 239 240 , isCompilingDestructor( false ) 240 241 , pobj_NextClass( NULL ) 242 , cacheSize( 0 ) 241 243 { 242 244 } … … 423 425 424 426 //重複チェック 425 bool DupliCheckAll(const char *name) ;426 bool DupliCheckMember(const char *name) ;427 bool DupliCheckAll(const char *name) const; 428 bool DupliCheckMember(const char *name) const; 427 429 428 430 const Members &GetDynamicMembers() const … … 443 445 } 444 446 445 const CMember *FindDynamicMember( const char *memberName ) const 446 { 447 BOOST_FOREACH( CMember *pMember, GetDynamicMembers() ) 448 { 449 if( pMember->GetName() == memberName ) 450 { 451 return pMember; 452 } 453 } 454 return NULL; 447 const CMember *FindDynamicMember( const char *memberName ) const; 448 bool HasDynamicMember( const char *memberName ) const 449 { 450 return ( FindDynamicMember( memberName ) != NULL ); 455 451 } 456 452 … … 503 499 504 500 // メンバの総合サイズを取得 501 private: 502 int cacheSize; 503 public: 505 504 int GetSize() const; 506 505 507 506 // メンバのオフセットを取得 508 int GetMemberOffset( const char *memberName , int *pMemberNum = NULL) const;507 int GetMemberOffset( const char *memberName ) const; 509 508 private: 510 509 // アラインメント値を取得 … … 531 530 bool IsExistVirtualFunctions() const 532 531 { 533 return ( vtblNum > 0 ); 532 // 構造体以外は仮想関数を持つ 533 return !IsStructure(); 534 534 } 535 535
Note:
See TracChangeset
for help on using the changeset viewer.