Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > ffa1e6f5ad04360808fe8840fe3ba036 > files > 67

vrq-devel-1.0.88-1.fc14.i686.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>vrq: /net/fileserver/nas/home/mdh/vrq/src/cdatatype.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
  <table border="0" cellspacing="0" cellpadding="0" width="100%">
   <tr>
    <td width="180"><a href="index.html"><img src="vrq.png" width="150" height="100" border="0" alt="vrq"></a></td>
    <td background="top_bg.png" align="right" width="100%">
      <img src="glyth.png" width="500" height="100" border="0" alt="">
    </td>
   </tr>
   <tr>
    <td background="#FFFFFF" align="right" width="50" height="4"></td>
   </tr>
  </table>
</head><body>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <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="modules.html"><span>Modules</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="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>/net/fileserver/nas/home/mdh/vrq/src/cdatatype.h</h1>  </div>
</div>
<div class="contents">
<a href="cdatatype_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 1997-2010, Mark Hummel</span>
<a name="l00003"></a>00003 <span class="comment"> * This file is part of Vrq.</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * Vrq is free software; you can redistribute it and/or</span>
<a name="l00006"></a>00006 <span class="comment"> * modify it under the terms of the GNU General Public</span>
<a name="l00007"></a>00007 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00008"></a>00008 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * Vrq is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00013"></a>00013 <span class="comment"> * General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU General Public</span>
<a name="l00016"></a>00016 <span class="comment"> * License along with this library; if not, write to the Free Software</span>
<a name="l00017"></a>00017 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, </span>
<a name="l00018"></a>00018 <span class="comment"> * Boston, MA  02110-1301  USA</span>
<a name="l00019"></a>00019 <span class="comment"> *****************************************************************************</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021 <span class="comment">/******************************************************************************</span>
<a name="l00022"></a>00022 <span class="comment"> *</span>
<a name="l00023"></a>00023 <span class="comment"> *</span>
<a name="l00024"></a>00024 <span class="comment"> *         cdatatype.h</span>
<a name="l00025"></a>00025 <span class="comment"> *              - abstract class for data types </span>
<a name="l00026"></a>00026 <span class="comment"> *</span>
<a name="l00027"></a>00027 <span class="comment"> *</span>
<a name="l00028"></a>00028 <span class="comment"> ******************************************************************************</span>
<a name="l00029"></a>00029 <span class="comment"> */</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#ifndef CDATATYPE_H</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define CDATATYPE_H</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &quot;<a class="code" href="cobject_8h.html">cobject.h</a>&quot;</span>
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>;
<a name="l00038"></a>00038 
<a name="l00042"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3">00042</a> <span class="keyword">enum</span> <a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3" title="Variable data types.">VarDataType_t</a> {
<a name="l00043"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a55ba6b994c05f6f29e01f64b3b230d28">00043</a>         <a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a55ba6b994c05f6f29e01f64b3b230d28" title="no type declaration">eNO_VAR_TYPE</a> = 0,
<a name="l00044"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a05e90d9f1bdcb4ae1b5f8cb0274bf380">00044</a>         eREAL,           
<a name="l00045"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a2d3651bf12fba0b563d949f86c0ab806">00045</a>         eSHORTREAL,      
<a name="l00046"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a2943c591e2c4e589c0d8158ed05b0c3f">00046</a>         eREALTIME,       
<a name="l00047"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a3d87507ffadb276b32d145643629dd3e">00047</a>         eREG,            
<a name="l00048"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a58292ad6987b99a84369fc2e97cea939">00048</a>         eTIME,           
<a name="l00049"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a3186dc72762b51a98441d0a51afbaacf">00049</a>         eLOGIC,          
<a name="l00050"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a78f5547c40b1bffb4e3c2e1ff0230ca8">00050</a>         eINTEGER,        
<a name="l00051"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a92d342ba876be9614bdffe6f9a824a08">00051</a>         eBIT,            
<a name="l00052"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3ad2e0025a666d8982a2cca81b3cdd6a8d">00052</a>         eINT,            
<a name="l00053"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a91bea45c8f805e83527a7233a9e26de8">00053</a>         eBYTE,           
<a name="l00054"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a72f101d9c289b4baed1f9e3b53ea91b7">00054</a>         eSHORTINT,       
<a name="l00055"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a222d099301669ea1f13d0f822273ee29">00055</a>         eLONGINT,        
<a name="l00056"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3acca6e0e506084943da9e94033bee1036">00056</a>         eDEVENT,         
<a name="l00057"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a70e556c661c96a3b0d7d926cb4a9ed41">00057</a>         eSTRUCT,         
<a name="l00058"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a024f8c5fe9ebfba41b0fec66c079f407">00058</a>         eUNION,          
<a name="l00059"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3ac3cb0d6e0472c4716c2043704a428f7e">00059</a>         eUNION_TAGGED,   
<a name="l00060"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a4ef5c267aa81396c06803d88b521df5c">00060</a>         eENUM,           
<a name="l00061"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3a3e90b7642d949100eb43b2dbf1cf3b0c">00061</a>         eCLASS,          
<a name="l00062"></a><a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3af347002faf323cd737e14dfb40920b9a">00062</a>         ePROXY,          
<a name="l00063"></a>00063 };
<a name="l00064"></a>00064 <span class="preprocessor">#if defined CDATATYPE_CC</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span>
<a name="l00068"></a><a class="code" href="cdatatype_8h.html#a567df7d926298361d07f0590d18cb17f">00068</a> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="cdatatype_8h.html#a567df7d926298361d07f0590d18cb17f" title="Array to convert DataType_t to character string.">varDataTypeName</a>[] = {
<a name="l00069"></a>00069         <span class="stringliteral">&quot;&quot;</span>,
<a name="l00070"></a>00070         <span class="stringliteral">&quot;real&quot;</span>,
<a name="l00071"></a>00071         <span class="stringliteral">&quot;shortreal&quot;</span>,
<a name="l00072"></a>00072         <span class="stringliteral">&quot;realtime&quot;</span>,
<a name="l00073"></a>00073         <span class="stringliteral">&quot;reg&quot;</span>,
<a name="l00074"></a>00074         <span class="stringliteral">&quot;time&quot;</span>,
<a name="l00075"></a>00075         <span class="stringliteral">&quot;logic&quot;</span>,
<a name="l00076"></a>00076         <span class="stringliteral">&quot;integer&quot;</span>,
<a name="l00077"></a>00077         <span class="stringliteral">&quot;bit&quot;</span>,
<a name="l00078"></a>00078         <span class="stringliteral">&quot;int&quot;</span>,
<a name="l00079"></a>00079         <span class="stringliteral">&quot;byte&quot;</span>,
<a name="l00080"></a>00080         <span class="stringliteral">&quot;shortint&quot;</span>,
<a name="l00081"></a>00081         <span class="stringliteral">&quot;longint&quot;</span>,
<a name="l00082"></a>00082         <span class="stringliteral">&quot;event&quot;</span>,
<a name="l00083"></a>00083         <span class="stringliteral">&quot;struct&quot;</span>,
<a name="l00084"></a>00084         <span class="stringliteral">&quot;union&quot;</span>,
<a name="l00085"></a>00085         <span class="stringliteral">&quot;union tagged&quot;</span>,
<a name="l00086"></a>00086         <span class="stringliteral">&quot;enum&quot;</span>,
<a name="l00087"></a>00087         <span class="stringliteral">&quot;class&quot;</span>,
<a name="l00088"></a>00088         <span class="stringliteral">&quot;proxy&quot;</span>,
<a name="l00089"></a>00089 };
<a name="l00090"></a>00090 <span class="preprocessor">#else // CDATATYPE_CC</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="cdatatype_8h.html#a567df7d926298361d07f0590d18cb17f" title="Array to convert DataType_t to character string.">varDataTypeName</a>[];
<a name="l00092"></a>00092 <span class="preprocessor">#endif // CDATATYPE_CC</span>
<a name="l00093"></a>00093 <span class="preprocessor"></span>
<a name="l00097"></a><a class="code" href="cdatatype_8h.html#aff499c00c9873bf3fcf1c46bf2652790">00097</a> <span class="keyword">enum</span> <a class="code" href="cdatatype_8h.html#aff499c00c9873bf3fcf1c46bf2652790" title="Expression node type.">NodeType_t</a> {
<a name="l00098"></a><a class="code" href="cdatatype_8h.html#aff499c00c9873bf3fcf1c46bf2652790a4e6ccf577f5e3892239a4d0243233c46">00098</a>         eU,     
<a name="l00099"></a><a class="code" href="cdatatype_8h.html#aff499c00c9873bf3fcf1c46bf2652790a568d83290d150b55a7c08ec3e01a4b80">00099</a>         eR,     
<a name="l00100"></a><a class="code" href="cdatatype_8h.html#aff499c00c9873bf3fcf1c46bf2652790ac86b246952270efae89ef9d58b744ca5">00100</a>         eS,     
<a name="l00101"></a><a class="code" href="cdatatype_8h.html#aff499c00c9873bf3fcf1c46bf2652790aba2a01614b83646f95a193998426ac1f">00101</a>         eE,     
<a name="l00102"></a><a class="code" href="cdatatype_8h.html#aff499c00c9873bf3fcf1c46bf2652790a77502063a07ae37146a820655327ac53">00102</a>         <a class="code" href="cdatatype_8h.html#aff499c00c9873bf3fcf1c46bf2652790a77502063a07ae37146a820655327ac53" title="unsigned bit vector">eB</a>      
<a name="l00103"></a>00103 };
<a name="l00104"></a>00104 
<a name="l00108"></a><a class="code" href="classCDataType.html">00108</a> <span class="keyword">class </span><a class="code" href="classCDataType.html" title="Base class for describing data types.">CDataType</a> : <span class="keyword">public</span> <a class="code" href="classCObject.html" title="Base class for vrq objects.">CObject</a>
<a name="l00109"></a>00109 {
<a name="l00110"></a>00110 <span class="keyword">public</span>:
<a name="l00111"></a>00111 <span class="keyword">private</span>:
<a name="l00112"></a>00112         <span class="keywordtype">int</span>           const_;           
<a name="l00113"></a>00113         <a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3" title="Variable data types.">VarDataType_t</a> varDataType;      
<a name="l00114"></a>00114         <span class="keywordtype">int</span> numberOfPackedDimensions;   
<a name="l00115"></a>00115         vector&lt;CNode*&gt; packedRange;     
<a name="l00116"></a>00116 <span class="keyword">public</span>:
<a name="l00120"></a>00120         <a class="code" href="classCDataType.html#a2f06f72000f839b55421c5c8655e17b0" title="Create data type instance.">CDataType</a>( <a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3" title="Variable data types.">VarDataType_t</a> t );
<a name="l00124"></a>00124         <a class="code" href="classCDataType.html#a2f06f72000f839b55421c5c8655e17b0" title="Create data type instance.">CDataType</a>( <a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3" title="Variable data types.">VarDataType_t</a> t, list&lt;CNode*&gt; packedList );
<a name="l00129"></a>00129         <span class="keyword">virtual</span> <a class="code" href="classCDataType.html" title="Base class for describing data types.">CDataType</a>* <a class="code" href="classCDataType.html#a7948a601d3674deeb99110cf90754591" title="Create a new copy with a deep copy.">Clone</a>( <a class="code" href="classCObstack.html" title="Bulk object allocation object.">CObstack</a>* heap ) = 0;
<a name="l00134"></a><a class="code" href="classCDataType.html#a638c60423053f8e049b5c0bbaf9c961e">00134</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCDataType.html#a638c60423053f8e049b5c0bbaf9c961e" title="Set declaration&amp;#39;s variable data type.">SetVarDataType</a>( <a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3" title="Variable data types.">VarDataType_t</a> v ) { varDataType = v; }
<a name="l00139"></a><a class="code" href="classCDataType.html#acbfb13c71bde4a4e2cc2240470a3c1ae">00139</a>         <span class="keyword">virtual</span> <a class="code" href="cdatatype_8h.html#adfd781749f7a9fe2df00a9bc5938efa3" title="Variable data types.">VarDataType_t</a>  <a class="code" href="classCDataType.html#acbfb13c71bde4a4e2cc2240470a3c1ae" title="Get declaration&amp;#39;s variable data type.">GetVarDataType</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> varDataType; }
<a name="l00145"></a><a class="code" href="classCDataType.html#ab8f546aedd3be8df55ad56dbb83d627c">00145</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCDataType.html#ab8f546aedd3be8df55ad56dbb83d627c" title="Set declaration&amp;#39;s const property.">SetConst</a>( <span class="keywordtype">int</span> v ) { const_ = v; }
<a name="l00150"></a><a class="code" href="classCDataType.html#a977ae3fb34fa0a64a36d521ca1d0a3cc">00150</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="classCDataType.html#a977ae3fb34fa0a64a36d521ca1d0a3cc" title="Get declaration&amp;#39;s const property.">GetConst</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> const_; }
<a name="l00155"></a>00155         <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="classCDataType.html#a76cb34f7850f8e5755ebd9355c18be3d" title="Get declaration&amp;#39;s 2 state property.">GetTwoState</a>() <span class="keyword">const</span> = 0;
<a name="l00160"></a>00160         <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="classCDataType.html#a2a351dfb3473cce09109c4d01f792ad2" title="Get declartion&amp;#39;s signed property.">GetSigned</a>() <span class="keyword">const</span> = 0;
<a name="l00165"></a>00165         <span class="keyword">virtual</span> <a class="code" href="cdatatype_8h.html#aff499c00c9873bf3fcf1c46bf2652790" title="Expression node type.">NodeType_t</a> <a class="code" href="classCDataType.html#a57461302c7fcae3f01c90b46029f27b4" title="Get data type.">GetNodeType</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span> = 0;
<a name="l00173"></a>00173         <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="classCDataType.html#aefd07b178e91517f770ab1b17415c4f9" title="Determine if base width (sans packed dimensions) of declaration is constant, ie dependent upon only c...">IsBaseWidthConstant</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span> = 0;
<a name="l00181"></a>00181         <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="classCDataType.html#a9e35d055ee454f93fd7d6a656adfa0c3" title="Determine if base width (sans packed dimensions) of declaration is volatile, ie depend upon parameter...">IsBaseWidthVolatile</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span> = 0;
<a name="l00188"></a>00188         <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="classCDataType.html#ae2d5bb2774882cd7c54bc2aecf1dda27" title="Determine if base width (sans packed dimensions) of declaration can be evaluated.">IsBaseWidthEvaluateable</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span> = 0;
<a name="l00193"></a>00193         <span class="keyword">virtual</span> <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> <a class="code" href="classCDataType.html#a1862bc0efabf6c777c6d789c0efe4664" title="Evaluate base width (sans packed dimensions) of declaration.">GetBaseWidth</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span> = 0;
<a name="l00198"></a>00198         <span class="keyword">virtual</span> <a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>* <a class="code" href="classCDataType.html#a60c4ff7ca5f188d0fdcb1506502b1984" title="Get expression for datatype&amp;#39;s base width (sans packed dimensions).">GetBaseWidthExp</a>() <span class="keyword">const</span> = 0;
<a name="l00204"></a>00204         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCDataType.html#ae0a3b9004bf75d9149b6bbec7149fc8d" title="Determine if complete data structure is a scalar.">IsScalar</a>() <span class="keyword">const</span>;
<a name="l00210"></a>00210         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCDataType.html#a88613fc39d24537ca1b9aa3d8810ec06" title="Determine if complete data structure is a vector.">IsVector</a>() <span class="keyword">const</span> = 0;
<a name="l00216"></a>00216         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCDataType.html#a1f33f248b84008d6bfabb22c0edc9d51" title="Determine if complete data structure is packed.">IsPacked</a>() <span class="keyword">const</span> = 0;
<a name="l00223"></a>00223         <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="classCDataType.html#a2ba795a18846f2d5f59c9ac1d29b672a" title="Determine if packed or vector width of declaration is constant, ie dependent upon only constants and ...">IsPackedWidthConstant</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span>;
<a name="l00230"></a>00230         <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="classCDataType.html#ad762de71ab8056a9f8c166863e2fa570" title="Determine if packed or vector width of declaration is volatile, ie depend upon parameters or variable...">IsPackedWidthVolatile</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span>;
<a name="l00236"></a>00236         <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="classCDataType.html#ad318d2ad41c7b2cb3d6e81244e6fb396" title="Determine if packed or vector width of declaration can be evaluated.">IsPackedWidthEvaluateable</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span>;
<a name="l00242"></a>00242         <span class="keyword">virtual</span> <a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>* <a class="code" href="classCDataType.html#a775620de875072faaeed32f192b11748" title="Get expression for declaration&amp;#39;s msb.">GetPackedMsb</a>() <span class="keyword">const</span>;
<a name="l00248"></a>00248         <span class="keyword">virtual</span> <a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>* <a class="code" href="classCDataType.html#a624a2f58465e80c0e77f6855901020be" title="Get expression for declaration&amp;#39;s lsb.">GetPackedLsb</a>() <span class="keyword">const</span>;
<a name="l00254"></a>00254         <span class="keyword">virtual</span> <a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>* <a class="code" href="classCDataType.html#a2199f10cd56c978fefbd4a80290c22a8" title="Get expression for datatype&amp;#39;s overall packed or vector range (msb/lsb).">GetPackedRange</a>() <span class="keyword">const</span>;
<a name="l00259"></a>00259         <span class="keyword">virtual</span> <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> <a class="code" href="classCDataType.html#a849cc93a732b36072f58855432f0a486" title="Evaluate packed or vector width of declaration.">GetPackedWidth</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span>;
<a name="l00264"></a>00264         <span class="keyword">virtual</span> <a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>* <a class="code" href="classCDataType.html#a3148cd00d38e023b0773f103841100c4" title="Get expression for datatype&amp;#39;s overall packed or vector width.">GetPackedWidthExp</a>() <span class="keyword">const</span>;
<a name="l00269"></a>00269         <span class="keyword">virtual</span> <span class="keywordtype">int</span>   <a class="code" href="classCDataType.html#ad76bef34f1228366dd0baafd0c47fc10" title="Evaluate current decl width direction.">PackedWidthDirection</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span>;
<a name="l00274"></a><a class="code" href="classCDataType.html#a7622414ff23229f80fca51a9067c63fa">00274</a>         <span class="keyword">virtual</span> <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> <a class="code" href="classCDataType.html#a7622414ff23229f80fca51a9067c63fa" title="Get number of packed dimensions of declaration.">GetNumberOfPackedDimensions</a>( <span class="keywordtype">void</span> )<span class="keyword"> const </span>
<a name="l00275"></a>00275 <span class="keyword">        </span>{ <span class="keywordflow">return</span> numberOfPackedDimensions;}
<a name="l00281"></a>00281         <span class="keyword">virtual</span> <a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>* <a class="code" href="classCDataType.html#a9e58c31ec3c4e3ebf002f2c4b44a74d0" title="Get expression tree for upper limit of given packed array dimension.">GetPackedMsi</a>( <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> dim ) <span class="keyword">const</span>; 
<a name="l00287"></a>00287         <span class="keyword">virtual</span> <a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>* <a class="code" href="classCDataType.html#abdf6b985ea0f73622f24293ace7c3607" title="Get expression tree for lower limit of packed array dimension.">GetPackedLsi</a>( <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> dim ) <span class="keyword">const</span>;
<a name="l00293"></a><a class="code" href="classCDataType.html#a1bc2c13ea265858af2b9518493a0b50f">00293</a>         <span class="keyword">virtual</span> <a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>*  <a class="code" href="classCDataType.html#a2199f10cd56c978fefbd4a80290c22a8" title="Get expression for datatype&amp;#39;s overall packed or vector range (msb/lsb).">GetPackedRange</a>( <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> dim )<span class="keyword"> const </span>
<a name="l00294"></a>00294 <span class="keyword">        </span>{ <span class="keywordflow">return</span> packedRange[dim]; }
<a name="l00295"></a>00295 
<a name="l00296"></a>00296 
<a name="l00301"></a>00301         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCDataType.html#ac87a05eaba3e858db16987b7f599f345" title="Dump data type info to file descriptor.">Dump</a>( FILE* f ) <span class="keyword">const</span> = 0;
<a name="l00309"></a>00309         <span class="keyword">virtual</span> <span class="keywordtype">void</span>    <a class="code" href="classCDataType.html#a8a8a008cd57f5869d0af73dadfa8b3c4" title="Walk tree invoking callback on each node before children have been visited.">PreVisit1</a>( <span class="keywordtype">int</span> (*callback)(<a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>*,<span class="keywordtype">void</span>*), <span class="keywordtype">void</span>* data );
<a name="l00316"></a>00316         <span class="keyword">virtual</span> <span class="keywordtype">void</span>    <a class="code" href="classCDataType.html#a510f0b9bb9256197e11873f5d9ab801f" title="Walk tree invoking callback on each node after children have been visited.">PostVisit1</a>( <span class="keywordtype">void</span> (*callback)(<a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>*,<span class="keywordtype">void</span>*), <span class="keywordtype">void</span>* data );
<a name="l00325"></a>00325         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCDataType.html#a2a83ea33a7d6582955fadecea7d61669" title="Walk tree invoking callback on each node after children have been visited.">PostSubVisit1</a>( <a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>* (*callback)(<a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>*, <span class="keywordtype">void</span>*), <span class="keywordtype">void</span>* data );
<a name="l00326"></a>00326 <span class="keyword">protected</span>:
<a name="l00333"></a>00333         <span class="keywordtype">void</span> <a class="code" href="classCDataType.html#a1ae671e209cdb0d123b4349eff1a9db0" title="Perform deep copy of given object to this one This should never be call directly, only by subclasses...">Copy</a>( <a class="code" href="classCObstack.html" title="Bulk object allocation object.">CObstack</a>* heap, <span class="keyword">const</span> <a class="code" href="classCDataType.html" title="Base class for describing data types.">CDataType</a>&amp; o );
<a name="l00334"></a>00334 <span class="keyword">private</span>:
<a name="l00335"></a>00335         <span class="comment">/*</span>
<a name="l00336"></a>00336 <span class="comment">         * disable copy constructors</span>
<a name="l00337"></a>00337 <span class="comment">         */</span>
<a name="l00338"></a>00338         <a class="code" href="classCDataType.html#a2f06f72000f839b55421c5c8655e17b0" title="Create data type instance.">CDataType</a>( <span class="keyword">const</span> <a class="code" href="classCDataType.html" title="Base class for describing data types.">CDataType</a>&amp; o );
<a name="l00339"></a>00339 
<a name="l00340"></a>00340 };
<a name="l00341"></a>00341 
<a name="l00342"></a>00342 <span class="preprocessor">#endif // CDATATYPE_H</span>
<a name="l00343"></a>00343 <span class="preprocessor"></span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>