#include <DataHeader.h>
Public Types | |
typedef boost::shared_ptr< const Stamped< DataType > > | ConstPtr |
Convenience smart pointer typedef. More... | |
typedef boost::shared_ptr< Stamped< DataType > > | Ptr |
Convenience smart pointer typedef. More... | |
Public Types inherited from icl_core::StampedBase | |
typedef boost::shared_ptr< const StampedBase > | ConstPtr |
typedef boost::shared_ptr< StampedBase > | Ptr |
Convenience shared pointer typedefs. More... | |
Public Member Functions | |
const DataType & | cget () const |
DataType & | get () |
const DataType & | get () const |
virtual DataHeader & | header () |
Access the data header. More... | |
virtual const DataHeader & | header () const |
Access the data header (const version). More... | |
operator DataType () const | |
Implicit conversion back to the original data type. More... | |
DataType & | operator* () |
Quick access to the wrapped data. More... | |
const DataType & | operator* () const |
Quick access to the wrapped data. More... | |
DataType * | operator-> () |
Quick access to the wrapped data. More... | |
const DataType * | operator-> () const |
Quick access to the wrapped data. More... | |
virtual void | print (std::ostream &os) const |
Stamped () | |
Default constructor which leaves the data uninitialized. More... | |
Stamped (const DataType &data) | |
Implicit construction from a data value. More... | |
Stamped (const DataHeader &header) | |
Implicit construction from a data header. More... | |
Stamped (const DataType &data, const DataHeader &header) | |
Full constructor. More... | |
Public Member Functions inherited from icl_core::StampedBase | |
StampedBase () | |
define default Constructor and Destructor for boost_dynamic_cast More... | |
virtual | ~StampedBase () |
Private Attributes | |
DataType | m_data |
The wrapped data. More... | |
DataHeader | m_header |
The data header. More... | |
A generic wrapper for combining any kind of data with a DataHeader.
Definition at line 163 of file DataHeader.h.
typedef boost::shared_ptr<const Stamped<DataType> > icl_core::Stamped< DataType >::ConstPtr |
Convenience smart pointer typedef.
Definition at line 185 of file DataHeader.h.
typedef boost::shared_ptr<Stamped<DataType> > icl_core::Stamped< DataType >::Ptr |
Convenience smart pointer typedef.
Definition at line 183 of file DataHeader.h.
|
inline |
Default constructor which leaves the data uninitialized.
Definition at line 188 of file DataHeader.h.
|
inline |
Implicit construction from a data value.
Definition at line 193 of file DataHeader.h.
|
inline |
Implicit construction from a data header.
Definition at line 199 of file DataHeader.h.
|
inline |
Full constructor.
Definition at line 204 of file DataHeader.h.
|
inline |
Explicitly const access to the wrapped data. This is in anticipation of C++11, to allow correct type deduction for the auto keyword.
Definition at line 229 of file DataHeader.h.
|
inline |
Access to the wrapped data. While direct access to the #data member is allowed, the access functions should be preferred.
Definition at line 220 of file DataHeader.h.
|
inline |
Access to the wrapped data. While direct access to the #data member is allowed, the access functions should be preferred.
Definition at line 224 of file DataHeader.h.
|
inlinevirtual |
Access the data header.
Implements icl_core::StampedBase.
Definition at line 213 of file DataHeader.h.
|
inlinevirtual |
Access the data header (const version).
Implements icl_core::StampedBase.
Definition at line 215 of file DataHeader.h.
|
inline |
Implicit conversion back to the original data type.
Definition at line 210 of file DataHeader.h.
|
inline |
Quick access to the wrapped data.
Definition at line 232 of file DataHeader.h.
|
inline |
Quick access to the wrapped data.
Definition at line 234 of file DataHeader.h.
|
inline |
Quick access to the wrapped data.
Definition at line 237 of file DataHeader.h.
|
inline |
Quick access to the wrapped data.
Definition at line 239 of file DataHeader.h.
|
inlinevirtual |
Prints the contents to the given output stream. Note that this method tries to produce output for #data only if it is known at compile time that a suitable stream operator is available. This relies on the boost::has_left_shift<> type trait. Note that there are some (rare) cases where this might not work as expected (see the Boost TypeTraits documentation for details):
Implements icl_core::StampedBase.
Definition at line 262 of file DataHeader.h.
|
private |
The wrapped data.
Definition at line 170 of file DataHeader.h.
|
private |
The data header.
Definition at line 172 of file DataHeader.h.