CLHEP 2.0.4.7 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::clone() const {
00015   return _clone();
00016 }
00017 
00018   
00019 ParameterSum operator + (const AbsParameter & a, const AbsParameter & b) {
00020   return ParameterSum(&a,&b);
00021 }
00022 
00023 ParameterDifference operator - (const AbsParameter & a, const AbsParameter & b) {
00024   return ParameterDifference(&a,&b);
00025 }
00026 
00027 ParameterProduct operator * (const AbsParameter & a, const AbsParameter & b) {
00028   return ParameterProduct(&a,&b);
00029 }
00030 
00031 ParameterQuotient operator / (const AbsParameter & a, const AbsParameter & b) {
00032   return ParameterQuotient(&a,&b);
00033 }
00034 
00035 
00036 ParameterNegation operator - (const AbsParameter & a) {
00037   return ParameterNegation(&a);
00038 }
00039 
00040 
00041 ConstTimesParameter           operator * (double c, const AbsParameter &op2){
00042   return ConstTimesParameter (c, &op2);
00043 }
00044 
00045 ConstPlusParameter               operator + (double c, const AbsParameter &op2){
00046   return ConstPlusParameter (c, &op2);
00047 }
00048 
00049 ConstMinusParameter        operator - (double c, const AbsParameter &op2){
00050   return ConstMinusParameter(c, &op2);
00051 }
00052 
00053 ConstOverParameter          operator / (double c, const AbsParameter &op2){
00054   return ConstOverParameter(c, &op2);
00055 }
00056 
00057 ConstTimesParameter           operator * (const AbsParameter &op2, double c){
00058   return ConstTimesParameter (c, &op2);
00059 }
00060 
00061 ConstPlusParameter               operator + (const AbsParameter &op2, double c){
00062   return ConstPlusParameter (c, &op2);
00063 }
00064 
00065 ConstPlusParameter        operator - (const AbsParameter &op2, double c){
00066   return ConstPlusParameter(-c, &op2);
00067 }
00068 
00069 ConstTimesParameter          operator / (const AbsParameter &op2, double c){
00070   return ConstTimesParameter(1/c, &op2);
00071 }
00072 
00073 
00074 } // namespace Genfun

Generated on Thu Jul 1 22:02:30 2010 for CLHEP by  doxygen 1.4.7