Namespaces | Classes | Typedefs | Enumerations | Functions
RosIntrospection Namespace Reference

Namespaces

namespace  details

Classes

struct  FlatMessage
class  InlinedVector
class  Parser
class  RangeException
class  ROSField
 A ROSMessage will contain one or more ROSField(s). Each field is little more than a name / type pair. More...
class  ROSMessage
struct  ROSMessageInfo
class  ROSType
 ROSType. More...
class  ShapeShifter
 The ShapeShifter class is a type erased container for ROS Messages. It can be used also to create generic publishers and subscribers. More...
struct  StringTreeLeaf
 The StringTreeLeaf is, as the name suggests, a leaf (terminal node) of a StringTree. It provides the pointer to the node and a list of numbers that represent the index that corresponds to the placeholder "#". More...
class  SubstitutionRule
class  TypeException
class  Variant

Typedefs

typedef details::Tree< const
ROSMessage * > 
MessageTree
typedef details::TreeNode
< const ROSMessage * > 
MessageTreeNode
typedef std::vector< std::pair
< std::string, Variant > > 
RenamedValues
typedef details::Tree
< std::string > 
StringTree
typedef details::TreeNode
< std::string > 
StringTreeNode
typedef std::map< ROSType,
std::vector< SubstitutionRule > > 
SubstitutionRuleMap

Enumerations

enum  BuiltinType {
  BOOL, BYTE, CHAR, UINT8,
  UINT16, UINT32, UINT64, INT8,
  INT16, INT32, INT64, FLOAT32,
  FLOAT64, TIME, DURATION, STRING,
  OTHER
}

Functions

int builtinSize (const BuiltinType c)
bool FindPattern (const std::vector< absl::string_view > &pattern, size_t index, const StringTreeNode *tail, const StringTreeNode **head)
template<typename T >
BuiltinType getType ()
template<>
BuiltinType getType< bool > ()
template<>
BuiltinType getType< char > ()
template<>
BuiltinType getType< double > ()
template<>
BuiltinType getType< float > ()
template<>
BuiltinType getType< int16_t > ()
template<>
BuiltinType getType< int32_t > ()
template<>
BuiltinType getType< int64_t > ()
template<>
BuiltinType getType< int8_t > ()
template<>
BuiltinType getType< ros::Duration > ()
template<>
BuiltinType getType< ros::Time > ()
template<>
BuiltinType getType< std::string > ()
template<>
BuiltinType getType< uint16_t > ()
template<>
BuiltinType getType< uint32_t > ()
template<>
BuiltinType getType< uint64_t > ()
template<>
BuiltinType getType< uint8_t > ()
bool isNumberPlaceholder (const absl::string_view &s)
bool isSubstitutionPlaceholder (const absl::string_view &s)
template<typename VectorType >
void JoinStrings (const VectorType &vect, const char separator, std::string &destination)
std::ostream & operator<< (std::ostream &os, const ROSMessage &msg)
std::ostream & operator<< (std::ostream &os, const ROSMessage *msg)
std::ostream & operator<< (std::ostream &os, const BuiltinType &c)
std::ostream & operator<< (std::ostream &os, const StringTreeLeaf &leaf)
std::ostream & operator<< (std::ostream &os, const ROSType &t)
bool operator== (const std::string &a, const absl::string_view &b)
int PatternMatchAndIndexPosition (const StringTreeLeaf &leaf, const StringTreeNode *pattern_head)
int print_number (char *buffer, uint16_t value)
template<typename T >
void ReadFromBuffer (const absl::Span< uint8_t > &buffer, size_t &offset, T &destination)
template<>
void ReadFromBuffer (const absl::Span< uint8_t > &buffer, size_t &offset, std::string &destination)
template<typename T >
Variant ReadFromBufferToVariant (const absl::Span< uint8_t > &buffer, size_t &offset)
Variant ReadFromBufferToVariant (BuiltinType id, const absl::Span< uint8_t > &buffer, size_t &offset)
BuiltinType toBuiltinType (const absl::string_view &s)
const char * toStr (const BuiltinType &c)

Typedef Documentation

Definition at line 78 of file ros_message.hpp.

Definition at line 77 of file ros_message.hpp.

typedef std::vector< std::pair<std::string, Variant> > RosIntrospection::RenamedValues

Definition at line 65 of file ros_introspection.hpp.

Definition at line 75 of file ros_message.hpp.

Definition at line 74 of file ros_message.hpp.

Definition at line 142 of file substitution_rule.hpp.


Enumeration Type Documentation

Enumerator:
BOOL 
BYTE 
CHAR 
UINT8 
UINT16 
UINT32 
UINT64 
INT8 
INT16 
INT32 
INT64 
FLOAT32 
FLOAT64 
TIME 
DURATION 
STRING 
OTHER 

Definition at line 47 of file builtin_types.hpp.


Function Documentation

int RosIntrospection::builtinSize ( const BuiltinType  c) [inline]

Definition at line 58 of file builtin_types.hpp.

bool RosIntrospection::FindPattern ( const std::vector< absl::string_view > &  pattern,
size_t  index,
const StringTreeNode *  tail,
const StringTreeNode **  head 
) [inline]

Definition at line 103 of file ros_introspection.cpp.

template<typename T >
BuiltinType RosIntrospection::getType ( )

Definition at line 111 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< bool > ( ) [inline]

Definition at line 116 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< char > ( ) [inline]

Definition at line 118 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< double > ( ) [inline]

Definition at line 131 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< float > ( ) [inline]

Definition at line 130 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< int16_t > ( ) [inline]

Definition at line 121 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< int32_t > ( ) [inline]

Definition at line 122 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< int64_t > ( ) [inline]

Definition at line 123 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< int8_t > ( ) [inline]

Definition at line 120 of file builtin_types.hpp.

Definition at line 136 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< ros::Time > ( ) [inline]

Definition at line 135 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< std::string > ( ) [inline]

Definition at line 133 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< uint16_t > ( ) [inline]

Definition at line 126 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< uint32_t > ( ) [inline]

Definition at line 127 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< uint64_t > ( ) [inline]

Definition at line 128 of file builtin_types.hpp.

template<>
BuiltinType RosIntrospection::getType< uint8_t > ( ) [inline]

Definition at line 125 of file builtin_types.hpp.

Definition at line 504 of file ros_introspection.cpp.

Definition at line 509 of file ros_introspection.cpp.

template<typename VectorType >
void RosIntrospection::JoinStrings ( const VectorType &  vect,
const char  separator,
std::string &  destination 
) [inline]

Definition at line 541 of file ros_introspection.cpp.

std::ostream& RosIntrospection::operator<< ( std::ostream &  os,
const ROSMessage &  msg 
) [inline]

Definition at line 89 of file ros_message.hpp.

std::ostream& RosIntrospection::operator<< ( std::ostream &  os,
const ROSMessage *  msg 
) [inline]

Definition at line 95 of file ros_message.hpp.

std::ostream& RosIntrospection::operator<< ( std::ostream &  os,
const BuiltinType &  c 
) [inline]

Definition at line 105 of file builtin_types.hpp.

std::ostream& RosIntrospection::operator<< ( std::ostream &  os,
const StringTreeLeaf &  leaf 
) [inline]

Definition at line 109 of file stringtree_leaf.hpp.

std::ostream& RosIntrospection::operator<< ( std::ostream &  os,
const ROSType &  t 
) [inline]

Definition at line 144 of file ros_type.hpp.

bool RosIntrospection::operator== ( const std::string &  a,
const absl::string_view b 
) [inline]

Definition at line 98 of file ros_introspection.cpp.

int RosIntrospection::PatternMatchAndIndexPosition ( const StringTreeLeaf &  leaf,
const StringTreeNode *  pattern_head 
) [inline]

Definition at line 516 of file ros_introspection.cpp.

int RosIntrospection::print_number ( char *  buffer,
uint16_t  value 
) [inline]

Definition at line 47 of file helper_functions.hpp.

template<typename T >
void RosIntrospection::ReadFromBuffer ( const absl::Span< uint8_t > &  buffer,
size_t &  offset,
T &  destination 
) [inline]

Definition at line 78 of file helper_functions.hpp.

template<>
void RosIntrospection::ReadFromBuffer ( const absl::Span< uint8_t > &  buffer,
size_t &  offset,
std::string &  destination 
) [inline]

Definition at line 88 of file helper_functions.hpp.

template<typename T >
Variant RosIntrospection::ReadFromBufferToVariant ( const absl::Span< uint8_t > &  buffer,
size_t &  offset 
) [inline]

Definition at line 105 of file helper_functions.hpp.

Variant RosIntrospection::ReadFromBufferToVariant ( BuiltinType  id,
const absl::Span< uint8_t > &  buffer,
size_t &  offset 
) [inline]

Definition at line 112 of file helper_functions.hpp.

Definition at line 150 of file ros_type.hpp.

const char* RosIntrospection::toStr ( const BuiltinType &  c) [inline]

Definition at line 81 of file builtin_types.hpp.



ros_type_introspection
Author(s): Davide Faconti
autogenerated on Tue May 14 2019 02:49:42