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

Namespaces

 details
 

Classes

struct  FlatMessage
 
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
 
template<class T >
using Span = nonstd::span< T >
 
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)
 
void CreateStringFromTreeLeaf (const StringTreeLeaf &leaf, bool skip_root, std::string &out)
 
template<typename Container >
void ExpandVectorIfNecessary (Container &container, size_t new_size)
 
bool FindPattern (const std::vector< boost::string_ref > &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 boost::string_ref &s)
 
bool isSubstitutionPlaceholder (const boost::string_ref &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 StringTreeLeaf &leaf)
 
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 ROSType &t)
 
bool operator== (const std::string &a, const boost::string_ref &b)
 
int PatternMatchAndIndexPosition (const StringTreeLeaf &leaf, const StringTreeNode *pattern_head)
 
int print_number (char *buffer, uint16_t value)
 
template<typename T >
void ReadFromBuffer (const Span< uint8_t > &buffer, size_t &offset, T &destination)
 
template<>
void ReadFromBuffer (const Span< uint8_t > &buffer, size_t &offset, std::string &destination)
 
template<typename T >
Variant ReadFromBufferToVariant (const Span< uint8_t > &buffer, size_t &offset)
 
Variant ReadFromBufferToVariant (BuiltinType id, const Span< uint8_t > &buffer, size_t &offset)
 
std::vector< boost::string_ref > StrSplit (boost::string_ref str, boost::string_ref delim)
 
BuiltinType toBuiltinType (const boost::string_ref &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 66 of file ros_introspection.hpp.

template<class T >
using RosIntrospection::Span = typedef nonstd::span<T>

Definition at line 46 of file helper_functions.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.

void RosIntrospection::CreateStringFromTreeLeaf ( const StringTreeLeaf leaf,
bool  skip_root,
std::string &  out 
)

Definition at line 84 of file stringtree_leaf.cpp.

template<typename Container >
void RosIntrospection::ExpandVectorIfNecessary ( Container &  container,
size_t  new_size 
)
inline

Definition at line 332 of file ros_introspection.cpp.

bool RosIntrospection::FindPattern ( const std::vector< boost::string_ref > &  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.

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.

bool RosIntrospection::isNumberPlaceholder ( const boost::string_ref &  s)
inline

Definition at line 541 of file ros_introspection.cpp.

bool RosIntrospection::isSubstitutionPlaceholder ( const boost::string_ref &  s)
inline

Definition at line 546 of file ros_introspection.cpp.

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

Definition at line 578 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 StringTreeLeaf leaf 
)
inline

Definition at line 94 of file stringtree_leaf.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 ROSType t 
)
inline

Definition at line 144 of file ros_type.hpp.

bool RosIntrospection::operator== ( const std::string &  a,
const boost::string_ref &  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 553 of file ros_introspection.cpp.

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

Definition at line 49 of file helper_functions.hpp.

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

Definition at line 80 of file helper_functions.hpp.

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

Definition at line 90 of file helper_functions.hpp.

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

Definition at line 107 of file helper_functions.hpp.

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

Definition at line 114 of file helper_functions.hpp.

std::vector<boost::string_ref> RosIntrospection::StrSplit ( boost::string_ref  str,
boost::string_ref  delim 
)

Definition at line 41 of file substitution_rule.cpp.

BuiltinType RosIntrospection::toBuiltinType ( const boost::string_ref &  s)
inline

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 Sun Sep 6 2020 03:19:54