summaryrefslogtreecommitdiff
path: root/ace/Active_Map_Manager.i
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-20 05:47:24 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-20 05:47:24 +0000
commit25087bc8ad183cc380a9fd8991f78a0e062ace6b (patch)
treed7f18d74903d65f4bf389b7b1c41397f2f704dbc /ace/Active_Map_Manager.i
parent0fb1a686b49c2ae42d11d629a53a3b1cca26cd9d (diff)
downloadATCD-25087bc8ad183cc380a9fd8991f78a0e062ace6b.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Active_Map_Manager.i')
-rw-r--r--ace/Active_Map_Manager.i94
1 files changed, 47 insertions, 47 deletions
diff --git a/ace/Active_Map_Manager.i b/ace/Active_Map_Manager.i
index 8980a49002f..e05bc9d3251 100644
--- a/ace/Active_Map_Manager.i
+++ b/ace/Active_Map_Manager.i
@@ -1,109 +1,109 @@
// $Id$
-ACE_INLINE
+ACE_INLINE
ACE_Active_Map_Manager_Key::ACE_Active_Map_Manager_Key (void)
- : index_ (~0),
- generation_ (0)
+ : slot_index_ (~0),
+ slot_generation_ (0)
{
// If you change ~0, please change ACE_Map_Manager::free_list_id()
// accordingly.
}
-ACE_INLINE
-ACE_Active_Map_Manager_Key::ACE_Active_Map_Manager_Key (u_long index,
- u_long generation)
- : index_ (index),
- generation_ (generation)
+ACE_INLINE
+ACE_Active_Map_Manager_Key::ACE_Active_Map_Manager_Key (ACE_UINT32 slot_index,
+ ACE_UINT32 slot_generation)
+ : slot_index_ (slot_index),
+ slot_generation_ (slot_generation)
{
}
-ACE_INLINE u_long
-ACE_Active_Map_Manager_Key::index (void) const
+ACE_INLINE ACE_UINT32
+ACE_Active_Map_Manager_Key::slot_index (void) const
{
- return this->index_;
+ return this->slot_index_;
}
-
-ACE_INLINE u_long
-ACE_Active_Map_Manager_Key::generation (void) const
+
+ACE_INLINE ACE_UINT32
+ACE_Active_Map_Manager_Key::slot_generation (void) const
{
- return this->generation_;
+ return this->slot_generation_;
}
-ACE_INLINE int
+ACE_INLINE int
ACE_Active_Map_Manager_Key::operator== (const ACE_Active_Map_Manager_Key &rhs) const
{
- return
- this->index_ == rhs.index_ &&
- this->generation_ == rhs.generation_;
+ return
+ this->slot_index_ == rhs.slot_index_ &&
+ this->slot_generation_ == rhs.slot_generation_;
}
-ACE_INLINE int
+ACE_INLINE int
ACE_Active_Map_Manager_Key::operator!= (const ACE_Active_Map_Manager_Key &rhs) const
{
return !this->operator== (rhs);
}
-ACE_INLINE void
-ACE_Active_Map_Manager_Key::index (u_long i)
+ACE_INLINE void
+ACE_Active_Map_Manager_Key::slot_index (ACE_UINT32 i)
{
- this->index_ = i;
+ this->slot_index_ = i;
}
-
-ACE_INLINE void
-ACE_Active_Map_Manager_Key::generation (u_long g)
+
+ACE_INLINE void
+ACE_Active_Map_Manager_Key::slot_generation (ACE_UINT32 g)
{
- this->generation_ = g;
+ this->slot_generation_ = g;
}
-ACE_INLINE void
-ACE_Active_Map_Manager_Key::increment_generation_count (void)
+ACE_INLINE void
+ACE_Active_Map_Manager_Key::increment_slot_generation_count (void)
{
- ++this->generation_;
+ ++this->slot_generation_;
}
/* static */
ACE_INLINE size_t
ACE_Active_Map_Manager_Key::size (void)
{
- return sizeof (u_long) + sizeof (u_long);
+ return sizeof (ACE_UINT32) + sizeof (ACE_UINT32);
}
-ACE_INLINE void
+ACE_INLINE void
ACE_Active_Map_Manager_Key::decode (const void *d)
{
// Cast so that we can do pointer arithmetic.
const char *data = (const char *) d;
- // Grab the index first.
- ACE_OS::memcpy (&this->index_,
+ // Grab the slot_index first.
+ ACE_OS::memcpy (&this->slot_index_,
data,
- sizeof this->index_);
+ sizeof this->slot_index_);
// Move along...
- data += sizeof this->index_;
+ data += sizeof this->slot_index_;
- // Grab the generation second.
- ACE_OS::memcpy (&this->generation_,
+ // Grab the slot_generation second.
+ ACE_OS::memcpy (&this->slot_generation_,
data,
- sizeof this->generation_);
+ sizeof this->slot_generation_);
}
-ACE_INLINE void
+ACE_INLINE void
ACE_Active_Map_Manager_Key::encode (void *d) const
{
// Cast so that we can do pointer arithmetic.
char *data = (char *) d;
- // Grab the index first.
+ // Grab the slot_index first.
ACE_OS::memcpy (data,
- &this->index_,
- sizeof this->index_);
+ &this->slot_index_,
+ sizeof this->slot_index_);
// Move along...
- data += sizeof this->index_;
+ data += sizeof this->slot_index_;
- // Grab the generation second.
+ // Grab the slot_generation second.
ACE_OS::memcpy (data,
- &this->generation_,
- sizeof this->generation_);
+ &this->slot_generation_,
+ sizeof this->slot_generation_);
}