3 #ifndef CPPQEDELEMENTS_UTILS_MODEFUNCTION_H_INCLUDED
4 #define CPPQEDELEMENTS_UTILS_MODEFUNCTION_H_INCLUDED
8 #include <boost/tuple/tuple.hpp>
9 #include <boost/tuple/tuple_io.hpp>
13 enum ModeFunctionType {MFT_SIN, MFT_COS, MFT_PLUS, MFT_MINUS};
15 inline bool isComplex(ModeFunctionType mf) {
return (mf==MFT_PLUS || mf==MFT_MINUS);}
17 std::ostream&
operator<<(std::ostream&, ModeFunctionType);
18 std::istream&
operator>>(std::istream&, ModeFunctionType&);
21 const dcomp modeFunction(ModeFunctionType,
double);
24 typedef boost::tuple<ModeFunctionType,ptrdiff_t> ModeFunction;
28 #endif // CPPQEDELEMENTS_UTILS_MODEFUNCTION_H_INCLUDED
std::ostream & operator<<(std::ostream &, Method)
std::istream & operator>>(std::istream &, Method &)
std::complex< double > dcomp