Changeset 670 in dev for trunk/ab5.0/abdev/ab_common/include/Lexical
- Timestamp:
- Jun 28, 2008, 9:58:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/include/Lexical/NamespaceSupporter.h
r669 r670 25 25 } 26 26 27 const NamespaceScopesCollection &GetImportedNamespaces() 27 const NamespaceScopesCollection &GetImportedNamespaces() const 28 28 { 29 29 return importedNamespaces; … … 60 60 // entryName = "ActiveBasic" 61 61 // この場合、living は entryName を包括している。 62 bool IsCoverd( const NamespaceScopes &namespaceScopes, const std::string &entryName ) const 63 { 64 if( namespaceScopes.IsEqual( entryName ) ) 65 { 66 return true; 67 } 68 69 std::string thisStr = namespaceScopes.ToString(); 70 71 NamespaceScopes tempLivingNamespaceScopes = livingNamespaceScopes; 72 73 while( tempLivingNamespaceScopes.size() ) 74 { 75 std::string tempStr = tempLivingNamespaceScopes.ToString() + "." + entryName; 76 if( thisStr == tempStr ) 77 { 78 return true; 79 } 80 81 tempLivingNamespaceScopes.pop_back(); 82 } 83 return false; 84 } 85 bool IsCoverd( const NamespaceScopes &baseNamespaceScopes, const NamespaceScopes &entryNamespaceScopes ) const 86 { 87 return IsCoverd( baseNamespaceScopes, entryNamespaceScopes.ToString() ); 88 } 62 bool IsCoverd( const NamespaceScopes &base, const NamespaceScopes &entry ) const; 89 63 90 64
Note:
See TracChangeset
for help on using the changeset viewer.