00001 // AUTOMATICALLY GENERATED -- DO NOT EDIT! -*- c++ -*- 00002 00003 #ifndef init_handler_i_h 00004 #define init_handler_i_h 00005 00006 #include <iostream> 00007 #include <ptree.h> 00008 #include "scope.h" 00009 #include "except.h" 00010 #include "expr_result.h" 00011 #include "expr_annotator.h" 00012 #include "source.h" 00013 #include "implicit_conversion.h" 00014 #include "overload_resolver.h" 00015 #include "downcast.h" 00016 #include "symbol_name.h" 00017 #include "class.h" 00018 00019 /****************************** Init_reader ******************************/ 00020 00023 class Init_reader { 00024 Ptree* tree; 00025 00026 public: 00030 Init_reader(Ptree* tree); 00031 00033 bool is_compound(); 00034 00036 Ptree* get(); 00037 00039 Ptree* get_nondestructive() const; 00040 00042 bool empty(); 00043 00044 void dump(std::ostream& os); 00045 }; 00046 00047 /******************************* Init_maker ******************************/ 00048 00050 class Init_maker { 00051 Ptree* tree; 00052 00053 public: 00054 Init_maker(); 00055 00057 void add(Ptree* p); 00058 00060 Ptree* make_init() const; 00061 }; 00062 00063 // 00064 // IMPLEMENTATION of inline functions follows 00065 // 00066 00067 00068 00070 inline bool 00071 Init_reader::empty() 00072 { 00073 return !tree; 00074 } 00075 00076 #endif // init_handler_i_h