Go to the documentation of this file.
52 std::unordered_map<std::string, PlotGroup::Ptr>
groups;
75 std::unordered_set<std::string>
getAllNames()
const;
81 bool erase(
const std::string& name);
84 template <
typename Value>
86 std::unordered_map<std::string, Value>&
data)
93 std::vector<std::string> temp_key;
94 temp_key.reserve(
data.size());
95 std::vector<Value> temp_value;
96 temp_value.reserve(
data.size());
101 key.reserve(prefix.size() + 2 + it.first.size());
102 key = (it.first.front() ==
'/') ? (prefix + it.first) : (prefix +
"/" + it.first);
104 temp_key.emplace_back(key);
105 temp_value.emplace_back(
std::move(it.second));
110 for (
size_t i = 0; i < temp_key.size(); i++)
112 const std::string& key = temp_key[i];
114 auto it =
data.emplace(std::piecewise_construct, std::forward_as_tuple(key),
124 #endif // PJ_PLOTDATA_H
PlotDataAny & getOrCreateUserDefined(const std::string &name, PlotGroup::Ptr group={})
ScatterXYMap::iterator addScatterXY(const std::string &name, PlotGroup::Ptr group={})
auto first(const T &value, const Tail &...) -> const T &
StringSeriesMap::iterator addStringSeries(const std::string &name, PlotGroup::Ptr group={})
TimeseriesMap::iterator addNumeric(const std::string &name, PlotGroup::Ptr group={})
std::unordered_map< std::string, PlotData > TimeseriesMap
The PlotDataMapRef is the main data structure used to store all the timeseries in a single place.
bool erase(const std::string &name)
PlotGroup::Ptr getOrCreateGroup(const std::string &name)
TimeseriesMap numeric
Numerical timeseries.
void setMaximumRangeX(double range)
std::shared_ptr< PlotGroup > Ptr
std::unordered_map< std::string, PlotDataAny > AnySeriesMap
TimeseriesBase< double > PlotData
const T & move(const T &v)
std::unordered_map< std::string, StringSeries > StringSeriesMap
PlotDataXY & getOrCreateScatterXY(const std::string &name, PlotGroup::Ptr group={})
AnySeriesMap::iterator addUserDefined(const std::string &name, PlotGroup::Ptr group={})
std::unordered_map< std::string, PlotGroup::Ptr > groups
Each series can have (optionally) a group. Groups can have their own properties.
PlotData & getOrCreateNumeric(const std::string &name, PlotGroup::Ptr group={})
void AddPrefixToPlotData(const std::string &prefix, std::unordered_map< std::string, Value > &data)
std::unordered_map< std::string, PlotDataXY > ScatterXYMap
std::unordered_set< std::string > getAllNames() const
StringSeries & getOrCreateStringSeries(const std::string &name, PlotGroup::Ptr group={})
AnySeriesMap user_defined
PlotDataBase< double, double > PlotDataXY
TimeseriesBase< std::any > PlotDataAny
StringSeriesMap strings
Series of strings.
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45