physical::parser::detail::quantity_power_impl Struct Reference

List of all members.

Public Member Functions

template<typename Quantity, typename Exponent>
DynamicPhysical< SIoperator() (const Quantity &q, Exponent const e) const

Classes

struct  result

Detailed Description

Definition at line 42 of file parser.cpp.


Member Function Documentation

template<typename Quantity, typename Exponent>
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                            }


The documentation for this struct was generated from the following file:
Generated on Mon Apr 2 22:25:08 2007 for physical_svn by  doxygen 1.5.1-p1
hosted on SourceForge.net Logo