<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>PolyBoRi: CDDOperations.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <h1>CDDOperations.h</h1><a href="CDDOperations_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- c++ -*-</span> <a name="l00002"></a>00002 <span class="comment">//*****************************************************************************</span> <a name="l00048"></a>00048 <span class="comment"></span><span class="comment">//*****************************************************************************</span> <a name="l00049"></a>00049 <a name="l00050"></a>00050 <span class="comment">// include basic definitions</span> <a name="l00051"></a>00051 <span class="preprocessor">#include "<a class="code" href="pbori__defs_8h.html">pbori_defs.h</a>"</span> <a name="l00052"></a>00052 <a name="l00053"></a>00053 <span class="comment">// Get Cudd definitions</span> <a name="l00054"></a>00054 <span class="preprocessor">#include "cudd.h"</span> <a name="l00055"></a>00055 <span class="preprocessor">#include "<a class="code" href="extrafwd_8h.html">extrafwd.h</a>"</span> <a name="l00056"></a>00056 <a name="l00057"></a>00057 <span class="preprocessor">#include "<a class="code" href="pbori__routines_8h.html">pbori_routines.h</a>"</span> <a name="l00058"></a>00058 <span class="preprocessor">#include "<a class="code" href="CCacheManagement_8h.html">CCacheManagement.h</a>"</span> <a name="l00059"></a>00059 <a name="l00060"></a>00060 <span class="preprocessor">#ifndef CDDOperations_h_</span> <a name="l00061"></a>00061 <span class="preprocessor"></span><span class="preprocessor">#define CDDOperations_h_</span> <a name="l00062"></a>00062 <span class="preprocessor"></span> <a name="l00063"></a>00063 <a class="code" href="pbori__defs_8h.html#6ae360a591580558f31b6157ee792a10" title="Start project&#39;s namespace.">BEGIN_NAMESPACE_PBORI</a> <a name="l00064"></a>00064 <a name="l00067"></a>00067 <span class="keyword">template</span> <<span class="keyword">class</span> DDType, <span class="keyword">class</span> MonomType> <a name="l00068"></a><a class="code" href="classpolybori_1_1CDDOperations.html">00068</a> <span class="keyword">class </span><a class="code" href="classpolybori_1_1CDDOperations.html">CDDOperations</a> { <a name="l00069"></a>00069 <span class="keyword">public</span>: <a name="l00070"></a>00070 <a name="l00071"></a>00071 <span class="comment">// This is only a work-around, since a monomial should not be generated from</span> <a name="l00072"></a>00072 <span class="comment">// a dd.</span> <a name="l00073"></a><a class="code" href="classpolybori_1_1CDDOperations.html#4645af2371df8c8500b15a9d9c222f9a">00073</a> MonomType <a class="code" href="classpolybori_1_1CDDOperations.html#4645af2371df8c8500b15a9d9c222f9a">getMonomial</a>(<span class="keyword">const</span> DDType& dd)<span class="keyword"> const </span>{ <a name="l00074"></a>00074 <span class="keywordflow">return</span> MonomType(dd); <a name="l00075"></a>00075 } <a name="l00076"></a>00076 <a name="l00077"></a><a class="code" href="classpolybori_1_1CDDOperations.html#fa1bcc38b8d616a5013cc93b0acbb9c2">00077</a> MonomType <a class="code" href="classpolybori_1_1CDDOperations.html#fa1bcc38b8d616a5013cc93b0acbb9c2">usedVariables</a>(<span class="keyword">const</span> DDType& dd){ <a name="l00078"></a>00078 <a name="l00079"></a>00079 <span class="comment">// get type definitions from DDType</span> <a name="l00080"></a>00080 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespacepolybori_1_1groebner.html#ef37a95e97afbd561cc4c5f84d660765">DDType::idx_type</a> <a class="code" href="namespacepolybori_1_1groebner.html#ef37a95e97afbd561cc4c5f84d660765">idx_type</a>; <a name="l00081"></a>00081 <span class="keyword">typedef</span> <span class="keyword">typename</span> DDType::navigator navigator; <a name="l00082"></a>00082 <span class="keyword">typedef</span> MonomType monom_type; <a name="l00083"></a>00083 <a name="l00084"></a>00084 <a class="code" href="classpolybori_1_1CCacheManagement.html" title="This template class forms the base for CCommutativeCacheManagement and CacheManager...">CCacheManagement<CCacheTypes::used_variables></a> cache_mgr(dd.manager()); <a name="l00085"></a>00085 <span class="keywordflow">return</span> <a class="code" href="namespacepolybori.html#dcd04d2da6906fb2b104820203802ea0">cached_used_vars</a>(cache_mgr, dd.navigation(), <a name="l00086"></a>00086 MonomType(cache_mgr.one())); <a name="l00087"></a>00087 } <a name="l00088"></a>00088 <a name="l00089"></a>00089 }; <a name="l00090"></a>00090 <a name="l00091"></a>00091 <a name="l00092"></a>00092 <a name="l00093"></a>00093 <a class="code" href="pbori__defs_8h.html#faf094fde6c1a7f1aad18bcb455f3b06" title="Finish project&#39;s namespace.">END_NAMESPACE_PBORI</a> <a name="l00094"></a>00094 <a name="l00095"></a>00095 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 9 14:30:54 2009 for PolyBoRi by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>