2009-12-11 17:56:31 +01:00
|
|
|
#include "mobile.hh"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** Opérateurs ***/
|
|
|
|
|
|
|
|
|
2010-01-13 15:29:44 +01:00
|
|
|
const Mobile& Mobile::operator=(const Mobile &m)
|
2009-12-11 17:56:31 +01:00
|
|
|
{
|
|
|
|
if (this == &m)
|
|
|
|
return *this ;
|
|
|
|
|
|
|
|
this->WifiDevice::operator=(m) ;
|
|
|
|
|
|
|
|
return *this ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Mobile::operator==(const Mobile &m) const
|
|
|
|
{
|
|
|
|
if (this == &m)
|
|
|
|
return true ;
|
|
|
|
|
|
|
|
return
|
|
|
|
this->WifiDevice::operator==(m) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-01-04 17:10:42 +01:00
|
|
|
std::ostream &operator<<(std::ostream &os, const Mobile &m)
|
2009-12-11 17:56:31 +01:00
|
|
|
{
|
|
|
|
os << (WifiDevice) m ;
|
|
|
|
|
|
|
|
return os ;
|
|
|
|
}
|