#include "tao/ObjectKey_Table.h"#include "tao/ORB_Core.h"#include "tao/Refcounted_ObjectKey.h"
Go to the source code of this file.
Functions | |
| ACE_RCSID (tao, ObjectKey_Table,"$Id: ObjectKey_Table.cpp 76932 2007-02-06 16:34:57Z johnnyw $") 1 bool TAO | |
| ACE_RCSID | ( | tao | , | |
| ObjectKey_Table | , | |||
| "$Id: ObjectKey_Table.cpp 76932 2007-02-06 16:34:57Z johnnyw $" | ||||
| ) |
Definition at line 7 of file ObjectKey_Table.cpp.
00009 : ObjectKey_Table.cpp 76932 2007-02-06 16:34:57Z johnnyw $") 00010 00011 00012 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00013 00014 bool 00015 TAO::Less_Than_ObjectKey::operator () (const TAO::ObjectKey &lhs, 00016 const TAO::ObjectKey &rhs) const 00017 { 00018 const CORBA::ULong rlen = rhs.length (); 00019 const CORBA::ULong llen = lhs.length (); 00020 if (llen < rlen) 00021 { 00022 return 1; 00023 } 00024 else if (llen > rlen) 00025 { 00026 return 0; 00027 } 00028 00029 const CORBA::Octet * rhs_buff = rhs.get_buffer (); 00030 const CORBA::Octet * lhs_buff = lhs.get_buffer (); 00031 const bool result = (ACE_OS::memcmp (lhs_buff, rhs_buff, rlen) < 0); 00032 00033 return result; 00034 }
1.6.1