00001 // -*- C++ -*- 00002 // 00003 // $Id: Addr.inl 87295 2009-11-02 14:45:59Z johnnyw $ 00004 00005 // Return the address of the address. 00006 00007 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00008 00009 ACE_INLINE bool 00010 ACE_Addr::operator == (const ACE_Addr &sap) const 00011 { 00012 return (sap.addr_type_ == this->addr_type_ && 00013 sap.addr_size_ == this->addr_size_ ); 00014 } 00015 00016 ACE_INLINE bool 00017 ACE_Addr::operator != (const ACE_Addr &sap) const 00018 { 00019 return (sap.addr_type_ != this->addr_type_ || 00020 sap.addr_size_ != this->addr_size_ ); 00021 } 00022 00023 /// Return the size of the address. 00024 ACE_INLINE int 00025 ACE_Addr::get_size (void) const 00026 { 00027 return this->addr_size_; 00028 } 00029 00030 /// Sets the size of the address. 00031 ACE_INLINE void 00032 ACE_Addr::set_size (int size) 00033 { 00034 this->addr_size_ = size; 00035 } 00036 00037 /// Return the type of the address. 00038 ACE_INLINE int 00039 ACE_Addr::get_type (void) const 00040 { 00041 return this->addr_type_; 00042 } 00043 00044 /// Set the type of the address. 00045 ACE_INLINE void 00046 ACE_Addr::set_type (int type) 00047 { 00048 this->addr_type_ = type; 00049 } 00050 00051 ACE_INLINE unsigned long 00052 ACE_Addr::hash (void) const 00053 { 00054 return 0; 00055 } 00056 00057 ACE_END_VERSIONED_NAMESPACE_DECL