/* Copyright (c) 1997-2010
   Ewgenij Gawrilow, Michael Joswig (Technische Universitaet Darmstadt, Germany)
   http://www.polymake.de

   This program is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published by the
   Free Software Foundation; either version 2, or (at your option) any
   later version: http://www.gnu.org/licenses/gpl.txt.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
--------------------------------------------------------------------------------
   $Project: polymake $$Id: Rational-1.cc 9991 2010-12-12 23:36:28Z gawrilow $
*/

///==== this line controls the automatic file splitting: max.instances=60

#include "polymake/client.h"
#include "polymake/Rational.h"
#include "polymake/SparseMatrix.h"
#include "polymake/IncidenceMatrix.h"
#include "polymake/Integer.h"

namespace polymake { namespace common {
///==== Automatically generated contents follow.    Please do not delete this line. ====
   template <typename T0, typename T1>
   FunctionInterface4perl( new_X, T0,T1 ) {
      perl::Value arg0(stack[1]);
      WrapperReturnNew(T0, (arg0.get<T1>()) );
   };

   template <typename T0>
   FunctionInterface4perl( new, T0 ) {
      WrapperReturnNew(T0, () );
   };

   template <typename T0, typename T1, typename T2>
   FunctionInterface4perl( new_X_X, T0,T1,T2 ) {
      perl::Value arg0(stack[1]), arg1(stack[2]);
      WrapperReturnNew(T0, (arg0.get<T1>(), arg1.get<T2>()) );
   };

   Class4perl("Polymake::common::Rational", Rational);
   FunctionInstance4perl(new_X_X, Rational, int, int);
   OperatorInstance4perl(BinaryAssign_mul, perl::Canned< Rational >, int);
   OperatorInstance4perl(Binary_mul, perl::Canned< const Rational >, int);
   OperatorInstance4perl(Binary__eq, perl::Canned< const Rational >, perl::Canned< const pm::sparse_elem_proxy<pm::sparse_proxy_base<pm::sparse2d::line<pm::AVL::tree<pm::sparse2d::traits<pm::sparse2d::traits_base<double, true, false, (pm::sparse2d::restriction_kind)0>, false, (pm::sparse2d::restriction_kind)0> > >, pm::unary_transform_iterator<pm::AVL::tree_iterator<pm::sparse2d::it_traits<double, true, false>, (pm::AVL::link_index)1>, std::pair<pm::BuildUnary<pm::sparse2d::cell_accessor>, pm::BuildUnaryIt<pm::sparse2d::cell_index_accessor> > > >, double, pm::NonSymmetric> >);
   OperatorInstance4perl(Unary_neg, perl::Canned< const pm::sparse_elem_proxy<pm::sparse_proxy_base<pm::sparse2d::line<pm::AVL::tree<pm::sparse2d::traits<pm::sparse2d::traits_base<pm::Rational, true, false, (pm::sparse2d::restriction_kind)0>, false, (pm::sparse2d::restriction_kind)0> > >, pm::unary_transform_iterator<pm::AVL::tree_iterator<pm::sparse2d::it_traits<pm::Rational, true, false>, (pm::AVL::link_index)1>, std::pair<pm::BuildUnary<pm::sparse2d::cell_accessor>, pm::BuildUnaryIt<pm::sparse2d::cell_index_accessor> > > >, pm::Rational, pm::NonSymmetric> >);
   OperatorInstance4perl(assign, pm::sparse_elem_proxy<pm::sparse_proxy_base<pm::sparse2d::line<pm::AVL::tree<pm::sparse2d::traits<pm::sparse2d::traits_base<pm::Rational, true, false, (pm::sparse2d::restriction_kind)0>, false, (pm::sparse2d::restriction_kind)0> > >, pm::unary_transform_iterator<pm::AVL::tree_iterator<pm::sparse2d::it_traits<pm::Rational, true, false>, (pm::AVL::link_index)1>, std::pair<pm::BuildUnary<pm::sparse2d::cell_accessor>, pm::BuildUnaryIt<pm::sparse2d::cell_index_accessor> > > >, pm::Rational, pm::NonSymmetric>, perl::Canned< const Rational >);
   OperatorInstance4perl(BinaryAssign_add, perl::Canned< pm::sparse_elem_proxy<pm::sparse_proxy_base<pm::sparse2d::line<pm::AVL::tree<pm::sparse2d::traits<pm::sparse2d::traits_base<pm::Rational, true, false, (pm::sparse2d::restriction_kind)0>, false, (pm::sparse2d::restriction_kind)0> > >, pm::unary_transform_iterator<pm::AVL::tree_iterator<pm::sparse2d::it_traits<pm::Rational, true, false>, (pm::AVL::link_index)1>, std::pair<pm::BuildUnary<pm::sparse2d::cell_accessor>, pm::BuildUnaryIt<pm::sparse2d::cell_index_accessor> > > >, pm::Rational, pm::NonSymmetric> >, perl::Canned< const pm::sparse_elem_proxy<pm::sparse_proxy_base<pm::sparse2d::line<pm::AVL::tree<pm::sparse2d::traits<pm::sparse2d::traits_base<pm::Rational, true, false, (pm::sparse2d::restriction_kind)0>, false, (pm::sparse2d::restriction_kind)0> > >, pm::unary_transform_iterator<pm::AVL::tree_iterator<pm::sparse2d::it_traits<pm::Rational, true, false>, (pm::AVL::link_index)1>, std::pair<pm::BuildUnary<pm::sparse2d::cell_accessor>, pm::BuildUnaryIt<pm::sparse2d::cell_index_accessor> > > >, pm::Rational, pm::NonSymmetric> >);
   OperatorInstance4perl(BinaryAssign_mul, perl::Canned< pm::sparse_elem_proxy<pm::sparse_proxy_base<pm::sparse2d::line<pm::AVL::tree<pm::sparse2d::traits<pm::sparse2d::traits_base<pm::Rational, true, false, (pm::sparse2d::restriction_kind)0>, false, (pm::sparse2d::restriction_kind)0> > >, pm::unary_transform_iterator<pm::AVL::tree_iterator<pm::sparse2d::it_traits<pm::Rational, true, false>, (pm::AVL::link_index)1>, std::pair<pm::BuildUnary<pm::sparse2d::cell_accessor>, pm::BuildUnaryIt<pm::sparse2d::cell_index_accessor> > > >, pm::Rational, pm::NonSymmetric> >, int);
   OperatorInstance4perl(Binary__eq, perl::Canned< const Rational >, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary__eq, perl::Canned< const Rational >, double);
   FunctionInstance4perl(new_X, Rational, double);
   OperatorInstance4perl(BinaryAssign_sub, perl::Canned< Rational >, int);
   OperatorInstance4perl(Binary__eq, perl::Canned< const Rational >, int);
   OperatorInstance4perl(Binary_add, int, perl::Canned< const Rational >);
   OperatorInstance4perl(BinaryAssign_add, perl::Canned< Rational >, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary_div, perl::Canned< const Rational >, int);
   FunctionInstance4perl(new, Rational);
   OperatorInstance4perl(Binary_add, perl::Canned< const Rational >, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary_sub, perl::Canned< const Rational >, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary_mul, perl::Canned< const Rational >, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary_div, perl::Canned< const Rational >, perl::Canned< const Rational >);
   OperatorInstance4perl(UnaryAssign_inc, perl::Canned< Rational >);
   OperatorInstance4perl(UnaryAssign_dec, perl::Canned< Rational >);
   OperatorInstance4perl(Binary_rsh, perl::Canned< const Rational >, int);
   OperatorInstance4perl(Binary_lsh, perl::Canned< const Rational >, int);
   OperatorInstance4perl(Unary_neg, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary_add, perl::Canned< const Rational >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_sub, perl::Canned< const Rational >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_mul, perl::Canned< const Rational >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_div, perl::Canned< const Rational >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_add, perl::Canned< const Rational >, int);
   OperatorInstance4perl(Binary_sub, perl::Canned< const Rational >, int);
   OperatorInstance4perl(Binary_sub, int, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary_mul, int, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary_div, int, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary__lt, perl::Canned< const Rational >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary__gt, perl::Canned< const Rational >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary__lt, perl::Canned< const Rational >, int);
   OperatorInstance4perl(Binary__gt, perl::Canned< const Rational >, int);
   OperatorInstance4perl(Binary__lt, int, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary__gt, int, perl::Canned< const Rational >);
   FunctionInstance4perl(new_X, Rational, perl::Canned< const Rational >);
   OperatorInstance4perl(BinaryAssign_add, perl::Canned< Rational >, perl::Canned< const Integer >);
   OperatorInstance4perl(BinaryAssign_sub, perl::Canned< Rational >, perl::Canned< const Integer >);
   OperatorInstance4perl(BinaryAssign_mul, perl::Canned< Rational >, perl::Canned< const Integer >);
   OperatorInstance4perl(BinaryAssign_div, perl::Canned< Rational >, perl::Canned< const Integer >);
   OperatorInstance4perl(BinaryAssign_div, perl::Canned< Rational >, int);
   OperatorInstance4perl(BinaryAssign_add, perl::Canned< Rational >, int);
   FunctionInstance4perl(new_X, Rational, int);
   OperatorInstance4perl(Binary__gt, perl::Canned< const Rational >, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary__lt, perl::Canned< const Rational >, perl::Canned< const Rational >);
   OperatorInstance4perl(Unary_not, perl::Canned< const Rational >);
   FunctionInstance4perl(new_X, Rational, perl::Canned< const Integer >);
   OperatorInstance4perl(BinaryAssign_sub, perl::Canned< Rational >, perl::Canned< const Rational >);
   OperatorInstance4perl(assign, Rational, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary__ne, perl::Canned< const Rational >, int);
   OperatorInstance4perl(Binary__eq, int, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary__le, perl::Canned< const Rational >, int);
   OperatorInstance4perl(Unary_boo, perl::Canned< const Rational >);
///==== Automatically generated contents end here.  Please do not delete this line. ====
} }
