NVPerfCounters.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-visualization_engine/doc_stacks/2013-12-11_14-28-19.339941/visualization_engine/rve_msgs/msg/NVPerfCounters.msg */
00002 #ifndef RVE_MSGS_MESSAGE_NVPERFCOUNTERS_H
00003 #define RVE_MSGS_MESSAGE_NVPERFCOUNTERS_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012 
00013 #include "ros/macros.h"
00014 
00015 #include "ros/assert.h"
00016 
00017 #include "rve_msgs/NVPerfCounter.h"
00018 
00019 namespace rve_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct NVPerfCounters_ {
00023   typedef NVPerfCounters_<ContainerAllocator> Type;
00024 
00025   NVPerfCounters_()
00026   : counters()
00027   , gpu_bottleneck()
00028   {
00029   }
00030 
00031   NVPerfCounters_(const ContainerAllocator& _alloc)
00032   : counters(_alloc)
00033   , gpu_bottleneck(_alloc)
00034   {
00035   }
00036 
00037   typedef std::vector< ::rve_msgs::NVPerfCounter_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::NVPerfCounter_<ContainerAllocator> >::other >  _counters_type;
00038   std::vector< ::rve_msgs::NVPerfCounter_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::NVPerfCounter_<ContainerAllocator> >::other >  counters;
00039 
00040   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _gpu_bottleneck_type;
00041   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  gpu_bottleneck;
00042 
00043 
00044   typedef boost::shared_ptr< ::rve_msgs::NVPerfCounters_<ContainerAllocator> > Ptr;
00045   typedef boost::shared_ptr< ::rve_msgs::NVPerfCounters_<ContainerAllocator>  const> ConstPtr;
00046   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 }; // struct NVPerfCounters
00048 typedef  ::rve_msgs::NVPerfCounters_<std::allocator<void> > NVPerfCounters;
00049 
00050 typedef boost::shared_ptr< ::rve_msgs::NVPerfCounters> NVPerfCountersPtr;
00051 typedef boost::shared_ptr< ::rve_msgs::NVPerfCounters const> NVPerfCountersConstPtr;
00052 
00053 
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const  ::rve_msgs::NVPerfCounters_<ContainerAllocator> & v)
00056 {
00057   ros::message_operations::Printer< ::rve_msgs::NVPerfCounters_<ContainerAllocator> >::stream(s, "", v);
00058   return s;}
00059 
00060 } // namespace rve_msgs
00061 
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::NVPerfCounters_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::NVPerfCounters_<ContainerAllocator>  const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::rve_msgs::NVPerfCounters_<ContainerAllocator> > {
00070   static const char* value() 
00071   {
00072     return "5e6d8b4f9afd5f75c05d9967d6d170a9";
00073   }
00074 
00075   static const char* value(const  ::rve_msgs::NVPerfCounters_<ContainerAllocator> &) { return value(); } 
00076   static const uint64_t static_value1 = 0x5e6d8b4f9afd5f75ULL;
00077   static const uint64_t static_value2 = 0xc05d9967d6d170a9ULL;
00078 };
00079 
00080 template<class ContainerAllocator>
00081 struct DataType< ::rve_msgs::NVPerfCounters_<ContainerAllocator> > {
00082   static const char* value() 
00083   {
00084     return "rve_msgs/NVPerfCounters";
00085   }
00086 
00087   static const char* value(const  ::rve_msgs::NVPerfCounters_<ContainerAllocator> &) { return value(); } 
00088 };
00089 
00090 template<class ContainerAllocator>
00091 struct Definition< ::rve_msgs::NVPerfCounters_<ContainerAllocator> > {
00092   static const char* value() 
00093   {
00094     return "NVPerfCounter[] counters\n\
00095 string gpu_bottleneck\n\
00096 ================================================================================\n\
00097 MSG: rve_msgs/NVPerfCounter\n\
00098 string name\n\
00099 uint64 value\n\
00100 uint64 cycles\n\
00101 float64 value_as_pct\n\
00102 ";
00103   }
00104 
00105   static const char* value(const  ::rve_msgs::NVPerfCounters_<ContainerAllocator> &) { return value(); } 
00106 };
00107 
00108 } // namespace message_traits
00109 } // namespace ros
00110 
00111 namespace ros
00112 {
00113 namespace serialization
00114 {
00115 
00116 template<class ContainerAllocator> struct Serializer< ::rve_msgs::NVPerfCounters_<ContainerAllocator> >
00117 {
00118   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00119   {
00120     stream.next(m.counters);
00121     stream.next(m.gpu_bottleneck);
00122   }
00123 
00124   ROS_DECLARE_ALLINONE_SERIALIZER;
00125 }; // struct NVPerfCounters_
00126 } // namespace serialization
00127 } // namespace ros
00128 
00129 namespace ros
00130 {
00131 namespace message_operations
00132 {
00133 
00134 template<class ContainerAllocator>
00135 struct Printer< ::rve_msgs::NVPerfCounters_<ContainerAllocator> >
00136 {
00137   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::rve_msgs::NVPerfCounters_<ContainerAllocator> & v) 
00138   {
00139     s << indent << "counters[]" << std::endl;
00140     for (size_t i = 0; i < v.counters.size(); ++i)
00141     {
00142       s << indent << "  counters[" << i << "]: ";
00143       s << std::endl;
00144       s << indent;
00145       Printer< ::rve_msgs::NVPerfCounter_<ContainerAllocator> >::stream(s, indent + "    ", v.counters[i]);
00146     }
00147     s << indent << "gpu_bottleneck: ";
00148     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.gpu_bottleneck);
00149   }
00150 };
00151 
00152 
00153 } // namespace message_operations
00154 } // namespace ros
00155 
00156 #endif // RVE_MSGS_MESSAGE_NVPERFCOUNTERS_H
00157 


rve_msgs
Author(s): Josh Faust
autogenerated on Wed Dec 11 2013 14:30:39