Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef ACE_ACTIVE_MAP_MANAGER_H
00015 #define ACE_ACTIVE_MAP_MANAGER_H
00016 #include "ace/pre.h"
00017
00018 #include "ace/ACE_export.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #include "ace/Basic_Types.h"
00025
00026 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 class ACE_Export ACE_Active_Map_Manager_Key
00038 {
00039 public:
00040
00041 ACE_Active_Map_Manager_Key (void);
00042
00043
00044
00045
00046
00047
00048 ACE_Active_Map_Manager_Key (ACE_UINT32 slot_index,
00049 ACE_UINT32 slot_generation);
00050
00051
00052 ACE_UINT32 slot_index (void) const;
00053
00054
00055 void slot_index (ACE_UINT32 i);
00056
00057
00058 ACE_UINT32 slot_generation (void) const;
00059
00060
00061 void slot_generation (ACE_UINT32 g);
00062
00063
00064 static size_t size (void);
00065
00066
00067
00068 void decode (const void *data);
00069
00070
00071
00072 void encode (void *data) const;
00073
00074
00075 bool operator== (const ACE_Active_Map_Manager_Key &rhs) const;
00076 bool operator!= (const ACE_Active_Map_Manager_Key &rhs) const;
00077
00078
00079
00080
00081
00082 void increment_slot_generation_count (void);
00083
00084 private:
00085
00086
00087
00088
00089
00090
00091
00092
00093 struct key_data
00094 {
00095
00096 ACE_UINT32 slot_index_;
00097
00098
00099 ACE_UINT32 slot_generation_;
00100 };
00101
00102
00103 key_data key_data_;
00104 };
00105
00106 ACE_END_VERSIONED_NAMESPACE_DECL
00107
00108 #if defined (__ACE_INLINE__)
00109 #include "ace/Active_Map_Manager.inl"
00110 #endif
00111
00112
00113 #include "ace/Active_Map_Manager_T.h"
00114
00115 #include "ace/post.h"
00116 #endif