Go to the documentation of this file.
12 typename std::unordered_map<std::string, T>::iterator
13 addImpl(std::unordered_map<std::string, T>& series,
const std::string& name,
28 .emplace(std::piecewise_construct, std::forward_as_tuple(name),
29 std::forward_as_tuple(name, group))
34 T&
getOrCreateImpl(std::unordered_map<std::string, T>& series,
const std::string& name,
37 auto it = series.find(name);
38 if (it == series.end())
40 it =
addImpl(series, name, group);
97 throw std::runtime_error(
"Group name can not be empty");
99 auto& group =
groups[name];
102 group = std::make_shared<PlotGroup>(name);
109 std::unordered_set<std::string> out;
112 out.insert(it.first);
116 out.insert(it.first);
120 out.insert(it.first);
136 it.second.setMaximumRangeX(range);
140 it.second.setMaximumRangeX(range);
144 it.second.setMaximumRangeX(range);
151 auto num_it =
numeric.find(name);
158 auto str_it =
strings.find(name);
PlotDataAny & getOrCreateUserDefined(const std::string &name, PlotGroup::Ptr group={})
ScatterXYMap::iterator addScatterXY(const std::string &name, PlotGroup::Ptr group={})
StringSeriesMap::iterator addStringSeries(const std::string &name, PlotGroup::Ptr group={})
TimeseriesMap::iterator addNumeric(const std::string &name, PlotGroup::Ptr group={})
bool erase(const std::string &name)
T & getOrCreateImpl(std::unordered_map< std::string, T > &series, const std::string &name, const PlotGroup::Ptr &group)
PlotGroup::Ptr getOrCreateGroup(const std::string &name)
TimeseriesMap numeric
Numerical timeseries.
void setMaximumRangeX(double range)
std::shared_ptr< PlotGroup > Ptr
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={})
std::unordered_map< std::string, T >::iterator addImpl(std::unordered_map< std::string, T > &series, const std::string &name, PlotGroup::Ptr group)
std::unordered_set< std::string > getAllNames() const
StringSeries & getOrCreateStringSeries(const std::string &name, PlotGroup::Ptr group={})
AnySeriesMap user_defined
StringSeriesMap strings
Series of strings.
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45