Changeset 750 in dev for trunk/ab5.0/abdev/ab_common/src/Lexical/Class.cpp
- Timestamp:
- Sep 24, 2008, 2:02:16 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/src/Lexical/Class.cpp
r735 r750 99 99 // 仮想関数になるメソッドに使用チェックをつける 100 100 const CClass &_class = *this; 101 BOOST_FOREACH( const CMethod *pMethod, _class.GetDynamicMethods() )101 foreach( const CMethod *pMethod, _class.GetDynamicMethods() ) 102 102 { 103 103 if( pMethod->IsVirtual() ) … … 108 108 109 109 // インターフェイスメソッドに使用チェックをつける 110 BOOST_FOREACH( const ::Interface *pInterface, _class.GetInterfaces() )111 { 112 BOOST_FOREACH( const CMethod *pMethod, pInterface->GetDynamicMethods() )110 foreach( const ::Interface *pInterface, _class.GetInterfaces() ) 111 { 112 foreach( const CMethod *pMethod, pInterface->GetDynamicMethods() ) 113 113 { 114 114 pMethod->GetUserProc().Using(); … … 210 210 bool CClass::IsInheritsInterface( const CClass *pInterfaceClass ) const 211 211 { 212 BOOST_FOREACH( const ::Interface *pInterface, interfaces ){212 foreach( const ::Interface *pInterface, interfaces ){ 213 213 if( pInterfaceClass == &pInterface->GetClass() ){ 214 214 return true; … … 223 223 const Methods& inheritsClassMethods = inheritsClass.GetDynamicMethods(); 224 224 GetDynamicMethods().reserve( inheritsClassMethods.size() ); 225 BOOST_FOREACH( const CMethod *pBaseMethod, inheritsClassMethods ){225 foreach( const CMethod *pBaseMethod, inheritsClassMethods ){ 226 226 CMethod *pMethod = new DynamicMethod( *pBaseMethod ); 227 227 … … 256 256 const Interfaces& inheritsClassInterfaces = inheritsClass.GetInterfaces(); 257 257 interfaces.reserve( inheritsClassInterfaces.size() ); 258 BOOST_FOREACH( const ::Interface *pInterface, inheritsClassInterfaces )258 foreach( const ::Interface *pInterface, inheritsClassInterfaces ) 259 259 { 260 260 interfaces.push_back( new ::Interface( *pInterface ) ); … … 298 298 299 299 //メソッド 300 BOOST_FOREACH( const CMethod *pMethod, GetDynamicMethods() ){300 foreach( const CMethod *pMethod, GetDynamicMethods() ){ 301 301 if( name == pMethod->GetUserProc().GetName() ){ 302 302 return 1; … … 320 320 321 321 // 動的メンバ 322 BOOST_FOREACH( const Member *pMember, dynamicMembers )322 foreach( const Member *pMember, dynamicMembers ) 323 323 { 324 324 if( GetName() == pMember->GetName() ) … … 329 329 330 330 // 静的メンバ 331 BOOST_FOREACH( Member *pMember, staticMembers ){331 foreach( Member *pMember, staticMembers ){ 332 332 if( GetName() == pMember->GetName() ){ 333 333 return true; … … 350 350 } 351 351 352 BOOST_FOREACH( Member *pMember, GetDynamicMembers() )352 foreach( Member *pMember, GetDynamicMembers() ) 353 353 { 354 354 if( pMember->GetName() == memberName ) … … 366 366 367 367 // インターフェイス メソッド 368 BOOST_FOREACH( ::Interface *pInterface, GetInterfaces() )368 foreach( ::Interface *pInterface, GetInterfaces() ) 369 369 { 370 370 pInterface->GetDynamicMethods().Enum( methodName, subs ); … … 379 379 { 380 380 // インターフェイス メソッド 381 BOOST_FOREACH( ::Interface *pInterface, GetInterfaces() )381 foreach( ::Interface *pInterface, GetInterfaces() ) 382 382 { 383 383 result = pInterface->GetDynamicMethods().GetMethodPtr( pUserProc ); … … 446 446 } 447 447 448 BOOST_FOREACH( Member *pMember, dynamicMembers )448 foreach( Member *pMember, dynamicMembers ) 449 449 { 450 450 const Type& memberType = pMember->GetType(); … … 553 553 } 554 554 555 BOOST_FOREACH( Member *pMember, dynamicMembers )555 foreach( Member *pMember, dynamicMembers ) 556 556 { 557 557 // メンバサイズ … … 654 654 } 655 655 656 BOOST_FOREACH( Member *pMember, dynamicMembers )656 foreach( Member *pMember, dynamicMembers ) 657 657 { 658 658 int tempAlignment = pMember->GetType().GetSize(); … … 678 678 679 679 vtblIndex = 0; 680 BOOST_FOREACH( const CMethod *pMethod, GetDynamicMethods() ){680 foreach( const CMethod *pMethod, GetDynamicMethods() ){ 681 681 if( &pMethod->GetUserProc() == pUserProc ) 682 682 { … … 690 690 } 691 691 692 BOOST_FOREACH( const ::Interface *pInterface, interfaces )692 foreach( const ::Interface *pInterface, interfaces ) 693 693 { 694 694 vtblMasterListIndex++; 695 695 696 696 vtblIndex = 0; 697 BOOST_FOREACH( const CMethod *pMethod, pInterface->GetDynamicMethods() ){697 foreach( const CMethod *pMethod, pInterface->GetDynamicMethods() ){ 698 698 if( &pMethod->GetUserProc() == pUserProc ) 699 699 { … … 715 715 int result = 0; 716 716 717 BOOST_FOREACH( const ::Interface *pInterface, interfaces )717 foreach( const ::Interface *pInterface, interfaces ) 718 718 { 719 719 result++; … … 742 742 // 未実装(abstract)の仮想関数を持つ場合はtrueを返す 743 743 744 BOOST_FOREACH( const CMethod *pMethod, GetDynamicMethods() ){744 foreach( const CMethod *pMethod, GetDynamicMethods() ){ 745 745 if(pMethod->IsVirtual()){ 746 746 if(pMethod->IsAbstract()){ … … 751 751 752 752 // インターフェイスのvtbl 753 BOOST_FOREACH( const ::Interface *pInterface, interfaces )754 { 755 BOOST_FOREACH( const CMethod *pMethod, pInterface->GetDynamicMethods() ){753 foreach( const ::Interface *pInterface, interfaces ) 754 { 755 foreach( const CMethod *pMethod, pInterface->GetDynamicMethods() ){ 756 756 if(pMethod->IsVirtual()){ 757 757 if(pMethod->IsAbstract()){ … … 791 791 pClass = classes.front(); 792 792 793 BOOST_FOREACH( const CClass *pTempClass, classes )793 foreach( const CClass *pTempClass, classes ) 794 794 { 795 795 if( pClass->GetNamespaceScopes().size() < pTempClass->GetNamespaceScopes().size() ) … … 837 837 std::string result; 838 838 839 BOOST_FOREACH( const Member *pMember, dynamicMembers )839 foreach( const Member *pMember, dynamicMembers ) 840 840 { 841 841 if( result.size() ) … … 853 853 std::string result; 854 854 855 BOOST_FOREACH( const Member *pMember, dynamicMembers )855 foreach( const Member *pMember, dynamicMembers ) 856 856 { 857 857 if( result.size() ) … … 874 874 { 875 875 const CClass &thisClass = *this; 876 BOOST_FOREACH( const Member *pMember, thisClass.GetDynamicMembers() )876 foreach( const Member *pMember, thisClass.GetDynamicMembers() ) 877 877 { 878 878 if( pMember->GetType().IsObject() || pMember->GetType().IsPointer() ) … … 935 935 936 936 // 実装するインターフェイス 937 BOOST_FOREACH( ::Interface *pInterface, interfaces )937 foreach( ::Interface *pInterface, interfaces ) 938 938 { 939 939 pInterface->Resolve( resolver, resolveErrors ); … … 941 941 942 942 // 動的メンバ 943 BOOST_FOREACH( Member *pMember, dynamicMembers )943 foreach( Member *pMember, dynamicMembers ) 944 944 { 945 945 pMember->Resolve( resolver, resolveErrors ); … … 947 947 948 948 // 静的メンバ 949 BOOST_FOREACH( Member *pMember, staticMembers )949 foreach( Member *pMember, staticMembers ) 950 950 { 951 951 pMember->Resolve( resolver, resolveErrors ); … … 953 953 954 954 // 動的メソッド 955 BOOST_FOREACH( CMethod *pMethod, GetDynamicMethods() )955 foreach( CMethod *pMethod, GetDynamicMethods() ) 956 956 { 957 957 pMethod->Resolve( resolver, resolveErrors ); … … 959 959 960 960 // 静的メソッド 961 BOOST_FOREACH( CMethod *pMethod, staticMethods )961 foreach( CMethod *pMethod, staticMethods ) 962 962 { 963 963 pMethod->Resolve( resolver, resolveErrors ); … … 965 965 966 966 // テンプレート展開後のクラス 967 BOOST_FOREACH( ActiveBasic::Common::Lexical::ExpandedTemplateClass *pExpandedTemplateClass, expandedTemplateClasses )967 foreach( ActiveBasic::Common::Lexical::ExpandedTemplateClass *pExpandedTemplateClass, expandedTemplateClasses ) 968 968 { 969 969 pExpandedTemplateClass->Resolve( resolver, resolveErrors );
Note:
See TracChangeset
for help on using the changeset viewer.