CLHEP
2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Abs.cc
Go to the documentation of this file.
1
// $Id:
2
// -*- C++ -*-
3
//
4
#include "CLHEP/GenericFunctions/Abs.hh"
5
#include <cmath>
6
7
namespace
Genfun
{
8
9
FUNCTION_OBJECT_IMP
(Abs)
10
11
Abs
::
Abs
()
12
{}
13
14
Abs::Abs
(
const
Abs
& right) :
AbsFunction
(right)
15
{
16
}
17
18
Abs::~Abs
() {
19
}
20
21
double
Abs::operator()
(
double
x)
const
{
22
return
std::abs(x);
23
}
24
25
}
26
FUNCTION_OBJECT_IMP
#define FUNCTION_OBJECT_IMP(classname)
Definition:
AbsFunction.hh:149
Genfun::AbsFunction
Definition:
AbsFunction.hh:48
Genfun::Abs
Definition:
Abs.hh:15
Genfun::Abs::Abs
Abs()
Definition:
Abs.cc:11
Genfun::Abs::~Abs
virtual ~Abs()
Definition:
Abs.cc:18
Genfun::Abs::operator()
virtual double operator()(double argument) const override
Definition:
Abs.cc:21
Genfun
Definition:
Abs.hh:14
CLHEP-CLHEP_2_4_6_4
GenericFunctions
src
Abs.cc
Generated by
1.9.6