#ifndef FUNC_ADD_H_
#define FUNC_ADD_H_

#include <functions/ScalarFunc.h>

/**
 * The Add function implements the infix operator "+" in the BUGS language.
 * The expression a + b + c is broken down into ((a + b) + c), so two
 * separate calls to Add are made.
 * @short Sum of two scalars
 * <pre>
 * y <- a + b
 * </pre>
 */
class Add:public ScalarFunc
{
public:
  Add ();
  double eval (std::vector < SArray const *>const &args) const;
  bool isDiscreteValued(std::vector<SArray const *> const &flags) const;
};

#endif /* FUNC_ADD_H_ */


syntax highlighted by Code2HTML, v. 0.9.1