Public Member Functions | List of all members
cras::ShapeShifter Class Reference

ShapeShifter class with fixed behavior on copy/move on Melodic. Use this class everywhere possible to prevent memory corruption. It seamlessly converts to topic_tools::ShapeShifter; More...

#include <shape_shifter.h>

Inheritance diagram for cras::ShapeShifter:
Inheritance graph
[legend]

Public Member Functions

ShapeShifteroperator= (::topic_tools::ShapeShifter &&other) noexcept
 
ShapeShifteroperator= (const ::topic_tools::ShapeShifter &other)
 
ShapeShifteroperator= (const ShapeShifter &other)
 
ShapeShifteroperator= (ShapeShifter &&other) noexcept
 
 ShapeShifter ()
 
 ShapeShifter (::topic_tools::ShapeShifter &&other) noexcept
 
 ShapeShifter (const ::topic_tools::ShapeShifter &other)
 
 ShapeShifter (const ShapeShifter &other)
 
 ShapeShifter (ShapeShifter &&other) noexcept
 
 ~ShapeShifter () override
 
- Public Member Functions inherited from topic_tools::ShapeShifter
ros::Publisher advertise (ros::NodeHandle &nh, const std::string &topic, uint32_t queue_size_, bool latch=false, const ros::SubscriberStatusCallback &connect_cb=ros::SubscriberStatusCallback()) const
 
std::string const & getDataType () const
 
std::string const & getMD5Sum () const
 
std::string const & getMessageDefinition () const
 
boost::shared_ptr< M > instantiate () const
 
void morph (const std::string &md5sum, const std::string &datatype, const std::string &msg_def, const std::string &latching)
 
void read (Stream &stream)
 
 ShapeShifter ()
 
uint32_t size () const
 
void write (Stream &stream) const
 

Additional Inherited Members

- Public Types inherited from topic_tools::ShapeShifter
typedef boost::shared_ptr< ShapeShifter const > ConstPtr
 
typedef boost::shared_ptr< ShapeShifterPtr
 
- Static Public Attributes inherited from topic_tools::ShapeShifter
static bool uses_old_API_
 

Detailed Description

ShapeShifter class with fixed behavior on copy/move on Melodic. Use this class everywhere possible to prevent memory corruption. It seamlessly converts to topic_tools::ShapeShifter;

Definition at line 116 of file shape_shifter.h.

Constructor & Destructor Documentation

◆ ShapeShifter() [1/5]

cras::ShapeShifter::ShapeShifter ( )
default

◆ ~ShapeShifter()

cras::ShapeShifter::~ShapeShifter ( )
overridevirtualdefault

Reimplemented from topic_tools::ShapeShifter.

◆ ShapeShifter() [2/5]

cras::ShapeShifter::ShapeShifter ( const ::topic_tools::ShapeShifter other)
explicit

◆ ShapeShifter() [3/5]

cras::ShapeShifter::ShapeShifter ( ::topic_tools::ShapeShifter &&  other)
explicitnoexcept

◆ ShapeShifter() [4/5]

cras::ShapeShifter::ShapeShifter ( const ShapeShifter other)

Definition at line 226 of file shape_shifter.cpp.

◆ ShapeShifter() [5/5]

cras::ShapeShifter::ShapeShifter ( ShapeShifter &&  other)
noexcept

Definition at line 241 of file shape_shifter.cpp.

Member Function Documentation

◆ operator=() [1/4]

ShapeShifter& cras::ShapeShifter::operator= ( ::topic_tools::ShapeShifter &&  other)
noexcept

◆ operator=() [2/4]

ShapeShifter& cras::ShapeShifter::operator= ( const ::topic_tools::ShapeShifter other)

◆ operator=() [3/4]

ShapeShifter & cras::ShapeShifter::operator= ( const ShapeShifter other)

Definition at line 257 of file shape_shifter.cpp.

◆ operator=() [4/4]

ShapeShifter & cras::ShapeShifter::operator= ( ShapeShifter &&  other)
noexcept

Definition at line 287 of file shape_shifter.cpp.


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


cras_topic_tools
Author(s): Martin Pecka
autogenerated on Tue Nov 26 2024 03:49:19