Public Member Functions | |
template<typename Quantity, typename Exponent> | |
DynamicPhysical< SI > | operator() (const Quantity &q, Exponent const e) const |
Classes | |
struct | result |
Definition at line 42 of file parser.cpp.
DynamicPhysical<SI> physical::parser::detail::quantity_power_impl::operator() | ( | const Quantity & | q, | |
Exponent const | e | |||
) | const [inline] |
Definition at line 51 of file parser.cpp.
00052 { 00053 int n=e; 00054 DynamicPhysical<SI> r=1.; 00055 while(n>0) { --n; r = r * q;}; 00056 while(n<0) { ++n; r = r / q;}; 00057 return r; 00058 }
Generated on Mon Apr 2 22:25:08 2007 for physical_svn by 1.5.1-p1 | hosted on |