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

AbsParameter.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 // $Id: AbsParameter.cc,v 1.3 2003/09/06 14:04:14 boudreau Exp $
00003 #include "CLHEP/GenericFunctions/AbsParameter.hh"
00004 #include "CLHEP/GenericFunctions/Parameter.hh"
00005 namespace Genfun {
00006 
00007 // Two do-nothing functions:
00008 AbsParameter::AbsParameter() {
00009 }
00010   
00011 AbsParameter::~AbsParameter(){
00012 }
00013 
00014 AbsParameter::AbsParameter(const AbsParameter &)
00015 {}
00016 
00017 AbsParameter *AbsParameter::clone() const {
00018   return _clone();
00019 }
00020 
00021   
00022 ParameterSum operator + (const AbsParameter & a, const AbsParameter & b) {
00023   return ParameterSum(&a,&b);
00024 }
00025 
00026 ParameterDifference operator - (const AbsParameter & a, const AbsParameter & b) {
00027   return ParameterDifference(&a,&b);
00028 }
00029 
00030 ParameterProduct operator * (const AbsParameter & a, const AbsParameter & b) {
00031   return ParameterProduct(&a,&b);
00032 }
00033 
00034 ParameterQuotient operator / (const AbsParameter & a, const AbsParameter & b) {
00035   return ParameterQuotient(&a,&b);
00036 }
00037 
00038 
00039 ParameterNegation operator - (const AbsParameter & a) {
00040   return ParameterNegation(&a);
00041 }
00042 
00043 
00044 ConstTimesParameter           operator * (double c, const AbsParameter &op2){
00045   return ConstTimesParameter (c, &op2);
00046 }
00047 
00048 ConstPlusParameter               operator + (double c, const AbsParameter &op2){
00049   return ConstPlusParameter (c, &op2);
00050 }
00051 
00052 ConstMinusParameter        operator - (double c, const AbsParameter &op2){
00053   return ConstMinusParameter(c, &op2);
00054 }
00055 
00056 ConstOverParameter          operator / (double c, const AbsParameter &op2){
00057   return ConstOverParameter(c, &op2);
00058 }
00059 
00060 ConstTimesParameter           operator * (const AbsParameter &op2, double c){
00061   return ConstTimesParameter (c, &op2);
00062 }
00063 
00064 ConstPlusParameter               operator + (const AbsParameter &op2, double c){
00065   return ConstPlusParameter (c, &op2);
00066 }
00067 
00068 ConstPlusParameter        operator - (const AbsParameter &op2, double c){
00069   return ConstPlusParameter(-c, &op2);
00070 }
00071 
00072 ConstTimesParameter          operator / (const AbsParameter &op2, double c){
00073   return ConstTimesParameter(1/c, &op2);
00074 }
00075 
00076 
00077 } // namespace Genfun

Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7