![]() |
Home | Libraries | License | Support | People | ALPS Web Site |
alps::plot::Set — a dataset is a vector of points
// In header: <alps/plot.h> template<typename C> class Set : public std::vector< Point< C > > { public: // construct/copy/destruct Set(SetType = xy); // public member functions Set< C > & operator<<(C); Set< C > & operator<<(const boost::tuples::tuple< C, C > &); Set< C > & operator<<(const boost::tuples::tuple< C, C, C > &); Set< C > & operator<<(const boost::tuples::tuple< C, C, C, C > &); Set< C > & operator<<(const std::string &); std::string label() const; SetType type() const; void push_back(const Point< C > &); };
See Also:
Set
public member functionsSet< C > & operator<<(C p);add another value, building points step by step
depending on the plot type, 2, 3 or four values are collected to build a Point
, which is then added to the set.
Set< C > & operator<<(const boost::tuples::tuple< C, C > &);adds a new point with two coordinates, if the plot type is XY
Set< C > & operator<<(const boost::tuples::tuple< C, C, C > &);adds a new point with three coordinates, if the plot type is XDXY or XYDY
Set< C > & operator<<(const boost::tuples::tuple< C, C, C, C > &);adds a new point with four coordinates, if the plot type is XDXYDY
Set< C > & operator<<(const std::string & label);set the label (legend) for the set
std::string label() const;returns the label (legend) for the set
SetType type() const;returns the type of set, if it is an XY, XDXY, XYDY or XDXDY plot
void push_back(const Point< C > & NewPoint);adds a new point
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo |