CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Abs.cc
Go to the documentation of this file.
1 // $Id:
2 // -*- C++ -*-
3 //
5 #include <cmath>
6 
7 namespace Genfun {
8 
10 
11 Abs::Abs()
12 {}
13 
14 Abs::Abs(const Abs & right) : AbsFunction(right)
15 {
16 }
17 
19 }
20 
21 double Abs::operator() (double x) const {
22  return std::abs(x);
23 }
24 
25 }
26 
Genfun::Abs
Definition: CLHEP/GenericFunctions/Abs.hh:15
Genfun::AbsFunction
Definition: CLHEP/GenericFunctions/AbsFunction.hh:48
Genfun::Abs::Abs
Abs()
Definition: Abs.cc:11
Genfun::Abs::~Abs
virtual ~Abs()
Definition: Abs.cc:18
Abs.hh
x
any side effects of that construction would occur twice The semantics of throw x
Definition: whyZMthrowRethrows.txt:37
FUNCTION_OBJECT_IMP
#define FUNCTION_OBJECT_IMP(classname)
Definition: CLHEP/GenericFunctions/AbsFunction.hh:156
Genfun::Abs::operator()
virtual double operator()(double argument) const
Definition: Abs.cc:21
Genfun
Definition: CLHEP/GenericFunctions/Abs.hh:14