Changeset f71c1a in git


Ignore:
Timestamp:
Jan 25, 2017, 12:31:04 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b0e6128cd4ba4005d49a91c2e88a53d79972edce
Parents:
cd6f8d22526e61cffd63354b5f245ce64bcd288b
Message:
factory: inline the trivial CFFactory::settype
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_factory.cc

    rcd6f8d2 rf71c1a  
    1818int CFFactory::currenttype = IntegerDomain;
    1919
    20 void
    21 CFFactory::settype ( int type )
    22 {
    23     ASSERT( type==FiniteFieldDomain || type==GaloisFieldDomain || type==IntegerDomain || type==RationalDomain, "illegal basic domain!" );
    24     currenttype = type;
    25 }
    26 
    2720InternalCF *
    2821CFFactory::basic ( long value )
  • factory/cf_factory.h

    rcd6f8d2 rf71c1a  
    1616
    1717#include <factory/cf_gmp.h>
     18#include <factory/cf_assert.h>
    1819
    1920class InternalCF;
     
    2627public:
    2728    static int gettype () { return currenttype; }
    28     static void settype ( int type );
     29    static void settype ( int type )
     30    {
     31      ASSERT( type==FiniteFieldDomain || type==GaloisFieldDomain || type==IntegerDomain || type==RationalDomain, "illegal basic domain!" );
     32      currenttype = type;
     33    };
    2934    static InternalCF * basic ( long value );
    3035    static InternalCF * basic ( int type, long value );
Note: See TracChangeset for help on using the changeset viewer.