Template Class SplineContainer

Class Documentation

template<class T>
class bitbots_splines::SplineContainer

SplineContainer

Wrapper for map of generic splines types indexed by string name Implementation of implort/export from files

Public Functions

inline size_t size() const

Return the number of contained splines

template<typename ...Args>
inline void add(const std::string &name, Args... args)

Add an empty spline with given name. Variadic arguments allow to pass parameters to spline constructor.

inline bool exist(const std::string &name) const

Return true if given spline name is contained

inline const T &get(const std::string &name) const

Access to given named spline

inline T &get(const std::string &name)
inline const std::map<std::string, T> &get() const

Access to internal map container

inline std::map<std::string, T> &get()
inline std::vector<double> getTimes() const

Returns all time points where a point in any spline exists.

inline double min() const

Return minimum and maximum abscisse values of all registered splines parts

inline double max() const
inline void exportData(const std::string &file_name) const

Export to and Import from given file name in “spline” CSV format prefixed with spline name

inline void importData(const std::string &file_name)

Private Members

std::map<std::string, T> container_

Spline container indexed by their name