reSIProcate/DialogUsageManager  9694
Public Member Functions
resip::RedirectManager::Ordering Class Reference

#include <RedirectManager.hxx>

Inheritance diagram for resip::RedirectManager::Ordering:
Inheritance graph
[legend]
Collaboration diagram for resip::RedirectManager::Ordering:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~Ordering ()
virtual bool operator() (const NameAddr &lhs, const NameAddr &rhs) const

Detailed Description

Definition at line 27 of file RedirectManager.hxx.


Constructor & Destructor Documentation

virtual resip::RedirectManager::Ordering::~Ordering ( ) [inline, virtual]

Definition at line 30 of file RedirectManager.hxx.

{}

Member Function Documentation

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;
   }
}

Here is the call graph for this function:


The documentation for this class was generated from the following files: