Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 247b28499c443e092731ffba814075f2 > files > 47

mpqc-html-2.3.1-9mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>MPQC: cartiter.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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</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&nbsp;List</span></a></li>
    </ul>
  </div>
<h1>cartiter.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// cartiter.h</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// Copyright (C) 1996 Limit Point Systems, Inc.</span>
<a name="l00005"></a>00005 <span class="comment">//</span>
<a name="l00006"></a>00006 <span class="comment">// Author: Curtis Janssen &lt;cljanss@limitpt.com&gt;</span>
<a name="l00007"></a>00007 <span class="comment">// Maintainer: LPS</span>
<a name="l00008"></a>00008 <span class="comment">//</span>
<a name="l00009"></a>00009 <span class="comment">// This file is part of the SC Toolkit.</span>
<a name="l00010"></a>00010 <span class="comment">//</span>
<a name="l00011"></a>00011 <span class="comment">// The SC Toolkit is free software; you can redistribute it and/or modify</span>
<a name="l00012"></a>00012 <span class="comment">// it under the terms of the GNU Library General Public License as published by</span>
<a name="l00013"></a>00013 <span class="comment">// the Free Software Foundation; either version 2, or (at your option)</span>
<a name="l00014"></a>00014 <span class="comment">// any later version.</span>
<a name="l00015"></a>00015 <span class="comment">//</span>
<a name="l00016"></a>00016 <span class="comment">// The SC Toolkit is distributed in the hope that it will be useful,</span>
<a name="l00017"></a>00017 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00018"></a>00018 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00019"></a>00019 <span class="comment">// GNU Library General Public License for more details.</span>
<a name="l00020"></a>00020 <span class="comment">//</span>
<a name="l00021"></a>00021 <span class="comment">// You should have received a copy of the GNU Library General Public License</span>
<a name="l00022"></a>00022 <span class="comment">// along with the SC Toolkit; see the file COPYING.LIB.  If not, write to</span>
<a name="l00023"></a>00023 <span class="comment">// the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00024"></a>00024 <span class="comment">//</span>
<a name="l00025"></a>00025 <span class="comment">// The U.S. Government is granted a limited license as per AL 91-7.</span>
<a name="l00026"></a>00026 <span class="comment">//</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef _chemistry_qc_basis_cartiter_h</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define _chemistry_qc_basis_cartiter_h</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#ifdef __GNUC__</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="keyword">namespace </span>sc {
<a name="l00036"></a>00036 
<a name="l00039"></a><a class="code" href="classsc_1_1CartesianIter.html">00039</a> <span class="keyword">class </span><a class="code" href="classsc_1_1CartesianIter.html" title="CartesianIter gives the ordering of the Cartesian functions within a shell for the...">CartesianIter</a> {
<a name="l00040"></a>00040   <span class="keyword">protected</span>:
<a name="l00041"></a>00041     <span class="keywordtype">int</span> a_;
<a name="l00042"></a>00042     <span class="keywordtype">int</span> b_;
<a name="l00043"></a>00043     <span class="keywordtype">int</span> c_;
<a name="l00044"></a>00044     <span class="keywordtype">int</span> l_;
<a name="l00045"></a>00045     <span class="keywordtype">int</span> bfn_;
<a name="l00046"></a>00046 
<a name="l00047"></a>00047   <span class="keyword">public</span>:
<a name="l00049"></a>00049     <a class="code" href="classsc_1_1CartesianIter.html#4b641d240b815311be1c57e652550da5" title="Initialize an iterator for the given angular momentum.">CartesianIter</a>(<span class="keywordtype">int</span> <a class="code" href="classsc_1_1CartesianIter.html#b6ed956f838708445c16dc3ff41ef3e6" title="Returns the angular momentum.">l</a>);
<a name="l00050"></a>00050     <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1CartesianIter.html" title="CartesianIter gives the ordering of the Cartesian functions within a shell for the...">CartesianIter</a>();
<a name="l00051"></a>00051 
<a name="l00053"></a>00053     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1CartesianIter.html#0e3d242dec8da6a176266b454560472f" title="Start the iteration.">start</a>() =0;
<a name="l00055"></a>00055     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1CartesianIter.html#45e54a54e205a4f3b8e0f2d7edba0c0b" title="Move to the next Cartesian function.">next</a>() =0;
<a name="l00057"></a>00057     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1CartesianIter.html#53a233b21d18c86cc51533d35888f49f" title="Returns nonzero if the iterator currently hold valid data.">operator int</a>() =0;
<a name="l00058"></a>00058 
<a name="l00060"></a><a class="code" href="classsc_1_1CartesianIter.html#13b102f752688ba1e1ae8b8873730633">00060</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1CartesianIter.html#13b102f752688ba1e1ae8b8873730633" title="Returns the number of Cartesian functions.">n</a>() { <span class="keywordflow">return</span> ((l_&gt;=0)?((((l_)+2)*((l_)+1))&gt;&gt;1):0); }
<a name="l00062"></a><a class="code" href="classsc_1_1CartesianIter.html#ecc1d56d473170c0c493896af7b89094">00062</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1CartesianIter.html#ecc1d56d473170c0c493896af7b89094" title="Returns the exponent of x.">a</a>() { <span class="keywordflow">return</span> a_; }
<a name="l00064"></a><a class="code" href="classsc_1_1CartesianIter.html#c3114cc65ee5848ccfa5f4985b63ae3f">00064</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1CartesianIter.html#c3114cc65ee5848ccfa5f4985b63ae3f" title="Returns the exponent of y.">b</a>() { <span class="keywordflow">return</span> b_; }
<a name="l00066"></a><a class="code" href="classsc_1_1CartesianIter.html#3077730029398bb19e1737405fe81fe0">00066</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1CartesianIter.html#3077730029398bb19e1737405fe81fe0" title="Returns the exponent of z.">c</a>() { <span class="keywordflow">return</span> c_; }
<a name="l00068"></a><a class="code" href="classsc_1_1CartesianIter.html#b6ed956f838708445c16dc3ff41ef3e6">00068</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1CartesianIter.html#b6ed956f838708445c16dc3ff41ef3e6" title="Returns the angular momentum.">l</a>() { <span class="keywordflow">return</span> l_; }
<a name="l00070"></a><a class="code" href="classsc_1_1CartesianIter.html#b90615d0f133765cfdbe6d1e9c8d0f60">00070</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1CartesianIter.html#b90615d0f133765cfdbe6d1e9c8d0f60" title="Returns a() if i==0, b() if i==1, and c() if i==2.">l</a>(<span class="keywordtype">int</span> i) { <span class="keywordflow">return</span> i ? (i==1 ? b_ : c_) : a_; }
<a name="l00073"></a><a class="code" href="classsc_1_1CartesianIter.html#a898c79dda7cdad8c656d6106939ffa2">00073</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1CartesianIter.html#a898c79dda7cdad8c656d6106939ffa2" title="Returns the number of the current basis function within the shell.">bfn</a>() { <span class="keywordflow">return</span> bfn_; }
<a name="l00074"></a>00074 };
<a name="l00075"></a>00075 
<a name="l00080"></a><a class="code" href="classsc_1_1RedundantCartesianIter.html">00080</a> <span class="keyword">class </span><a class="code" href="classsc_1_1RedundantCartesianIter.html" title="RedundantCartesianIter objects loop through all possible combinations of a given...">RedundantCartesianIter</a> {
<a name="l00081"></a>00081   <span class="keyword">private</span>:
<a name="l00082"></a>00082     <span class="keywordtype">int</span> done_;
<a name="l00083"></a>00083     <span class="keywordtype">int</span> l_;
<a name="l00084"></a>00084     <span class="keywordtype">int</span> *axis_;
<a name="l00085"></a>00085 
<a name="l00086"></a>00086   <span class="keyword">public</span>:
<a name="l00088"></a>00088     <a class="code" href="classsc_1_1RedundantCartesianIter.html#d538003713c56ebe00c58c8d1485d27c" title="Create a object for the given angular momentum.">RedundantCartesianIter</a>(<span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianIter.html#57d98df9d724ffeac59b2420fa7090d3" title="The angular momentum.">l</a>);
<a name="l00089"></a>00089     <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1RedundantCartesianIter.html" title="RedundantCartesianIter objects loop through all possible combinations of a given...">RedundantCartesianIter</a>();
<a name="l00090"></a>00090 
<a name="l00092"></a>00092     <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianIter.html#e9dfc89067e159eddab5de57fcb75c66" title="Return the current Cartesian basis function number.">bfn</a>() =0;
<a name="l00093"></a>00093 
<a name="l00095"></a>00095     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1RedundantCartesianIter.html#6b7222cb576da7dc9e3fed33e8f26e1c" title="Initialize the iterator.">start</a>();
<a name="l00097"></a>00097     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1RedundantCartesianIter.html#08fde7766dcbc828fe453d60f456540d" title="Move to the next combination of axes.">next</a>();
<a name="l00099"></a><a class="code" href="classsc_1_1RedundantCartesianIter.html#e853fa883b4b7c8c7037a4145779af7d">00099</a>     <a class="code" href="classsc_1_1RedundantCartesianIter.html#e853fa883b4b7c8c7037a4145779af7d" title="Returns nonzero if the iterator currently hold valid data.">operator int</a>() { <span class="keywordflow">return</span> !done_; }
<a name="l00100"></a>00100 
<a name="l00102"></a>00102     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianIter.html#5d5d9b5c64179f7e7f6467ec87424bef" title="The current exponent of x.">a</a>();
<a name="l00104"></a>00104     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianIter.html#acc1eb5686cf0f88ded9c8b7a858f811" title="The current exponent of y.">b</a>();
<a name="l00106"></a>00106     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianIter.html#e9de78b58df5f7be859d183b6bb7c454" title="The current exponent of z.">c</a>();
<a name="l00108"></a><a class="code" href="classsc_1_1RedundantCartesianIter.html#57d98df9d724ffeac59b2420fa7090d3">00108</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianIter.html#57d98df9d724ffeac59b2420fa7090d3" title="The angular momentum.">l</a>() { <span class="keywordflow">return</span> l_; }
<a name="l00110"></a>00110     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianIter.html#57d98df9d724ffeac59b2420fa7090d3" title="The angular momentum.">l</a>(<span class="keywordtype">int</span> i);
<a name="l00112"></a><a class="code" href="classsc_1_1RedundantCartesianIter.html#38484ca1182da9274d0ee5c7c00ad6b3">00112</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianIter.html#38484ca1182da9274d0ee5c7c00ad6b3" title="Return the i&amp;#39;th axis.">axis</a>(<span class="keywordtype">int</span> i) { <span class="keywordflow">return</span> axis_[i]; }
<a name="l00113"></a>00113 };
<a name="l00114"></a>00114 
<a name="l00115"></a>00115 <span class="keyword">inline</span> <span class="keywordtype">void</span>
<a name="l00116"></a><a class="code" href="classsc_1_1RedundantCartesianIter.html#6b7222cb576da7dc9e3fed33e8f26e1c">00116</a> <a class="code" href="classsc_1_1RedundantCartesianIter.html#6b7222cb576da7dc9e3fed33e8f26e1c" title="Initialize the iterator.">RedundantCartesianIter::start</a>()
<a name="l00117"></a>00117 {
<a name="l00118"></a>00118   <span class="keywordflow">if</span> (l_==0)
<a name="l00119"></a>00119     done_ = 1;
<a name="l00120"></a>00120   <span class="keywordflow">else</span>
<a name="l00121"></a>00121     done_ = 0;
<a name="l00122"></a>00122 
<a name="l00123"></a>00123   <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;l_; i++)
<a name="l00124"></a>00124     axis_[i] = 0;
<a name="l00125"></a>00125 }
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 <span class="keyword">inline</span> <span class="keywordtype">void</span>
<a name="l00128"></a><a class="code" href="classsc_1_1RedundantCartesianIter.html#08fde7766dcbc828fe453d60f456540d">00128</a> <a class="code" href="classsc_1_1RedundantCartesianIter.html#08fde7766dcbc828fe453d60f456540d" title="Move to the next combination of axes.">RedundantCartesianIter::next</a>()
<a name="l00129"></a>00129 {
<a name="l00130"></a>00130   <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;l_; i++) {
<a name="l00131"></a>00131     <span class="keywordflow">if</span> (axis_[i] == 2)
<a name="l00132"></a>00132       axis_[i] = 0;
<a name="l00133"></a>00133     <span class="keywordflow">else</span> {
<a name="l00134"></a>00134       axis_[i]++;
<a name="l00135"></a>00135       <span class="keywordflow">return</span>;
<a name="l00136"></a>00136     }
<a name="l00137"></a>00137   }
<a name="l00138"></a>00138   done_ = 1;
<a name="l00139"></a>00139 }
<a name="l00140"></a>00140 
<a name="l00141"></a>00141 <span class="keyword">inline</span> <span class="keywordtype">int</span>
<a name="l00142"></a><a class="code" href="classsc_1_1RedundantCartesianIter.html#8bea20025a66bd19edcfcaafbbc98046">00142</a> <a class="code" href="classsc_1_1RedundantCartesianIter.html#57d98df9d724ffeac59b2420fa7090d3" title="The angular momentum.">RedundantCartesianIter::l</a>(<span class="keywordtype">int</span> axis)
<a name="l00143"></a>00143 {
<a name="l00144"></a>00144   <span class="keywordtype">int</span> i;
<a name="l00145"></a>00145   <span class="keywordtype">int</span> r = 0;
<a name="l00146"></a>00146   <span class="keywordflow">for</span> (i=0; i&lt;l_; i++) <span class="keywordflow">if</span> (axis_[i]==axis) r++;
<a name="l00147"></a>00147   <span class="keywordflow">return</span> r;
<a name="l00148"></a>00148 }
<a name="l00149"></a>00149 
<a name="l00150"></a>00150 <span class="keyword">inline</span> <span class="keywordtype">int</span>
<a name="l00151"></a><a class="code" href="classsc_1_1RedundantCartesianIter.html#5d5d9b5c64179f7e7f6467ec87424bef">00151</a> <a class="code" href="classsc_1_1RedundantCartesianIter.html#5d5d9b5c64179f7e7f6467ec87424bef" title="The current exponent of x.">RedundantCartesianIter::a</a>()
<a name="l00152"></a>00152 {
<a name="l00153"></a>00153   <span class="keywordflow">return</span> <a class="code" href="classsc_1_1RedundantCartesianIter.html#57d98df9d724ffeac59b2420fa7090d3" title="The angular momentum.">l</a>(0);
<a name="l00154"></a>00154 }
<a name="l00155"></a>00155 
<a name="l00156"></a>00156 <span class="keyword">inline</span> <span class="keywordtype">int</span>
<a name="l00157"></a><a class="code" href="classsc_1_1RedundantCartesianIter.html#acc1eb5686cf0f88ded9c8b7a858f811">00157</a> <a class="code" href="classsc_1_1RedundantCartesianIter.html#acc1eb5686cf0f88ded9c8b7a858f811" title="The current exponent of y.">RedundantCartesianIter::b</a>()
<a name="l00158"></a>00158 {
<a name="l00159"></a>00159   <span class="keywordflow">return</span> <a class="code" href="classsc_1_1RedundantCartesianIter.html#57d98df9d724ffeac59b2420fa7090d3" title="The angular momentum.">l</a>(1);
<a name="l00160"></a>00160 }
<a name="l00161"></a>00161 
<a name="l00162"></a>00162 <span class="keyword">inline</span> <span class="keywordtype">int</span>
<a name="l00163"></a><a class="code" href="classsc_1_1RedundantCartesianIter.html#e9de78b58df5f7be859d183b6bb7c454">00163</a> <a class="code" href="classsc_1_1RedundantCartesianIter.html#e9de78b58df5f7be859d183b6bb7c454" title="The current exponent of z.">RedundantCartesianIter::c</a>()
<a name="l00164"></a>00164 {
<a name="l00165"></a>00165   <span class="keywordflow">return</span> <a class="code" href="classsc_1_1RedundantCartesianIter.html#57d98df9d724ffeac59b2420fa7090d3" title="The angular momentum.">l</a>(2);
<a name="l00166"></a>00166 }
<a name="l00167"></a>00167 
<a name="l00170"></a><a class="code" href="classsc_1_1RedundantCartesianSubIter.html">00170</a> <span class="keyword">class </span><a class="code" href="classsc_1_1RedundantCartesianSubIter.html" title="Like RedundantCartesianIter, except a, b, and c are fixed to a given value.">RedundantCartesianSubIter</a> {
<a name="l00171"></a>00171   <span class="keyword">private</span>:
<a name="l00172"></a>00172     <span class="keywordtype">int</span> done_;
<a name="l00173"></a>00173     <span class="keywordtype">int</span> l_;
<a name="l00174"></a>00174     <span class="keywordtype">int</span> e_[3];
<a name="l00175"></a>00175     <span class="keywordtype">int</span> *axis_;
<a name="l00176"></a>00176 
<a name="l00177"></a>00177     <span class="comment">// the locations of the z's in the axis array</span>
<a name="l00178"></a>00178     <span class="keywordtype">int</span> *zloc_;
<a name="l00179"></a>00179     <span class="comment">// the locations of the y's in the subarray after the z's are removed</span>
<a name="l00180"></a>00180     <span class="keywordtype">int</span> *yloc_;
<a name="l00181"></a>00181 
<a name="l00182"></a>00182     <span class="keywordtype">int</span> valid();
<a name="l00183"></a>00183 
<a name="l00184"></a>00184   <span class="keyword">public</span>:
<a name="l00186"></a>00186     <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#3f2022cd253c433dd84269f7cbb21b2d" title="Create a object for the given angular momentum.">RedundantCartesianSubIter</a>(<span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#345f328b617622164465923a437d4498" title="The angular momentum.">l</a>);
<a name="l00187"></a>00187     <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1RedundantCartesianSubIter.html" title="Like RedundantCartesianIter, except a, b, and c are fixed to a given value.">RedundantCartesianSubIter</a>();
<a name="l00188"></a>00188 
<a name="l00190"></a>00190     <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#cf6149ed92852ad63de84170c2074c1a" title="Return the current Cartesian basis function number.">bfn</a>() =0;
<a name="l00191"></a>00191 
<a name="l00194"></a>00194     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#1e347f0d5499357383311126961dbe5b" title="Initialize the iterator.">start</a>(<span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#4fd4fb60c2bfb16c3112628517bd0d89" title="The current exponent of x.">a</a>, <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#a2a2fc0d86b364430758e2eadf20240b" title="The current exponent of y.">b</a>, <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#b3d4b922f2223f38d58373f7c62dbe20" title="The current exponent of z.">c</a>);
<a name="l00196"></a>00196     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#83b903dce543ef7219ebde7541f0a491" title="Move to the next combination of axes.">next</a>();
<a name="l00198"></a><a class="code" href="classsc_1_1RedundantCartesianSubIter.html#1da9f4fd5768f973f11986dc9b6368f5">00198</a>     <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#1da9f4fd5768f973f11986dc9b6368f5" title="Returns nonzero if the iterator currently hold valid data.">operator int</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !done_; }
<a name="l00199"></a>00199 
<a name="l00201"></a><a class="code" href="classsc_1_1RedundantCartesianSubIter.html#4fd4fb60c2bfb16c3112628517bd0d89">00201</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#4fd4fb60c2bfb16c3112628517bd0d89" title="The current exponent of x.">a</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> e_[0]; }
<a name="l00203"></a><a class="code" href="classsc_1_1RedundantCartesianSubIter.html#a2a2fc0d86b364430758e2eadf20240b">00203</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#a2a2fc0d86b364430758e2eadf20240b" title="The current exponent of y.">b</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> e_[1]; }
<a name="l00205"></a><a class="code" href="classsc_1_1RedundantCartesianSubIter.html#b3d4b922f2223f38d58373f7c62dbe20">00205</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#b3d4b922f2223f38d58373f7c62dbe20" title="The current exponent of z.">c</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> e_[2]; }
<a name="l00207"></a><a class="code" href="classsc_1_1RedundantCartesianSubIter.html#345f328b617622164465923a437d4498">00207</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#345f328b617622164465923a437d4498" title="The angular momentum.">l</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> l_; }
<a name="l00209"></a><a class="code" href="classsc_1_1RedundantCartesianSubIter.html#960f861b0a9601caf8d255ea1620e17f">00209</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#960f861b0a9601caf8d255ea1620e17f" title="Returns a() if i==0, b() if i==1, and c() if i==2.">l</a>(<span class="keywordtype">int</span> i) { <span class="keywordflow">return</span> e_[i]; }
<a name="l00211"></a><a class="code" href="classsc_1_1RedundantCartesianSubIter.html#01a30a3f495f2eab1f88e5688da887f3">00211</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RedundantCartesianSubIter.html#01a30a3f495f2eab1f88e5688da887f3" title="Return the i&amp;#39;th axis.">axis</a>(<span class="keywordtype">int</span> i) { <span class="keywordflow">return</span> axis_[i]; }
<a name="l00212"></a>00212 };
<a name="l00213"></a>00213 
<a name="l00214"></a>00214 }
<a name="l00215"></a>00215   
<a name="l00216"></a>00216 <span class="preprocessor">#endif</span>
<a name="l00217"></a>00217 <span class="preprocessor"></span>
<a name="l00218"></a>00218 <span class="comment">// Local Variables:</span>
<a name="l00219"></a>00219 <span class="comment">// mode: c++</span>
<a name="l00220"></a>00220 <span class="comment">// c-file-style: "ETS"</span>
<a name="l00221"></a>00221 <span class="comment">// End:</span>
</pre></div></div>
<hr>
<address>
<small>

Generated at Wed Oct 14 14:12:09 2009 for <a
href="http://www.mpqc.org">MPQC</a>
2.3.1 using the documentation package <a
href="http://www.doxygen.org">Doxygen</a>
1.5.9.

</small>
</address>
</body>
</html>