Classes | Namespaces | Macros | Functions
message_traits.h File Reference
#include "message_forward.h"
#include "ros/time.h"
#include <string>
#include "boost/enable_if.hpp"
#include <memory.h>
#include <boost/type_traits/remove_reference.hpp>
Include dependency graph for message_traits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rs2rosinternal::message_traits::DataType< M >
 Specialize to provide the datatype for a message. More...
 
struct  rs2rosinternal::message_traits::Definition< M >
 Specialize to provide the definition for a message. More...
 
struct  rs2rosinternal::message_traits::FalseType
 Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this type are false values. More...
 
struct  rs2rosinternal::message_traits::FrameId< M, Enable >
 FrameId trait. In the default implementation pointer() returns &m.header.frame_id if HasHeader<M>::value is true, otherwise returns NULL. value() does not exist, and causes a compile error. More...
 
struct  rs2rosinternal::message_traits::FrameId< M, typename boost::enable_if< HasHeader< M > >::type >
 
struct  rs2rosinternal::message_traits::HasHeader< M >
 HasHeader informs whether or not there is a header that gets serialized as the first thing in the message. More...
 
struct  rs2rosinternal::message_traits::Header< M, Enable >
 Header trait. In the default implementation pointer() returns &m.header if HasHeader<M>::value is true, otherwise returns NULL. More...
 
struct  rs2rosinternal::message_traits::Header< M, typename boost::enable_if< HasHeader< M > >::type >
 
struct  rs2rosinternal::message_traits::IsFixedSize< M >
 A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings. More...
 
struct  rs2rosinternal::message_traits::IsMessage< M >
 Am I message or not. More...
 
struct  rs2rosinternal::message_traits::IsSimple< M >
 A simple datatype is one that can be memcpy'd directly in array form, i.e. it's a POD, fixed-size type and sizeof(M) == sum(serializationLength(M:a...)) More...
 
struct  rs2rosinternal::message_traits::MD5Sum< M >
 Specialize to provide the md5sum for a message. More...
 
struct  rs2rosinternal::message_traits::TimeStamp< M, Enable >
 TimeStamp trait. In the default implementation pointer() returns &m.header.stamp if HasHeader<M>::value is true, otherwise returns NULL. value() does not exist, and causes a compile error. More...
 
struct  rs2rosinternal::message_traits::TimeStamp< M, typename boost::enable_if< HasHeader< M > >::type >
 
struct  rs2rosinternal::message_traits::TrueType
 Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this type are true values. More...
 

Namespaces

 rs2rosinternal
 
 rs2rosinternal::message_traits
 
 std_msgs
 

Macros

#define ROS_IMPLEMENT_SIMPLE_TOPIC_TRAITS(msg, md5sum, datatype, definition)
 

Functions

template<typename M >
const char * rs2rosinternal::message_traits::datatype ()
 returns DataType<M>::value(); More...
 
template<typename M >
const char * rs2rosinternal::message_traits::datatype (const M &m)
 returns DataType<M>::value(m); More...
 
template<typename M >
const char * rs2rosinternal::message_traits::definition ()
 returns Definition<M>::value(); More...
 
template<typename M >
const char * rs2rosinternal::message_traits::definition (const M &m)
 returns Definition<M>::value(m); More...
 
template<typename M >
std::stringrs2rosinternal::message_traits::frameId (M &m)
 returns FrameId<M>::pointer(m); More...
 
template<typename M >
std::string const * rs2rosinternal::message_traits::frameId (const M &m)
 returns FrameId<M>::pointer(m); More...
 
template<typename M >
bool rs2rosinternal::message_traits::hasHeader ()
 returns HasHeader<M>::value; More...
 
template<typename M >
std_msgs::Headerrs2rosinternal::message_traits::header (M &m)
 returns Header<M>::pointer(m); More...
 
template<typename M >
std_msgs::Header const * rs2rosinternal::message_traits::header (const M &m)
 returns Header<M>::pointer(m); More...
 
template<typename M >
bool rs2rosinternal::message_traits::isFixedSize ()
 returns IsFixedSize<M>::value; More...
 
template<typename M >
bool rs2rosinternal::message_traits::isSimple ()
 returns IsSimple<M>::value; More...
 
template<typename M >
const char * rs2rosinternal::message_traits::md5sum ()
 returns MD5Sum<M>::value(); More...
 
template<typename M >
const char * rs2rosinternal::message_traits::md5sum (const M &m)
 returns MD5Sum<M>::value(m); More...
 
template<typename M >
rs2rosinternal::Timers2rosinternal::message_traits::timeStamp (M &m)
 returns TimeStamp<M>::pointer(m); More...
 
template<typename M >
rs2rosinternal::Time const * rs2rosinternal::message_traits::timeStamp (const M &m)
 returns TimeStamp<M>::pointer(m); More...
 

Macro Definition Documentation

#define ROS_IMPLEMENT_SIMPLE_TOPIC_TRAITS (   msg,
  md5sum,
  datatype,
  definition 
)
Value:
namespace rs2rosinternal \
{ \
namespace message_traits \
{ \
template<> struct MD5Sum<msg> \
{ \
static const char* value() { return md5sum; } \
static const char* value(const msg&) { return value(); } \
}; \
template<> struct DataType<msg> \
{ \
static const char* value() { return datatype; } \
static const char* value(const msg&) { return value(); } \
}; \
template<> struct Definition<msg> \
{ \
static const char* value() { return definition; } \
static const char* value(const msg&) { return value(); } \
}; \
} \
}
GLfloat value
const char * md5sum(const M &m)
returns MD5Sum<M>::value(m);
const char * datatype(const M &m)
returns DataType<M>::value(m);
const char * definition(const M &m)
returns Definition<M>::value(m);

Definition at line 46 of file message_traits.h.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:27