/* 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: Integer.cc 10013 2011-01-13 18:20:21Z gawrilow $
*/

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

#include "polymake/client.h"
#include "polymake/Integer.h"
#include "polymake/Rational.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, () );
   };

   Class4perl("Polymake::common::Integer", Integer);
   FunctionInstance4perl(new_X, Integer, int);
   FunctionInstance4perl(new, Integer);
   OperatorInstance4perl(Binary_add, perl::Canned< const Integer >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_sub, perl::Canned< const Integer >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_mul, perl::Canned< const Integer >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_div, perl::Canned< const Integer >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_mod, perl::Canned< const Integer >, perl::Canned< const Integer >);
   OperatorInstance4perl(UnaryAssign_inc, perl::Canned< Integer >);
   OperatorInstance4perl(UnaryAssign_dec, perl::Canned< Integer >);
   OperatorInstance4perl(Binary_lsh, perl::Canned< const Integer >, int);
   OperatorInstance4perl(Binary_rsh, perl::Canned< const Integer >, int);
   OperatorInstance4perl(Unary_neg, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary__lt, perl::Canned< const Integer >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary__gt, perl::Canned< const Integer >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_add, perl::Canned< const Integer >, int);
   OperatorInstance4perl(Binary__eq, perl::Canned< const Integer >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_sub, perl::Canned< const Integer >, int);
   OperatorInstance4perl(BinaryAssign_add, perl::Canned< Integer >, perl::Canned< const Integer >);
   OperatorInstance4perl(BinaryAssign_mul, perl::Canned< Integer >, perl::Canned< const Integer >);
   OperatorInstance4perl(BinaryAssign_sub, perl::Canned< Integer >, perl::Canned< const Integer >);
   OperatorInstance4perl(BinaryAssign_div, perl::Canned< Integer >, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_add, int, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_sub, int, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_mul, perl::Canned< const Integer >, int);
   OperatorInstance4perl(Binary_mul, int, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_div, perl::Canned< const Integer >, int);
   OperatorInstance4perl(Binary_div, int, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary_add, perl::Canned< const Integer >, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary_sub, perl::Canned< const Integer >, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary_mul, perl::Canned< const Integer >, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary_div, perl::Canned< const Integer >, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary__lt, perl::Canned< const Integer >, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary__gt, perl::Canned< const Integer >, perl::Canned< const Rational >);
   FunctionInstance4perl(new_X, Integer, double);
   OperatorInstance4perl(BinaryAssign_add, perl::Canned< pm::GMP::Proxy<(pm::GMP::proxy_kind)0, true> >, int);
   OperatorInstance4perl(BinaryAssign_add, perl::Canned< pm::GMP::Proxy<(pm::GMP::proxy_kind)1, true> >, int);
   OperatorInstance4perl(Binary__lt, int, perl::Canned< const Integer >);
   OperatorInstance4perl(Binary__ne, perl::Canned< const Integer >, int);
   OperatorInstance4perl(Binary__eq, perl::Canned< const Integer >, int);
   FunctionInstance4perl(new_X, Integer, perl::Canned< const Rational >);
   OperatorInstance4perl(Binary__gt, perl::Canned< const Integer >, int);
   OperatorInstance4perl(Binary__ne, perl::Canned< const Integer >, perl::Canned< const Integer >);
   FunctionInstance4perl(new_X, Integer, perl::Canned< const Integer >);
   OperatorInstance4perl(assign, Integer, perl::Canned< const Rational >);
   OperatorInstance4perl(Unary_boo, perl::Canned< const Integer >);
   OperatorInstance4perl(BinaryAssign_mul, perl::Canned< Integer >, int);
   OperatorInstance4perl(Binary__ne, perl::Canned< const Integer >, perl::Canned< const Rational >);
   OperatorInstance4perl(BinaryAssign_sub, perl::Canned< Integer >, int);
   OperatorInstance4perl(Binary__eq, int, perl::Canned< const Integer >);
   OperatorInstance4perl(BinaryAssign_add, perl::Canned< Integer >, perl::Canned< const Rational >);
///==== Automatically generated contents end here.  Please do not delete this line. ====
} }
