![]() |
Home | Libraries | License | Support | People | ALPS Web Site |
alps::alea::value_with_error
// In header: <alps/alea/value_with_error.hpp> 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< value_type > & 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 &); };
value_with_error
public
construct/copy/destructvalue_with_error(value_type mean = value_type(), value_type error = value_type());
value_with_error< value_type > & operator=(value_with_error< value_type > const rhs);
value_with_error
public member functionsvalue_type mean() const;
value_type error() const;
bool operator==(value_with_error const & rhs);
value_with_error< value_type > & operator+=(value_with_error< value_type > const & rhs);
value_with_error< value_type > & operator+=(value_type const & rhs);
value_with_error< value_type > & operator-=(value_with_error const & rhs);
value_with_error< value_type > & operator-=(value_type const & rhs);
value_with_error< value_type > & operator*=(value_with_error< value_type > const & rhs);
value_with_error< value_type > & operator*=(value_type const & rhs);
value_with_error< value_type > & operator/=(value_with_error< value_type > const & rhs);
value_with_error< value_type > & operator/=(value_type const & rhs);
size_type size() const;
void push_back(value_with_error< element_type > const & rhs);
void pop_back();
void clear();
void insert(index_type const & index, value_with_error< element_type > const & value);
void erase(index_type const & index);
value_with_error< element_type > at(index_type const & index);
Copyright © 1994, 2002-2004, 2012 Matthias Troyer, Synge Todo, Maximilian Poprawe |