ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Class template value_with_error

alps::alea::value_with_error

Synopsis

// In header: <alps/alea/value_with_error.h>

template<typename T> 
class value_with_error {
public:
  // types
  typedef T                             value_type;     
  typedef alps::element_type< T >::type element_type;   
  typedef std::size_t                   size_type;      
  typedef std::size_t                   index_type;     
  typedef std::ptrdiff_t                difference_type;

  // construct/copy/destruct
  value_with_error(value_type = value_type(), value_type = value_type());
  value_with_error& operator=(value_with_error< value_type > const );

  // public member functions
  value_type mean() const;
  value_type error() const;
  bool operator==(value_with_error const &) ;
  value_with_error< value_type > & 
  operator+=(value_with_error< value_type > const &) ;
  value_with_error< value_type > & operator+=(value_type const &) ;
  value_with_error< value_type > & operator-=(value_with_error const &) ;
  value_with_error< value_type > & operator-=(value_type const &) ;
  value_with_error< value_type > & 
  operator*=(value_with_error< value_type > const &) ;
  value_with_error< value_type > & operator*=(value_type const &) ;
  value_with_error< value_type > & 
  operator/=(value_with_error< value_type > const &) ;
  value_with_error< value_type > & operator/=(value_type const &) ;
  size_type size() const;
  void push_back(value_with_error< element_type > const &) ;
  void pop_back() ;
  void clear() ;
  void insert(index_type const &, value_with_error< element_type > const &) ;
  void erase(index_type const &) ;
  value_with_error< element_type > at(index_type const &) ;
};

Description

value_with_error public construct/copy/destruct

  1. value_with_error(value_type mean = value_type(), 
                     value_type error = value_type());
  2. value_with_error& operator=(value_with_error< value_type > const  rhs);

value_with_error public member functions

  1. value_type mean() const;
  2. value_type error() const;
  3. bool operator==(value_with_error const & rhs) ;
  4. value_with_error< value_type > & 
    operator+=(value_with_error< value_type > const & rhs) ;
  5. value_with_error< value_type > & operator+=(value_type const & rhs) ;
  6. value_with_error< value_type > & operator-=(value_with_error const & rhs) ;
  7. value_with_error< value_type > & operator-=(value_type const & rhs) ;
  8. value_with_error< value_type > & 
    operator*=(value_with_error< value_type > const & rhs) ;
  9. value_with_error< value_type > & operator*=(value_type const & rhs) ;
  10. value_with_error< value_type > & 
    operator/=(value_with_error< value_type > const & rhs) ;
  11. value_with_error< value_type > & operator/=(value_type const & rhs) ;
  12. size_type size() const;
  13. void push_back(value_with_error< element_type > const & rhs) ;
  14. void pop_back() ;
  15. void clear() ;
  16. void insert(index_type const & index, 
                value_with_error< element_type > const & value) ;
  17. void erase(index_type const & index) ;
  18. value_with_error< element_type > at(index_type const & index) ;
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext