Files
TCPlayerbotCore/dep/ACE_wrappers/ace/Addr.inl
T

62 lines
1.0 KiB
C++
Raw Normal View History

// -*- C++ -*-
//
// $Id: Addr.inl 80826 2008-03-04 14:51:23Z wotte $
2009-10-17 15:51:44 -07:00
// Return the address of the address.
2009-10-17 15:51:44 -07:00
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
2009-10-17 15:51:44 -07:00
ACE_INLINE bool
ACE_Addr::operator == (const ACE_Addr &sap) const
{
return (sap.addr_type_ == this->addr_type_ &&
sap.addr_size_ == this->addr_size_ );
}
2009-10-17 15:51:44 -07:00
ACE_INLINE bool
ACE_Addr::operator != (const ACE_Addr &sap) const
{
return (sap.addr_type_ != this->addr_type_ ||
sap.addr_size_ != this->addr_size_ );
}
2009-10-17 15:51:44 -07:00
// Return the size of the address.
2009-10-17 15:51:44 -07:00
ACE_INLINE int
ACE_Addr::get_size (void) const
{
return this->addr_size_;
}
2009-10-17 15:51:44 -07:00
// Sets the size of the address.
2009-10-17 15:51:44 -07:00
ACE_INLINE void
ACE_Addr::set_size (int size)
{
this->addr_size_ = size;
}
2009-10-17 15:51:44 -07:00
// Return the type of the address.
2009-10-17 15:51:44 -07:00
ACE_INLINE int
ACE_Addr::get_type (void) const
{
return this->addr_type_;
}
2009-10-17 15:51:44 -07:00
// Set the type of the address.
2009-10-17 15:51:44 -07:00
ACE_INLINE void
ACE_Addr::set_type (int type)
{
this->addr_type_ = type;
}
2009-10-17 15:51:44 -07:00
ACE_INLINE unsigned long
ACE_Addr::hash (void) const
{
return 0;
}
2009-10-17 15:51:44 -07:00
ACE_END_VERSIONED_NAMESPACE_DECL