ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Class template Set

alps::plot::Set — a dataset is a vector of points

Synopsis

// 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 > &);
};

Description

See Also:

alps::plot::Point

Set public construct/copy/destruct

  1. Set(SetType st = xy);
    the default set type is xy, i.e. no error bars

Set public member functions

  1. Set< 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.

  2. Set< C > & operator<<(const boost::tuples::tuple< C, C > &);
    adds a new point with two coordinates, if the plot type is XY
  3. 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
  4. Set< C > & operator<<(const boost::tuples::tuple< C, C, C, C > &);
    adds a new point with four coordinates, if the plot type is XDXYDY
  5. Set< C > & operator<<(const std::string & label);
    set the label (legend) for the set
  6. std::string label() const;
    returns the label (legend) for the set
  7. SetType type() const;
    returns the type of set, if it is an XY, XDXY, XYDY or XDXDY plot
  8. void push_back(const Point< C > & NewPoint);
    adds a new point
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext