ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Class template SignedObservable

alps::SignedObservable

Synopsis

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

template<typename OBS, typename SIGN = double> 
class SignedObservable : public alps::AbstractSignedObservable< OBS, SIGN >,
                         public alps::RecordableObservable< OBS::value_type, SIGN >
{
public:
  // types
  typedef OBS                                           observable_type;
  typedef SIGN                                          sign_type;      
  typedef AbstractSignedObservable< OBS, SIGN >         base_type;      
  typedef observable_type::value_type                   value_type;       // the data type of the observable 
  typedef average_type< value_type >::type              result_type;      // the data type of averages and errors 
  typedef std::size_t                                   count_type;       // the count data type: an integral type 
  typedef change_value_type< value_type, double >::type time_type;        // the data type for autocorrelation times 
  typedef super_type::label_type                        label_type;     

  // construct/copy/destruct
  SignedObservable(const OBS &, const std::string & = "Sign");
  SignedObservable(const std::string & = "", const std::string & = "Sign", 
                   const label_type & = label_type());
  template<typename ARG> 
    SignedObservable(const std::string &, const ARG &, 
                     const label_type & = label_type());
  template<typename ARG> 
    SignedObservable(const std::string &, std::string &, const ARG &, 
                     const label_type & = label_type());
  ~SignedObservable();

  // public member functions
  Observable * clone() const;
  void operator<<(const value_type &);
  void add(const value_type &);
  void add(const value_type &, sign_type);
};

Description

SignedObservable public construct/copy/destruct

  1. SignedObservable(const OBS & obs, const std::string & s = "Sign");
  2. SignedObservable(const std::string & name = "", 
                     const std::string & s = "Sign", 
                     const label_type & l = label_type());
  3. template<typename ARG> 
      SignedObservable(const std::string & name, const ARG & arg, 
                       const label_type & l = label_type());
  4. template<typename ARG> 
      SignedObservable(const std::string & name, std::string & s, const ARG & arg, 
                       const label_type & l = label_type());
  5. ~SignedObservable();

SignedObservable public member functions

  1. Observable * clone() const;

    clones the observable

  2. void operator<<(const value_type & x);
  3. void add(const value_type & x);
  4. void add(const value_type & x, sign_type s);
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext