Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
cpp_introspection::Accessor< T > Class Template Reference

#include <accessor.h>

Inheritance diagram for cpp_introspection::Accessor< T >:
Inheritance graph
[legend]

Classes

class  FieldAccess
 

Public Types

typedef boost::is_const< T >::type is_const
 
- Public Types inherited from cpp_introspection::MessageTemplate< boost::remove_const< T >::type >
typedef boost::remove_const< T >::type MessageType
 
- Public Types inherited from cpp_introspection::Message
typedef V_Field::const_iterator const_iterator
 
typedef V_Field::iterator iterator
 

Public Member Functions

 Accessor (const Message &message, const boost::shared_ptr< T > &instance)
 
VoidPtr deserialize (ros::serialization::IStream &stream, const VoidPtr &) const
 
FieldWPtr field (const std::string &name) const
 
const V_Fieldfields () const
 
VoidConstPtr getConstInstance () const
 
const V_FieldNamegetFieldNames () const
 
VoidPtr getInstance () const
 
const char * getName () const
 
const char * getPackageName () const
 
bool hasInstance () const
 
T & instance () const
 
PackagePtr package () const
 
std::size_t serializationLength (const VoidConstPtr &) const
 
void serialize (ros::serialization::OStream &stream, const VoidConstPtr &) const
 
ros::SerializedMessage serialize (const VoidConstPtr &) const
 
virtual ~Accessor ()
 
- Public Member Functions inherited from cpp_introspection::MessageTemplate< boost::remove_const< T >::type >
VoidPtr createInstance () const
 
VoidPtr deserialize (ros::serialization::IStream &stream, const VoidPtr &instance=VoidPtr()) const
 
const char * getDataType () const
 
const char * getDefinition () const
 
std::string * getFrameId (const VoidPtr &instance) const
 
const std::string * getFrameId (const VoidConstPtr &instance) const
 
::std_msgs::Header * getHeader (const VoidPtr &instance) const
 
const ::std_msgs::Header * getHeader (const VoidConstPtr &instance) const
 
const char * getMD5Sum () const
 
ros::TimegetTimeStamp (const VoidPtr &instance) const
 
const ros::TimegetTimeStamp (const VoidConstPtr &instance) const
 
const std::type_info & getTypeId () const
 
bool hasHeader () const
 
MessagePtr introspect (const VoidPtr &instance) const
 
MessagePtr introspect (void *instance) const
 
MessagePtr introspect (const VoidConstPtr &instance) const
 
MessagePtr introspect (void const *instance) const
 
bool isFixedSize () const
 
bool isSimple () const
 
std::size_t serializationLength (const VoidConstPtr &instance=VoidConstPtr()) const
 
void serialize (ros::serialization::OStream &stream, const VoidConstPtr &instance=VoidConstPtr()) const
 
ros::SerializedMessage serialize (const VoidConstPtr &instance=VoidConstPtr()) const
 
virtual ~MessageTemplate ()
 
- 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
 
virtual bool isMessage () 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 ()
 

Static Public Member Functions

template<class FieldType >
static FieldPtr access (const FieldType &field, AccessorBase &accessor)
 

Private Attributes

V_Field fields_
 
M_Field fields_by_name_
 
boost::shared_ptr< T > instance_
 
const Messagemessage_
 

Detailed Description

template<typename T>
class cpp_introspection::Accessor< T >

Definition at line 45 of file accessor.h.

Member Typedef Documentation

template<typename T >
typedef boost::is_const<T>::type cpp_introspection::Accessor< T >::is_const

Definition at line 48 of file accessor.h.

Constructor & Destructor Documentation

template<typename T >
cpp_introspection::Accessor< T >::Accessor ( const Message message,
const boost::shared_ptr< T > &  instance 
)
inline

Definition at line 57 of file accessor.h.

template<typename T >
virtual cpp_introspection::Accessor< T >::~Accessor ( )
inlinevirtual

Definition at line 68 of file accessor.h.

Member Function Documentation

template<typename T >
template<class FieldType >
static FieldPtr cpp_introspection::Accessor< T >::access ( const FieldType &  field,
AccessorBase accessor 
)
inlinestatic

Definition at line 137 of file accessor.h.

template<typename T >
VoidPtr cpp_introspection::Accessor< T >::deserialize ( ros::serialization::IStream stream,
const VoidPtr  
) const
inlinevirtual

Implements cpp_introspection::Message.

Definition at line 89 of file accessor.h.

template<typename T >
FieldWPtr cpp_introspection::Accessor< T >::field ( const std::string &  name) const
inlinevirtual

Implements cpp_introspection::Message.

Definition at line 83 of file accessor.h.

template<typename T >
const V_Field& cpp_introspection::Accessor< T >::fields ( ) const
inlinevirtual

Implements cpp_introspection::Message.

Definition at line 82 of file accessor.h.

template<typename T >
VoidConstPtr cpp_introspection::Accessor< T >::getConstInstance ( ) const
inlinevirtual

Reimplemented from cpp_introspection::Message.

Definition at line 72 of file accessor.h.

template<typename T >
const V_FieldName& cpp_introspection::Accessor< T >::getFieldNames ( ) const
inlinevirtual

Implements cpp_introspection::Message.

Definition at line 84 of file accessor.h.

template<typename T >
VoidPtr cpp_introspection::Accessor< T >::getInstance ( ) const
inlinevirtual

Reimplemented from cpp_introspection::Message.

Definition at line 71 of file accessor.h.

template<typename T >
const char* cpp_introspection::Accessor< T >::getName ( ) const
inlinevirtual

Implements cpp_introspection::Message.

Definition at line 79 of file accessor.h.

template<typename T >
const char* cpp_introspection::Accessor< T >::getPackageName ( ) const
inlinevirtual

Implements cpp_introspection::Message.

Definition at line 77 of file accessor.h.

template<typename T >
bool cpp_introspection::Accessor< T >::hasInstance ( ) const
inlinevirtual

Reimplemented from cpp_introspection::Message.

Definition at line 70 of file accessor.h.

template<typename T >
T& cpp_introspection::Accessor< T >::instance ( ) const
inline

Definition at line 74 of file accessor.h.

template<typename T >
PackagePtr cpp_introspection::Accessor< T >::package ( ) const
inlinevirtual

Implements cpp_introspection::Message.

Definition at line 76 of file accessor.h.

template<typename T >
std::size_t cpp_introspection::Accessor< T >::serializationLength ( const VoidConstPtr ) const
inlinevirtual

Implements cpp_introspection::Message.

Definition at line 88 of file accessor.h.

template<typename T >
void cpp_introspection::Accessor< T >::serialize ( ros::serialization::OStream stream,
const VoidConstPtr  
) const
inlinevirtual

Implements cpp_introspection::Message.

Definition at line 86 of file accessor.h.

template<typename T >
ros::SerializedMessage cpp_introspection::Accessor< T >::serialize ( const VoidConstPtr ) const
inlinevirtual

Implements cpp_introspection::Message.

Definition at line 87 of file accessor.h.

Member Data Documentation

template<typename T >
V_Field cpp_introspection::Accessor< T >::fields_
private

Definition at line 53 of file accessor.h.

template<typename T >
M_Field cpp_introspection::Accessor< T >::fields_by_name_
private

Definition at line 54 of file accessor.h.

template<typename T >
boost::shared_ptr<T> cpp_introspection::Accessor< T >::instance_
private

Definition at line 52 of file accessor.h.

template<typename T >
const Message& cpp_introspection::Accessor< T >::message_
private

Definition at line 51 of file accessor.h.


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


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