MIRA
Classes | Namespaces | Macros | Functions
Stamped.h File Reference

Mix in for adding a timestamp to data types. More...

#include <serialization/adapters/boost/shared_ptr.hpp>
#include <utils/Time.h>
Include dependency graph for Stamped.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StampedHeader
 The common header for all stamped data. More...
 
class  Stamped< T >
 Mix in for adding a time stamp, an optional frame id and an optional sequence id to data types like Pose, RangeScan, etc. More...
 
class  Stamped< T * >
 Stamped class specialization for polymorphic pointers. More...
 
class  StampedPrimitive< T >
 Stamped class for primitive types like int, float, etc. More...
 

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 

Macros

#define MIRA_DECLARE_STAMPED_PRIMITIVE_SPECIALIZATION(T)
 Macro for specializing template class Stamped for primitive types. More...
 

Functions

template<typename T >
Stamped< typename std::decay< T >::type > makeStamped (T &&value, const Time &timestamp=Time::now(), const std::string &frameID=std::string(), uint32 sequenceID=0)
 Declare stamped classes for all standard data types including std::string. More...
 
template<typename T >
StampedHeader & stampedHeader (Stamped< T > &data)
 Helper to extract the header from stamped data. More...
 
template<typename T >
const StampedHeader & stampedHeader (const Stamped< T > &data)
 

Detailed Description

Mix in for adding a timestamp to data types.

Author
Tim Langner, Erik Einhorn
Date
2010/08/18

Macro Definition Documentation

◆ MIRA_DECLARE_STAMPED_PRIMITIVE_SPECIALIZATION

#define MIRA_DECLARE_STAMPED_PRIMITIVE_SPECIALIZATION (   T)
Value:
template <> \
class Stamped<T> : public StampedPrimitive<T> \
{ \
public: \
Stamped() {} \
Stamped(const T& iData, const Time& iTimestamp, uint32 iSequenceID=0) : \
StampedPrimitive<T>(iData, iTimestamp,iSequenceID) {} \
Stamped(const T& iData, const Time& iTimestamp, \
const std::string& iFrameID, uint32 iSequenceID=0) : \
StampedPrimitive<T>(iData, iTimestamp, iFrameID, iSequenceID) {} \
};

Macro for specializing template class Stamped for primitive types.