Classes | Functions
ros::message_traits Namespace Reference

Classes

struct  DataType
 Specialize to provide the datatype for a message. More...
 
struct  Definition
 Specialize to provide the definition for a message. More...
 
struct  FalseType
 Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this type are false values. More...
 
struct  FrameId
 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  FrameId< M, typename boost::enable_if< HasHeader< M > >::type >
 
struct  HasHeader
 HasHeader informs whether or not there is a header that gets serialized as the first thing in the message. More...
 
struct  Header
 Header trait. In the default implementation pointer() returns &m.header if HasHeader<M>::value is true, otherwise returns NULL. More...
 
struct  Header< M, typename boost::enable_if< HasHeader< M > >::type >
 
struct  IsFixedSize
 A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings. More...
 
struct  IsFixedSize< bool >
 
struct  IsMessage
 Am I message or not. More...
 
struct  IsSimple
 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  MD5Sum
 Specialize to provide the md5sum for a message. More...
 
struct  TimeStamp
 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  TimeStamp< M, typename boost::enable_if< HasHeader< M > >::type >
 
struct  TrueType
 Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this type are true values. More...
 

Functions

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

Function Documentation

◆ datatype() [1/2]

template<typename M >
const char* ros::message_traits::datatype ( )
inline

returns DataType<M>::value();

Definition at line 234 of file message_traits.h.

◆ datatype() [2/2]

template<typename M >
const char* ros::message_traits::datatype ( const M &  m)
inline

returns DataType<M>::value(m);

Definition at line 261 of file message_traits.h.

◆ definition() [1/2]

template<typename M >
const char* ros::message_traits::definition ( )
inline

returns Definition<M>::value();

Definition at line 243 of file message_traits.h.

◆ definition() [2/2]

template<typename M >
const char* ros::message_traits::definition ( const M &  m)
inline

returns Definition<M>::value(m);

Definition at line 270 of file message_traits.h.

◆ frameId() [1/2]

template<typename M >
std::string const* ros::message_traits::frameId ( const M &  m)
inline

returns FrameId<M>::pointer(m);

Definition at line 306 of file message_traits.h.

◆ frameId() [2/2]

template<typename M >
std::string* ros::message_traits::frameId ( M &  m)
inline

returns FrameId<M>::pointer(m);

Definition at line 297 of file message_traits.h.

◆ hasHeader()

template<typename M >
bool ros::message_traits::hasHeader ( )
inline

returns HasHeader<M>::value;

Definition at line 351 of file message_traits.h.

◆ header() [1/2]

template<typename M >
std_msgs::Header const* ros::message_traits::header ( const M &  m)
inline

returns Header<M>::pointer(m);

Definition at line 288 of file message_traits.h.

◆ header() [2/2]

template<typename M >
std_msgs::Header* ros::message_traits::header ( M &  m)
inline

returns Header<M>::pointer(m);

Definition at line 279 of file message_traits.h.

◆ isFixedSize()

template<typename M >
bool ros::message_traits::isFixedSize ( )
inline

returns IsFixedSize<M>::value;

Definition at line 342 of file message_traits.h.

◆ isSimple()

template<typename M >
bool ros::message_traits::isSimple ( )
inline

returns IsSimple<M>::value;

Definition at line 333 of file message_traits.h.

◆ md5sum() [1/2]

template<typename M >
const char* ros::message_traits::md5sum ( )
inline

returns MD5Sum<M>::value();

Definition at line 225 of file message_traits.h.

◆ md5sum() [2/2]

template<typename M >
const char* ros::message_traits::md5sum ( const M &  m)
inline

returns MD5Sum<M>::value(m);

Definition at line 252 of file message_traits.h.

◆ timeStamp() [1/2]

template<typename M >
ros::Time const* ros::message_traits::timeStamp ( const M &  m)
inline

returns TimeStamp<M>::pointer(m);

Definition at line 324 of file message_traits.h.

◆ timeStamp() [2/2]

template<typename M >
ros::Time* ros::message_traits::timeStamp ( M &  m)
inline

returns TimeStamp<M>::pointer(m);

Definition at line 315 of file message_traits.h.



roscpp_traits
Author(s): Josh Faust, Dirk Thomas
autogenerated on Sat Jun 17 2023 02:32:39