Ignore:
Timestamp:
Jul 29, 2009, 10:25:32 AM (15 years ago)
Author:
mies
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/addressing/endpoint_set.hpp

    r5284 r5406  
    247247        /// checks whether two end-points are disjoint
    248248        /// (only check lower level addresses)
    249         bool is_disjoint_to( const endpoint_set& set ) const {
     249        bool disjoint_to( const endpoint_set& set ) const {
    250250                scoped_lock lock(const_cast<boost::mutex&>(io_mutex));
    251251                BOOST_FOREACH( const mac_address& mac, bluetooth )
     
    254254                        if (set.ip.count(ip_) !=0 ) return false;
    255255                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;
    256265        }
    257266
     
    387396                this->tcp = rhs.tcp;
    388397        }
     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        }
    389408};
    390409
Note: See TracChangeset for help on using the changeset viewer.