#include <Key_Adapters.h>
Public Member Functions | |
TAO_Incremental_Key_Generator (void) | |
int | operator() (PortableServer::ObjectId &id) |
Protected Attributes | |
CORBA::ULong | counter_ |
This class is used in adapters of maps that do not produce keys.
Definition at line 41 of file Key_Adapters.h.
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Incremental_Key_Generator::TAO_Incremental_Key_Generator | ( | void | ) |
int TAO_Incremental_Key_Generator::operator() | ( | PortableServer::ObjectId & | id | ) |
Definition at line 23 of file Key_Adapters.cpp.
References ACE_OS::memcpy().
00024 { 00025 // Resize to accommodate the counter. 00026 id.length (sizeof this->counter_); 00027 00028 // Add new key data. 00029 ACE_OS::memcpy (id.get_buffer (), 00030 &++this->counter_, 00031 sizeof this->counter_); 00032 00033 // Success. 00034 return 0; 00035 }
CORBA::ULong TAO_Incremental_Key_Generator::counter_ [protected] |
Definition at line 51 of file Key_Adapters.h.