|
||||
File indexing completed on 2025-01-18 09:54:36
0001 // -*- C++ -*- 0002 // $Id: X.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $ 0003 //----------------------X------------ --------------------------------------// 0004 // // 0005 // Class X_ // 0006 // Joe Boudreau, Petar Maksimovic, Nov. 1999 // 0007 // // 0008 // X_ is a function that returns the variable itself. // 0009 //--------------------------------------------------------------------------// 0010 #ifndef X__h 0011 #define X__h 1 0012 #include "CLHEP/GenericFunctions/AbsFunction.hh" 0013 namespace Genfun { 0014 0015 /** 0016 * @author 0017 * @ingroup genfun 0018 */ 0019 class X_ : public AbsFunction { 0020 0021 FUNCTION_OBJECT_DEF(X_) 0022 0023 public: 0024 0025 // Constructor 0026 X_(); 0027 0028 // Copy constructor 0029 X_(const X_ &right); 0030 0031 // Destructor 0032 virtual ~X_(); 0033 0034 // Retrieve function value 0035 virtual double operator ()(double argument) const override; 0036 virtual double operator ()(const Argument & a) const override {return operator() (a[0]);} 0037 0038 private: 0039 0040 // It is illegal to assign a fixed constant 0041 const X_ & operator=(const X_ &right); 0042 0043 }; 0044 } // namespace Genfun 0045 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |