/usr/include/polybori/BoolePolyRing.h is in libpolybori-dev 0.5~rc1-2.1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 | // -*- c++ -*-
//*****************************************************************************
/** @file BoolePolyRing.h
*
* @author Alexander Dreyer
* @date 2006-03-06
*
* This file the class BoolePolyRing, where carries the definition of a
* polynomial ring over Booleans.
*
* @par Copyright:
* (c) 2006 by The PolyBoRi Team
*
* @internal
* @version \$Id: BoolePolyRing.h,v 1.9 2008/07/08 21:41:58 alexanderdreyer Exp $
*
* @par History:
* @verbatim
* $Log: BoolePolyRing.h,v $
* Revision 1.9 2008/07/08 21:41:58 alexanderdreyer
* Merge: from developer's repository
*
* Revision 1.44 2008/03/02 23:24:37 dreyer
* CHANGE: ring elements like polynomials, monomials, and variables have ring()
*
* Revision 1.43 2007/12/13 16:18:07 dreyer
* CHANGE: removed unnecessary friend declaration
*
* Revision 1.42 2007/12/13 15:53:48 dreyer
* CHANGE: Ordering in BoolePolyRing again; BooleEnv manages active ring
*
* Revision 1.41 2007/12/11 15:37:34 dreyer
* ADD: BooleOrdering started
*
* Revision 1.40 2007/12/07 17:06:19 dreyer
* CHANGE: First try: ring and order separated
*
* Revision 1.39 2007/11/30 12:51:06 dreyer
* Fix: protected corrected
*
* Revision 1.38 2007/11/06 15:03:32 dreyer
* CHANGE: More generic copyright
*
* Revision 1.37 2007/07/31 07:43:49 dreyer
* ADD: getBaseOrderCode(), lieInSameBlock(...), isSingleton(), isPair()...
*
* Revision 1.36 2007/07/17 15:56:59 dreyer
* ADD: header file for CCuddZDD; clean-up
*
* Revision 1.35 2007/06/21 11:35:57 dreyer
* ADD: lastBlockBegin
*
* Revision 1.34 2007/03/21 08:55:08 dreyer
* ADD: first version of block_dlex running
*
* Revision 1.33 2007/03/16 16:59:20 dreyer
* CHANGE: started to rewrite CGenericIter using boost:iterator_facade
*
* Revision 1.32 2007/02/03 17:31:14 dreyer
* FIX: deactivated workaround for old rings
*
* Revision 1.31 2007/01/23 12:37:21 dreyer
* + Workaround for segfault after order change
*
* Revision 1.30 2006/12/19 12:36:46 dreyer
* ADD: BoolePolyRing::clear{Ring}Cache()
*
* Revision 1.29 2006/11/27 16:25:13 dreyer
* CHANGE: CDegreeCache, now inherited from standard cache; dlex-lead cached
*
* Revision 1.28 2006/11/20 15:07:47 dreyer
* FIX: headed included
*
* Revision 1.27 2006/10/24 06:39:38 dreyer
* CHANGE: changed interface type
*
* Revision 1.26 2006/10/23 16:05:54 dreyer
* ADD: BoolePolyRing::set/get(Ring)VariableName()
*
* Revision 1.25 2006/10/04 12:22:32 dreyer
* ADD: getOrderCode()
*
* Revision 1.24 2006/10/04 11:48:28 dreyer
* ADD: isDegreeReverseLexicograpical()
*
* Revision 1.23 2006/10/02 09:28:37 dreyer
* ADD BoolePolyRing::changeOrdering and infrastructure
*
* Revision 1.22 2006/09/05 11:10:44 dreyer
* ADD: BoolePolyRing::Compare(...), fixed assertion in groebner
*
* Revision 1.21 2006/09/05 08:48:32 dreyer
* ADD: BoolePolyRing::is(Total)DegreeOrder()
*
* Revision 1.20 2006/08/24 14:47:49 dreyer
* ADD: BooleExponent integrated, FIX: multiples (for indices < first)
*
* Revision 1.19 2006/07/20 08:55:49 dreyer
* ADD isOrdered() and isLexicographical()
*
* Revision 1.18 2006/05/23 15:55:24 dreyer
* CHANGE order of arguments in constructor
*
* Revision 1.17 2006/05/23 15:26:25 dreyer
* CHANGE BoolePolyRing can handle different orderings (only lex yet)
*
* Revision 1.16 2006/04/11 09:26:57 dreyer
* ADD BoolePolyRing::printInfo();
*
* Revision 1.15 2006/03/30 11:57:11 dreyer
* CHANGE: Made use of 0/1 constants and the sets {}, {{}} consistent
*
* Revision 1.14 2006/03/27 13:47:58 dreyer
* ADD operator + and *, CHANGE BoolePolyRing::variable(i) generation
*
* Revision 1.13 2006/03/24 15:02:44 dreyer
* ADD: Reference to manager_type can also be used for CDDManager<> -nterface
* ADD: lead(), (n)usedVariables(), lmDeg() implemented in BoolePolynomial
*
* Revision 1.12 2006/03/23 17:15:04 dreyer
* ADD: lead() and lmdeg() functionality to BoolePolynomial,
* BoolePolyRing(const manager_type &); leading term exampl.
*
* Revision 1.11 2006/03/22 16:48:13 dreyer
* ADD alternative to shared_ptr (if not available)
*
* Revision 1.10 2006/03/22 08:06:59 dreyer
* ADD: Template specializations CDDInterface<ZDD>, CDDManager<Cudd>;
* ring uses shared_ptr now
*
* Revision 1.9 2006/03/20 14:51:00 dreyer
* CHANGE: Use CDDInterface temple specializations instead of raw dd_type
*
* Revision 1.8 2006/03/20 09:52:57 dreyer
* CHANGE: BooleVariable uses composition; variable generated in BoolePolyRing
*
* Revision 1.7 2006/03/17 16:53:37 dreyer
* ADD added nNodes(), operator*= to BoolePolynomial
*
* Revision 1.6 2006/03/16 17:09:12 dreyer
* ADD BoolePolynial functionality started
*
* Revision 1.5 2006/03/13 12:27:24 dreyer
* CHANGE: consistent function names
*
* Revision 1.4 2006/03/11 08:41:07 bricken
* *bricken: standard/copy constructor
*
* Revision 1.3 2006/03/10 15:13:06 dreyer
* ADD: Added static access to current ring
*
* Revision 1.2 2006/03/10 08:25:54 dreyer
* + refined header style
*
* Revision 1.1.1.1 2006/03/09 14:34:31 dreyer
* + Project started
*
* @endverbatim
**/
//*****************************************************************************
// load PolyBoRi settings
# include "pbori_defs.h"
// include basic decision diagram manager interface
#include "CDDManager.h"
#include "OrderedManager.h"
#include "BooleRing.h"
// temporarily for work around
#include <list>
#ifndef BoolePolyRing_h_
#define BoolePolyRing_h_
BEGIN_NAMESPACE_PBORI
class COrderBase;
class CDynamicOrderBase;
class BooleExponent;
class BooleMonomial;
/** @class BoolePolyRing
* @brief This class adds order-related functionality to BooleRing.
*
*
**/
class BoolePolyRing:
public BooleRing {
public:
//-------------------------------------------------------------------------
// types definitions
//-------------------------------------------------------------------------
/// generic access to current type
typedef BoolePolyRing self;
/// generic access to base type
typedef BooleRing base;
/// define exponent type
typedef BooleExponent exp_type;
/// set monomial type
typedef BooleMonomial monom_type;
/// Type for block indices
typedef std::vector<idx_type> block_idx_type;
/// Type for block iterators
typedef block_idx_type::const_iterator block_iterator;
/// Type for handling mterm orderings
typedef CDynamicOrderBase order_type;
/// Smart pointer for handling mterm orderings
typedef PBORI_SHARED_PTR(order_type) order_ptr;
/// Reference for handling mterm orderings
typedef order_type& order_reference;
//-------------------------------------------------------------------------
// constructors and destructor
//-------------------------------------------------------------------------
/// Explicitely mention ordercodes' enumeration
using base::ordercodes;
/// Constructor for @em nvars variables
BoolePolyRing(size_type nvars=100,
ordercode_type order = lp,
bool_type make_active = true);
/// destructor
~BoolePolyRing() {}
/// Make this global ring
void activate();
/// Change order of current ring
void changeOrdering(ordercode_type);
idx_type lastBlockStart() {
if (ordering().isBlockOrder()) {
return *(ordering().blockEnd() - 2);
}
else if (ordering().isLexicographical()) {
return CTypes::max_idx;
}
return 0;
}
/// Access ordering of *this
order_reference ordering() const { return *pOrder; }
protected:
/// *Ordering of *this
order_ptr pOrder;
};
END_NAMESPACE_PBORI
#endif // of #ifndef BoolePolyRing_h_
|