Public Member Functions | Private Member Functions | Private Attributes | List of all members
cpp_introspection::ExpandedMessage Class Reference

#include <message_expansion.h>

Inheritance diagram for cpp_introspection::ExpandedMessage:
Inheritance graph
[legend]

Public Member Functions

 ExpandedMessage (const MessagePtr &parent, const std::string &separator=".", const std::string &prefix=std::string())
 
virtual FieldWPtr field (const std::string &name) const
 
virtual const V_Fieldfields () const
 
virtual const V_FieldNamegetFieldNames () const
 
virtual MessagePtr introspect (void *instance) const
 
virtual MessagePtr introspect (void const *instance) const
 
virtual ~ExpandedMessage ()
 
- Public Member Functions inherited from cpp_introspection::MessageForwarder
virtual VoidPtr createInstance () const
 
virtual VoidPtr deserialize (ros::serialization::IStream &stream, const VoidPtr &instance=VoidPtr()) const
 
virtual VoidConstPtr getConstInstance () const
 
virtual const char * getDataType () const
 
virtual const char * getDefinition () const
 
virtual std::string * getFrameId (const VoidPtr &instance) const
 
virtual const std::string * getFrameId (const VoidConstPtr &instance) const
 
virtual std_msgs::Header * getHeader (const VoidPtr &instance) const
 
virtual const std_msgs::Header * getHeader (const VoidConstPtr &instance) const
 
virtual VoidPtr getInstance () const
 
virtual const char * getMD5Sum () const
 
virtual const char * getName () const
 
virtual const char * getPackageName () const
 
virtual ros::TimegetTimeStamp (const VoidPtr &instance) const
 
virtual const ros::TimegetTimeStamp (const VoidConstPtr &instance) const
 
virtual const std::type_info & getTypeId () const
 
virtual bool hasHeader () const
 
virtual bool hasInstance () const
 
virtual MessagePtr introspect (const VoidPtr &instance) const
 
virtual MessagePtr introspect (const VoidConstPtr &instance) const
 
virtual bool isFixedSize () const
 
virtual bool isMessage () const
 
virtual bool isSimple () const
 
 MessageForwarder (const MessagePtr &parent)
 
virtual PackagePtr package () const
 
virtual std::size_t serializationLength (const VoidConstPtr &instance=VoidConstPtr()) const
 
virtual void serialize (ros::serialization::OStream &stream, const VoidConstPtr &instance=VoidConstPtr()) const
 
virtual ros::SerializedMessage serialize (const VoidConstPtr &instance=VoidConstPtr()) const
 
virtual ~MessageForwarder ()
 
- Public Member Functions inherited from cpp_introspection::Message
const_iterator begin () const
 
const_iterator end () const
 
template<typename T >
boost::shared_ptr< T const > getConstInstanceAs () const
 
V_string getFields (bool expand=false, const std::string &separator=".", const std::string &prefix=std::string()) const
 
V_stringgetFields (V_string &fields, bool expand=false, const std::string &separator=".", const std::string &prefix=std::string()) const
 
template<typename T >
boost::shared_ptr< T > getInstanceAs () const
 
V_string getTypes (bool expand=false) const
 
V_stringgetTypes (V_string &types, bool expand=false) const
 
std::vector< boost::any > getValues (bool expand=false) const
 
std::vector< boost::any > & getValues (std::vector< boost::any > &values, bool expand=false) const
 
template<typename T >
bool hasType () const
 
virtual MessagePtr introspect () const
 
template<typename T >
T::Ptr narrow (const VoidPtr &instance) const
 
template<typename T >
T::ConstPtr narrow (const VoidConstPtr &instance) const
 
std::size_t size () const
 
virtual ~Message ()
 

Private Member Functions

void expand (const MessagePtr &message, const std::string &prefix)
 

Private Attributes

V_FieldName field_names_
 
V_Field fields_
 
M_Field fields_by_name_
 
std::string prefix_
 
std::string separator_
 

Additional Inherited Members

- Public Types inherited from cpp_introspection::Message
typedef V_Field::const_iterator const_iterator
 
typedef V_Field::iterator iterator
 
- Protected Attributes inherited from cpp_introspection::MessageForwarder
const MessagePtrparent_
 

Detailed Description

Definition at line 81 of file message_expansion.h.

Constructor & Destructor Documentation

cpp_introspection::ExpandedMessage::ExpandedMessage ( const MessagePtr parent,
const std::string &  separator = ".",
const std::string &  prefix = std::string() 
)
inline

Definition at line 91 of file message_expansion.h.

virtual cpp_introspection::ExpandedMessage::~ExpandedMessage ( )
inlinevirtual

Definition at line 98 of file message_expansion.h.

Member Function Documentation

void cpp_introspection::ExpandedMessage::expand ( const MessagePtr message,
const std::string &  prefix 
)
private

Definition at line 114 of file introspection.cpp.

virtual FieldWPtr cpp_introspection::ExpandedMessage::field ( const std::string &  name) const
inlinevirtual

Implements cpp_introspection::Message.

Definition at line 101 of file message_expansion.h.

virtual const V_Field& cpp_introspection::ExpandedMessage::fields ( ) const
inlinevirtual

Implements cpp_introspection::Message.

Definition at line 100 of file message_expansion.h.

virtual const V_FieldName& cpp_introspection::ExpandedMessage::getFieldNames ( ) const
inlinevirtual

Implements cpp_introspection::Message.

Definition at line 102 of file message_expansion.h.

virtual MessagePtr cpp_introspection::ExpandedMessage::introspect ( void *  instance) const
inlinevirtual

Reimplemented from cpp_introspection::MessageForwarder.

Definition at line 104 of file message_expansion.h.

virtual MessagePtr cpp_introspection::ExpandedMessage::introspect ( void const *  instance) const
inlinevirtual

Reimplemented from cpp_introspection::MessageForwarder.

Definition at line 105 of file message_expansion.h.

Member Data Documentation

V_FieldName cpp_introspection::ExpandedMessage::field_names_
private

Definition at line 85 of file message_expansion.h.

V_Field cpp_introspection::ExpandedMessage::fields_
private

Definition at line 83 of file message_expansion.h.

M_Field cpp_introspection::ExpandedMessage::fields_by_name_
private

Definition at line 84 of file message_expansion.h.

std::string cpp_introspection::ExpandedMessage::prefix_
private

Definition at line 88 of file message_expansion.h.

std::string cpp_introspection::ExpandedMessage::separator_
private

Definition at line 87 of file message_expansion.h.


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


cpp_introspection
Author(s): Johannes Meyer
autogenerated on Mon Jun 10 2019 12:56:18