Go to the documentation of this file.
4 #ifndef tools_sg_xy2plot
5 #define tools_sg_xy2plot
24 static const std::string& s_empty() {
25 static const std::string s_v(
"");
33 virtual const std::string&
title()
const {
return s_empty();}
37 virtual void infos(
const std::string& a_opts,std::string& a_sinfos)
const {
39 std::string f_lf(
"\n");
40 std::vector<std::string> ws;
41 words(a_opts,
" ",
false,ws);
43 if(((*it)==
"name") &&
m_name.size()) {
44 if(a_sinfos.size()) a_sinfos += f_lf;
48 }
else if((*it)==
"entries") {
49 if(a_sinfos.size()) a_sinfos += f_lf;
50 a_sinfos +=
"Entries\n";
51 if(!numas<unsigned int>(mn<unsigned int>(
m_x.size(),
m_y.size()),a_sinfos)){}
62 virtual unsigned int points()
const {
63 return mn<unsigned int>(
m_x.size(),
m_y.size());
65 virtual bool ith_point(
unsigned int a_index,
float& a_x,
float& a_y)
const {
66 if(a_index>=
m_x.size()) {a_x = T();a_y = T();
return false;}
67 if(a_index>=
m_y.size()) {a_x = T();a_y = T();
return false;}
73 typedef typename std::vector<T>
data_t;
80 mem::increment(s_class().c_str());
90 mem::decrement(s_class().c_str());
106 mem::increment(s_class().c_str());
128 private:
static void check_instantiation() {
129 std::vector<float> data;
#define tools_vforcit(a__T, a__v, a__it)