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= (const ::topic_tools::ShapeShifter &other)
 
ShapeShifteroperator= (::topic_tools::ShapeShifter &&other) noexcept
 
ShapeShifteroperator= (const ShapeShifter &other)
 
ShapeShifteroperator= (ShapeShifter &&other) noexcept
 
 ShapeShifter ()
 
 ShapeShifter (const ::topic_tools::ShapeShifter &other)
 
 ShapeShifter (::topic_tools::ShapeShifter &&other) noexcept
 
 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 118 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 220 of file shape_shifter.cpp.

◆ ShapeShifter() [5/5]

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

Definition at line 235 of file shape_shifter.cpp.

Member Function Documentation

◆ operator=() [1/4]

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

◆ operator=() [2/4]

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

◆ operator=() [3/4]

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

Definition at line 251 of file shape_shifter.cpp.

◆ operator=() [4/4]

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

Definition at line 281 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 Sat Jun 17 2023 02:33:13