Data type. More...
#include <Serializer.h>
Classes | |
class | Impl |
Serializer implementation. More... | |
Public Member Functions | |
void | advance (ros::serialization::Stream &stream, const Variant &value) |
Advance a stream by the length of a serialized value. | |
void | clear () |
Clear the serializer. | |
void | deserialize (ros::serialization::IStream &stream, Variant &value) |
Deserialize a variant value from an input stream. | |
size_t | getSerializedLength (const Variant &value) const |
Retrieve the serialized length of a variant value. | |
bool | isValid () const |
True, if this serializer is valid. | |
operator void * () const | |
Void pointer conversion. | |
void | serialize (ros::serialization::OStream &stream, const Variant &value) |
Serialize a variant value to an output stream. | |
Serializer () | |
Default constructor. | |
Serializer (const DataType &dataType) | |
Constructor (overloaded version taking a data type) | |
Serializer (const Serializer &src) | |
Copy constructor. | |
~Serializer () | |
Destructor. | |
Protected Types | |
typedef boost::shared_ptr< Impl > | ImplPtr |
Declaration of the serializer implementation pointer type. | |
typedef boost::weak_ptr< Impl > | ImplWPtr |
Declaration of the serializer implementation weak pointer type. | |
Protected Attributes | |
ImplPtr | impl |
The serializer's implementation. |
Data type.
Definition at line 34 of file Serializer.h.
typedef boost::shared_ptr<Impl> variant_topic_tools::Serializer::ImplPtr [protected] |
Declaration of the serializer implementation pointer type.
Definition at line 120 of file Serializer.h.
typedef boost::weak_ptr<Impl> variant_topic_tools::Serializer::ImplWPtr [protected] |
Declaration of the serializer implementation weak pointer type.
Definition at line 124 of file Serializer.h.
Default constructor.
Definition at line 29 of file Serializer.cpp.
variant_topic_tools::Serializer::Serializer | ( | const DataType & | dataType | ) |
Constructor (overloaded version taking a data type)
Definition at line 32 of file Serializer.cpp.
variant_topic_tools::Serializer::Serializer | ( | const Serializer & | src | ) |
Copy constructor.
Definition at line 37 of file Serializer.cpp.
Destructor.
Definition at line 41 of file Serializer.cpp.
void variant_topic_tools::Serializer::advance | ( | ros::serialization::Stream & | stream, |
const Variant & | value | ||
) |
Advance a stream by the length of a serialized value.
Definition at line 89 of file Serializer.cpp.
Clear the serializer.
Definition at line 69 of file Serializer.cpp.
void variant_topic_tools::Serializer::deserialize | ( | ros::serialization::IStream & | stream, |
Variant & | value | ||
) |
Deserialize a variant value from an input stream.
Definition at line 81 of file Serializer.cpp.
size_t variant_topic_tools::Serializer::getSerializedLength | ( | const Variant & | value | ) | const |
Retrieve the serialized length of a variant value.
Definition at line 54 of file Serializer.cpp.
bool variant_topic_tools::Serializer::isValid | ( | ) | const |
True, if this serializer is valid.
Definition at line 61 of file Serializer.cpp.
variant_topic_tools::Serializer::operator void * | ( | ) | const [inline] |
Void pointer conversion.
Definition at line 81 of file Serializer.h.
void variant_topic_tools::Serializer::serialize | ( | ros::serialization::OStream & | stream, |
const Variant & | value | ||
) |
Serialize a variant value to an output stream.
Definition at line 73 of file Serializer.cpp.
ImplPtr variant_topic_tools::Serializer::impl [protected] |
The serializer's implementation.
Definition at line 128 of file Serializer.h.