Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / orbsvcs / IFR_Service / ifr_visitor.cpp
blobbccf3878e6f41d851ee02ac8727d79bf4de0032a
1 /* -*- c++ -*- */
2 #include "ifr_visitor.h"
4 #include "global_extern.h"
5 #include "utl_err.h"
7 #include "ace/Lock_Adapter_T.h"
8 #include "ace/Synch_Traits.h"
9 #include "ace/Null_Mutex.h"
11 ifr_visitor::ifr_visitor (void)
12 : lock_ (0)
14 // Create the appropriate lock.
15 if (be_global->enable_locking ())
17 ACE_NEW (this->lock_,
18 ACE_Lock_Adapter<TAO_SYNCH_MUTEX> ());
20 else
22 ACE_NEW (this->lock_,
23 ACE_Lock_Adapter<ACE_SYNCH_NULL_MUTEX> ());
27 ifr_visitor::~ifr_visitor (void)
29 delete this->lock_;
32 // All the visit methods. Each concrete ifr visitors will
33 // override some subset of these.
35 int
36 ifr_visitor::visit_decl (AST_Decl *)
38 return 0;
41 int
42 ifr_visitor::visit_scope (UTL_Scope *)
44 return 0;
47 int
48 ifr_visitor::visit_type (AST_Type *)
50 return 0;
53 int
54 ifr_visitor::visit_predefined_type (AST_PredefinedType *)
56 return 0;
59 int
60 ifr_visitor::visit_module (AST_Module *)
62 return 0;
65 int
66 ifr_visitor::visit_interface (AST_Interface *)
68 return 0;
71 int
72 ifr_visitor::visit_interface_fwd (AST_InterfaceFwd *)
74 return 0;
77 int
78 ifr_visitor::visit_valuebox (AST_ValueBox *)
80 return 0;
83 int
84 ifr_visitor::visit_valuetype (AST_ValueType *)
86 return 0;
89 int
90 ifr_visitor::visit_valuetype_fwd (AST_ValueTypeFwd *)
92 return 0;
95 int
96 ifr_visitor::visit_component (AST_Component *)
98 return 0;
102 ifr_visitor::visit_component_fwd (AST_ComponentFwd *)
104 return 0;
108 ifr_visitor::visit_template_module (AST_Template_Module *)
110 return 0;
114 ifr_visitor::visit_template_module_inst (AST_Template_Module_Inst *)
116 return 0;
120 ifr_visitor::visit_template_module_ref (AST_Template_Module_Ref *)
122 return 0;
126 ifr_visitor::visit_param_holder(AST_Param_Holder *)
128 return 0;
132 int ifr_visitor::visit_porttype (AST_PortType *)
134 return 0;
138 ifr_visitor::visit_provides (AST_Provides *)
140 return 0;
144 ifr_visitor::visit_uses (AST_Uses *)
146 return 0;
150 ifr_visitor::visit_publishes (AST_Publishes *)
152 return 0;
156 ifr_visitor::visit_emits (AST_Emits *)
158 return 0;
162 ifr_visitor::visit_consumes (AST_Consumes *)
164 return 0;
168 ifr_visitor::visit_extended_port (AST_Extended_Port *)
170 return 0;
174 ifr_visitor::visit_mirror_port (AST_Mirror_Port *)
176 return 0;
180 ifr_visitor::visit_connector (AST_Connector *)
182 return 0;
186 ifr_visitor::visit_eventtype (AST_EventType *)
188 return 0;
192 ifr_visitor::visit_eventtype_fwd (AST_EventTypeFwd *)
194 return 0;
198 ifr_visitor::visit_home (AST_Home *)
200 return 0;
204 ifr_visitor::visit_factory (AST_Factory *)
206 return 0;
210 ifr_visitor::visit_finder (AST_Finder *)
212 return 0;
216 ifr_visitor::visit_structure (AST_Structure *)
218 return 0;
222 ifr_visitor::visit_structure_fwd (AST_StructureFwd *)
224 return 0;
228 ifr_visitor::visit_exception (AST_Exception *)
230 return 0;
234 ifr_visitor::visit_expression (AST_Expression *)
236 return 0;
240 ifr_visitor::visit_enum (AST_Enum *)
242 return 0;
246 ifr_visitor::visit_operation (AST_Operation *)
248 return 0;
252 ifr_visitor::visit_field (AST_Field *)
254 return 0;
258 ifr_visitor::visit_argument (AST_Argument *)
260 return 0;
264 ifr_visitor::visit_attribute (AST_Attribute *)
266 return 0;
270 ifr_visitor::visit_union (AST_Union *)
272 return 0;
276 ifr_visitor::visit_union_fwd (AST_UnionFwd *)
278 return 0;
282 ifr_visitor::visit_union_branch (AST_UnionBranch *)
284 return 0;
288 ifr_visitor::visit_union_label (AST_UnionLabel *)
290 return 0;
294 ifr_visitor::visit_constant (AST_Constant *)
296 return 0;
300 ifr_visitor::visit_enum_val (AST_EnumVal *)
302 return 0;
306 ifr_visitor::visit_array (AST_Array *)
308 return 0;
312 ifr_visitor::visit_sequence (AST_Sequence *)
314 return 0;
318 ifr_visitor::visit_string (AST_String *)
320 return 0;
324 ifr_visitor::visit_typedef (AST_Typedef *)
326 return 0;
330 ifr_visitor::visit_root (AST_Root *)
332 return 0;
336 ifr_visitor::visit_native (AST_Native *)
338 return 0;
342 ifr_visitor::visit_fixed (AST_Fixed *node)
344 idl_global->err ()->fixed_unsupported (node);
345 return 1;
348 ACE_Lock &
349 ifr_visitor::lock (void) const
351 return *this->lock_;