Changeset 669 in dev for trunk/ab5.0/abdev/ab_common/src/Lexical/Namespace.cpp
- Timestamp:
- Jun 28, 2008, 8:17:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/src/Lexical/Namespace.cpp
r516 r669 24 24 i = i2 + 1; 25 25 } 26 } 27 28 NamespaceScopes NamespaceScopes::operator+ ( const NamespaceScopes &namespaceScopes ) const 29 { 30 NamespaceScopes result = *this; 31 BOOST_FOREACH( const std::string &name, namespaceScopes ) 32 { 33 result.push_back( name ); 34 } 35 return result; 36 } 37 38 bool NamespaceScopes::IsEqual( const NamespaceScopes &namespaceScopes ) const 39 { 40 if( this->size() != namespaceScopes.size() ) 41 { 42 return false; 43 } 44 45 for( int i=static_cast<int>(this->size()-1); i>=0; i-- ) 46 { 47 if( (*this)[i] != namespaceScopes[i] ) 48 { 49 return false; 50 } 51 } 52 53 return true; 26 54 } 27 55
Note:
See TracChangeset
for help on using the changeset viewer.