Changeset 5406 for source/ariba/utility/addressing/endpoint_set.hpp
- Timestamp:
- Jul 29, 2009, 10:25:32 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/addressing/endpoint_set.hpp
r5284 r5406 247 247 /// checks whether two end-points are disjoint 248 248 /// (only check lower level addresses) 249 bool is_disjoint_to( const endpoint_set& set ) const {249 bool disjoint_to( const endpoint_set& set ) const { 250 250 scoped_lock lock(const_cast<boost::mutex&>(io_mutex)); 251 251 BOOST_FOREACH( const mac_address& mac, bluetooth ) … … 254 254 if (set.ip.count(ip_) !=0 ) return false; 255 255 return true; 256 } 257 258 bool intersects_with( const endpoint_set& set ) const { 259 return !disjoint_to(set); 260 } 261 262 bool is_subset_of( const endpoint_set& set ) const { 263 throw "Not implemented!"; 264 return false; 256 265 } 257 266 … … 387 396 this->tcp = rhs.tcp; 388 397 } 398 399 /// checks wheter the two endpoint sets are identical 400 bool operator== ( const endpoint_set& rhs ) const { 401 return (rhs.rfcomm == rfcomm && rhs.ip == ip && rhs.tcp == tcp && 402 rhs.bluetooth == bluetooth); 403 } 404 405 bool operator!= ( const endpoint_set& rhs ) const { 406 return !(*this==rhs); 407 } 389 408 }; 390 409
Note:
See TracChangeset
for help on using the changeset viewer.