Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_PI_CURRENT_IMPL_H
00014 #define TAO_PI_CURRENT_IMPL_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "tao/PI/pi_export.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #include "tao/orbconf.h"
00025
00026 #if TAO_HAS_INTERCEPTORS == 1
00027
00028 #include "tao/PI/PI_includeC.h"
00029 #include "tao/AnyTypeCode/Any.h"
00030 #include "ace/Array_Base.h"
00031
00032 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00033
00034
00035 class TAO_ORB_Core;
00036
00037 namespace TAO
00038 {
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 class TAO_PI_Export PICurrent_Impl
00050 {
00051 public:
00052
00053 PICurrent_Impl (TAO_ORB_Core *orb_core= 0,
00054 size_t tss_slot= 0,
00055 PICurrent_Impl *pop= 0);
00056
00057 ~PICurrent_Impl (void);
00058
00059
00060
00061 CORBA::Any *get_slot (PortableInterceptor::SlotId identifier);
00062
00063
00064 void set_slot (PortableInterceptor::SlotId identifier,
00065 const CORBA::Any & data);
00066
00067
00068 void take_lazy_copy (PICurrent_Impl *p);
00069
00070
00071 void push (void);
00072
00073
00074 void pop (void);
00075
00076 private:
00077
00078
00079 void convert_from_lazy_to_real_copy ();
00080
00081
00082
00083
00084
00085
00086 void set_callback_for_impending_change (PICurrent_Impl *p);
00087
00088
00089 typedef ACE_Array_Base<CORBA::Any> Table;
00090
00091
00092
00093
00094
00095
00096
00097 Table & current_slot_table ();
00098
00099
00100
00101
00102 PICurrent_Impl (const PICurrent_Impl &);
00103 void operator= (const PICurrent_Impl &);
00104
00105
00106 private:
00107
00108 TAO_ORB_Core *orb_core_;
00109 size_t tss_slot_;
00110 PICurrent_Impl *pop_;
00111 PICurrent_Impl *push_;
00112
00113
00114 Table slot_table_;
00115
00116
00117
00118 PICurrent_Impl *lazy_copy_;
00119
00120
00121
00122
00123
00124
00125 PICurrent_Impl *impending_change_callback_;
00126 };
00127 }
00128
00129 TAO_END_VERSIONED_NAMESPACE_DECL
00130
00131 #if defined (__ACE_INLINE__)
00132 # include "tao/PI/PICurrent_Impl.inl"
00133 #endif
00134
00135 #endif
00136
00137 #include "ace/post.h"
00138
00139 #endif