ObjectKey_Table.cpp File Reference

#include "tao/ObjectKey_Table.h"
#include "tao/ORB_Core.h"
#include "tao/Refcounted_ObjectKey.h"
Include dependency graph for ObjectKey_Table.cpp:

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

Function Documentation

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 }

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Nov 22 23:24:53 2009 for TAO by  doxygen 1.6.1