include/symbolism/N.Conversion.h

00001 
00002 inline N::limb_t N::to_int() const
00003 {
00004     if(this_small)
00005     {
00006         return limb;
00007     }
00008     else
00009     {
00010         throw can_not_shrink_exception();//"Can not shrink to the size of a limb_t.");
00011     }
00012 }
00013 
00014 inline std::ostream& operator<<(std::ostream& out, const N& n)
00015 {
00016     out << n.to_decimal();
00017     return out;
00018 }

Copyright © 2007-2008 Remco Bloemen.

Generated on Tue Jan 22 17:35:31 2008 for symbolism by doxygen 1.5.4

Hosted by SourceForge.net Logo