Classes | Namespaces | Typedefs | Functions
libmath
Collaboration diagram for libmath:

Classes

struct  _Vector< N, Base >

Namespaces

namespace  AISNavigation

Typedefs

typedef _Vector< 2, double > Vector2
typedef _Vector< 2, double > Vector2
typedef _Vector< 2, floatVector2f
typedef _Vector< 2, floatVector2f
typedef _Vector< 2, int > Vector2i
typedef _Vector< 2, int > Vector2i
typedef _Vector< 3, double > Vector3
typedef _Vector< 3, double > Vector3
typedef _Vector< 3, floatVector3f
typedef _Vector< 3, floatVector3f
typedef _Vector< 6, double > Vector6
typedef _Vector< 6, double > Vector6
typedef _Vector< 6, floatVector6f
typedef _Vector< 6, floatVector6f
typedef _Vector< 0, double > VectorX
typedef _Vector< 0, double > VectorX
typedef _Vector< 0, floatVectorXf
typedef _Vector< 0, floatVectorXf

Functions

template<typename T >
std::string int void convertString (const std::string &s, T &x, bool failIfLeftoverChars=true)
template<int N, typename Base >
void dyn2st (_Vector< 0, Base > &dest, const _Vector< N, Base > src)
std::string formatString (const char *fmt,...) __attribute__((format(printf
template<int N, typename Base >
_Vector< N, Base > operator* (Base x, const _Vector< N, Base > &v)
template<int N, typename Base >
std::ostream & operator<< (std::ostream &os, const _Vector< N, Base > &v)
template<typename OutputIterator >
OutputIterator readFloats (const char *str, OutputIterator out)
template<typename OutputIterator >
OutputIterator readInts (const char *str, OutputIterator out)
template<int N, typename Base >
void st2dyn (_Vector< 0, Base > &dest, const _Vector< N, Base > src)
bool strEndsWith (const std::string &str, const std::string &substr)
std::string strExpandFilename (const std::string &filename)
template<typename T >
stringToType (const std::string &s, bool failIfLeftoverChars=true)
std::string int strPrintf (std::string &str, const char *fmt,...) __attribute__((format(printf
std::vector< std::string > strSplit (const std::string &s, const std::string &delim)
bool strStartsWith (const std::string &str, const std::string &substr)
std::string strToLower (const std::string &s)
std::string strToUpper (const std::string &s)
std::string trim (const std::string &s)
std::string trimLeft (const std::string &s)
std::string trimRight (const std::string &s)

Typedef Documentation

typedef _Vector<2,double> Vector2

Definition at line 218 of file include/hogman_minimal/math/vector_n.h.

typedef _Vector<2,double> Vector2

Definition at line 218 of file src/math/vector_n.h.

typedef _Vector<2,float> Vector2f

Definition at line 213 of file include/hogman_minimal/math/vector_n.h.

typedef _Vector<2,float> Vector2f

Definition at line 213 of file src/math/vector_n.h.

typedef _Vector<2,int> Vector2i

Definition at line 212 of file src/math/vector_n.h.

typedef _Vector<2,int> Vector2i

Definition at line 212 of file include/hogman_minimal/math/vector_n.h.

typedef _Vector<3,double> Vector3

Definition at line 219 of file include/hogman_minimal/math/vector_n.h.

typedef _Vector<3,double> Vector3

Definition at line 219 of file src/math/vector_n.h.

typedef _Vector<3,float> Vector3f

Definition at line 214 of file src/math/vector_n.h.

typedef _Vector<3,float> Vector3f

Definition at line 214 of file include/hogman_minimal/math/vector_n.h.

typedef _Vector<6,double> Vector6

Definition at line 220 of file include/hogman_minimal/math/vector_n.h.

typedef _Vector<6,double> Vector6

Definition at line 220 of file src/math/vector_n.h.

typedef _Vector<6,float> Vector6f

Definition at line 215 of file include/hogman_minimal/math/vector_n.h.

typedef _Vector<6,float> Vector6f

Definition at line 215 of file src/math/vector_n.h.

typedef _Vector<0,double> VectorX

Definition at line 223 of file src/math/vector_n.h.

typedef _Vector<0,double> VectorX

Definition at line 223 of file include/hogman_minimal/math/vector_n.h.

typedef _Vector<0,float> VectorXf

Definition at line 224 of file include/hogman_minimal/math/vector_n.h.

typedef _Vector<0,float> VectorXf

Definition at line 224 of file src/math/vector_n.h.


Function Documentation

template<typename T >
std::string int void convertString ( const std::string &  s,
T &  x,
bool  failIfLeftoverChars = true 
)

convert a string into an other type.

Definition at line 111 of file include/hogman_minimal/stuff/string_tools.h.

template<int N, typename Base >
void dyn2st ( _Vector< 0, Base > &  dest,
const _Vector< N, Base >  src 
)

Definition at line 232 of file include/hogman_minimal/math/vector_n.h.

std::string formatString ( const char *  fmt,
  ... 
)

format a string and return a std::string. Format is just like printf, see man 3 printf

template<int N, typename Base >
_Vector< N, Base > operator* ( Base  x,
const _Vector< N, Base > &  v 
)

product by a scalar, syntax scalar * vector

Definition at line 137 of file include/hogman_minimal/math/vector_n.hpp.

template<int N, typename Base >
std::ostream & operator<< ( std::ostream &  os,
const _Vector< N, Base > &  v 
)

streaming operator

Definition at line 120 of file include/hogman_minimal/math/vector_n.hpp.

template<typename OutputIterator >
OutputIterator readFloats ( const char *  str,
OutputIterator  out 
)

read float values (seperated by spaces) from a string and store them in the given OutputIterator.

Definition at line 82 of file include/hogman_minimal/stuff/string_tools.h.

template<typename OutputIterator >
OutputIterator readInts ( const char *  str,
OutputIterator  out 
)

read integer values (seperated by spaces) from a string and store them in the given OutputIterator.

Definition at line 63 of file include/hogman_minimal/stuff/string_tools.h.

template<int N, typename Base >
void st2dyn ( _Vector< 0, Base > &  dest,
const _Vector< N, Base >  src 
)

Definition at line 227 of file include/hogman_minimal/math/vector_n.h.

bool strEndsWith ( const std::string &  str,
const std::string &  substr 
)

return true, if str ends with substr

Definition at line 153 of file string_tools.cpp.

std::string strExpandFilename ( const std::string &  filename)

expand the given filename like a posix shell, e.g., ~ $CARMEN_HOME and other will get expanded. Also command substitution, e.g. `pwd` will give the current directory.

Definition at line 109 of file string_tools.cpp.

template<typename T >
T stringToType ( const std::string &  s,
bool  failIfLeftoverChars = true 
)

convert a string into an other type. Return the converted value. Throw error if parsing is wrong.

Definition at line 124 of file include/hogman_minimal/stuff/string_tools.h.

std::string int strPrintf ( std::string &  str,
const char *  fmt,
  ... 
)

replacement function for sprintf which fills a std::string instead of a char*

std::vector< std::string > strSplit ( const std::string &  s,
const std::string &  delim 
)

split a string into token based on the characters given in delim

Definition at line 131 of file string_tools.cpp.

bool strStartsWith ( const std::string &  str,
const std::string &  substr 
)

return true, if str starts with substr

Definition at line 146 of file string_tools.cpp.

std::string strToLower ( const std::string &  s)

convert the string to lower case

Definition at line 67 of file string_tools.cpp.

std::string strToUpper ( const std::string &  s)

convert a string to upper case

Definition at line 74 of file string_tools.cpp.

std::string trim ( const std::string &  s)

remove whitespaces from the start/end of a string

Definition at line 34 of file string_tools.cpp.

std::string trimLeft ( const std::string &  s)

remove whitespaces from the left side of the string

Definition at line 45 of file string_tools.cpp.

std::string trimRight ( const std::string &  s)

remove whitespaced from the right side of the string

Definition at line 56 of file string_tools.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


hogman_minimal
Author(s): Maintained by Juergen Sturm
autogenerated on Wed Dec 26 2012 15:36:50