bitset.hpp climits cmath /usr/include/gecode/support.hh Gecode::Support::BitSet Gecode Gecode::Support /*-*-mode:C++;c-basic-offset:2;indent-tabs-mode:nil-*-*/ /* *Mainauthors: *MikaelLagerkvist<lagerkvist@gecode.org> * *Contributingauthors: *ChristianSchulte<schulte@gecode.org> * *Copyright: *MikaelLagerkvist,2007 *ChristianSchulte,2007 * *Lastmodified: *$Date:2010-07-1417:46:18+0200(Wed,14Jul2010)$by$Author:schulte$ *$Revision:11192$ * *ThisfileispartofGecode,thegenericconstraint *developmentenvironment: *http://www.gecode.org * *Permissionisherebygranted,freeofcharge,toanypersonobtaining *acopyofthissoftwareandassociateddocumentationfiles(the *"Software"),todealintheSoftwarewithoutrestriction,including *withoutlimitationtherightstouse,copy,modify,merge,publish, *distribute,sublicense,and/orsellcopiesoftheSoftware,andto *permitpersonstowhomtheSoftwareisfurnishedtodoso,subjectto *thefollowingconditions: * *Theabovecopyrightnoticeandthispermissionnoticeshallbe *includedinallcopiesorsubstantialportionsoftheSoftware. * *THESOFTWAREISPROVIDED"ASIS",WITHOUTWARRANTYOFANYKIND, *EXPRESSORIMPLIED,INCLUDINGBUTNOTLIMITEDTOTHEWARRANTIESOF *MERCHANTABILITY,FITNESSFORAPARTICULARPURPOSEAND *NONINFRINGEMENT.INNOEVENTSHALLTHEAUTHORSORCOPYRIGHTHOLDERSBE *LIABLEFORANYCLAIM,DAMAGESOROTHERLIABILITY,WHETHERINANACTION *OFCONTRACT,TORTOROTHERWISE,ARISINGFROM,OUTOFORINCONNECTION *WITHTHESOFTWAREORTHEUSEOROTHERDEALINGSINTHESOFTWARE. * */ #include<climits> #include<cmath> namespaceGecode{namespaceSupport{ template<classA> classBitSet:publicBitSetBase{ protected: A&a; public: BitSet(A&a,unsignedints); BitSet(A&a,constBitSet&bs); ~BitSet(void); }; template<classA> forceinline BitSet<A>::BitSet(A&a0,unsignedints) :BitSetBase(a0,s),a(a0){} template<classA> forceinline BitSet<A>::BitSet(A&a0,constBitSet<A>&bs) :BitSetBase(a0,bs),a(a0){} template<classA> forceinline BitSet<A>::~BitSet(void){ dispose(a); } }} //STATISTICS:support-any