CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
00001 #ifndef _LEGENDRECOEFFICIENTSET_H_ 00002 #define _LEGENDRECOEFFICIENTSET_H_ 00003 #include <complex> 00004 namespace Genfun { 00005 00006 class LegendreCoefficientSet { 00007 00008 public: 00009 00010 00011 // Constructor: 00012 LegendreCoefficientSet(unsigned int LMAX); 00013 00014 // Copy Constructor: 00015 LegendreCoefficientSet(const LegendreCoefficientSet &); 00016 00017 // Destructor: 00018 ~LegendreCoefficientSet(); 00019 00020 00021 // Get the size of the set: 00022 unsigned int getLMax() const; 00023 00024 // Readonly access to a specific coefficient: 00025 const std::complex<double> & operator () (unsigned int l) const; 00026 00027 // Read/write access to a specific coefficient: 00028 std::complex<double> & operator () (unsigned int l); 00029 00030 LegendreCoefficientSet & operator= (const LegendreCoefficientSet & ); 00031 00032 private: 00033 00034 00035 class Clockwork; 00036 Clockwork *c; 00037 00038 00039 }; 00040 00041 std::ostream & operator<< ( std::ostream & o, const LegendreCoefficientSet & c); 00042 } 00043 00044 #include "CLHEP/GenericFunctions/LegendreCoefficientSet.icc" 00045 00046 #endif 00047 00048