Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef CPP_INTROSPECTION_FORWARDS_H
00030 #define CPP_INTROSPECTION_FORWARDS_H
00031
00032 #include <boost/shared_ptr.hpp>
00033 #include <boost/any.hpp>
00034 #include <map>
00035 #include <vector>
00036 #include <string>
00037
00038 namespace cpp_introspection {
00039
00040 class Package;
00041 class Message;
00042 class Field;
00043 class Type;
00044 class AccessorBase;
00045
00046 typedef boost::shared_ptr<Package const> PackagePtr;
00047 typedef boost::weak_ptr<Package const> PackageWPtr;
00048 typedef boost::shared_ptr<Message const> MessagePtr;
00049 typedef boost::weak_ptr<Message const> MessageWPtr;
00050 typedef boost::shared_ptr<Field const> FieldPtr;
00051 typedef boost::weak_ptr<Field const> FieldWPtr;
00052 typedef boost::shared_ptr<Type const> TypePtr;
00053 typedef boost::weak_ptr<Type const> TypeWPtr;
00054
00055 typedef std::vector<PackagePtr> V_Package;
00056 typedef std::vector<MessagePtr> V_Message;
00057 typedef std::vector<FieldPtr> V_Field;
00058 typedef std::vector<const char *> V_FieldName;
00059 typedef std::vector<TypePtr> V_Type;
00060
00061 typedef std::map<std::string,PackageWPtr> M_Package;
00062 typedef std::map<std::string,MessageWPtr> M_Message;
00063 typedef std::map<std::string,FieldWPtr> M_Field;
00064 typedef std::map<std::string,TypeWPtr> M_Type;
00065
00066 struct CompareTypeInfo { bool operator()(const std::type_info *t1, const std::type_info *t2) const { return (*t1).before(*t2); } };
00067 typedef std::map<const std::type_info *,MessageWPtr,CompareTypeInfo> M_TypeInfo_Message;
00068
00069 typedef boost::shared_ptr<void> VoidPtr;
00070 typedef boost::weak_ptr<void> VoidWPtr;
00071 typedef boost::shared_ptr<void const> VoidConstPtr;
00072 typedef boost::weak_ptr<void const> VoidConstWPtr;
00073
00074 typedef std::vector<std::string> V_string;
00075
00076 }
00077
00078 #endif // CPP_INTROSPECTION_FORWARDS_H