Classes | Public Member Functions | Protected Types | Protected Attributes
variant_topic_tools::Serializer Class Reference

Data type. More...

#include <Serializer.h>

Inheritance diagram for variant_topic_tools::Serializer:
Inheritance graph
[legend]

List of all members.

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< ImplImplPtr
 Declaration of the serializer implementation pointer type.
typedef boost::weak_ptr< ImplImplWPtr
 Declaration of the serializer implementation weak pointer type.

Protected Attributes

ImplPtr impl
 The serializer's implementation.

Detailed Description

Data type.

Definition at line 34 of file Serializer.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

Default constructor.

Definition at line 29 of file Serializer.cpp.

Constructor (overloaded version taking a data type)

Note:
If the data type specified data type cannot be found in the data type registry, the instantiated serializer will be invalid.

Definition at line 32 of file Serializer.cpp.

Copy constructor.

Definition at line 37 of file Serializer.cpp.

Destructor.

Definition at line 41 of file Serializer.cpp.


Member Function Documentation

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.

Deserialize a variant value from an input stream.

Definition at line 81 of file Serializer.cpp.

Retrieve the serialized length of a variant value.

Definition at line 54 of file Serializer.cpp.

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.

Serialize a variant value to an output stream.

Definition at line 73 of file Serializer.cpp.


Member Data Documentation

The serializer's implementation.

Definition at line 128 of file Serializer.h.


The documentation for this class was generated from the following files:


variant_topic_tools
Author(s): Ralf Kaestner
autogenerated on Tue Jul 9 2019 03:18:42