#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.
|
|
Definition at line 17 of file Key_Adapters.cpp.
00018 : counter_ (0) 00019 { 00020 } |
|
|
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 }
|
|
|
Definition at line 51 of file Key_Adapters.h. |
1.3.6