|
reSIProcate/DialogUsageManager
9694
|
#include <RedirectManager.hxx>


Public Member Functions | |
| virtual | ~Ordering () |
| virtual bool | operator() (const NameAddr &lhs, const NameAddr &rhs) const |
Definition at line 27 of file RedirectManager.hxx.
| virtual resip::RedirectManager::Ordering::~Ordering | ( | ) | [inline, virtual] |
Definition at line 30 of file RedirectManager.hxx.
{}
| bool RedirectManager::Ordering::operator() | ( | const NameAddr & | lhs, |
| const NameAddr & | rhs | ||
| ) | const [virtual] |
Definition at line 127 of file RedirectManager.cxx.
References resip::NameAddr::exists(), and resip::ParserCategory::param().
{
if (lhs.exists(p_q))
{
if (rhs.exists(p_q))
{
return lhs.param(p_q) < rhs.param(p_q);
}
else
{
return lhs.param(p_q) < 1000; // 1.0
}
}
else
{
// Note: if lhs is not present and treated as 1.0, it will never to less than rhs
return false;
}
}

1.7.5.1