netcdf-cxx4/ncDim_8cpp_source.html
2016-11-11 15:38:10 -07:00

135 lines
28 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>NetCDF-C++: ncDim.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="netcdf-50x50.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">NetCDF-C++
&#160;<span id="projectnumber">4.3.1-developer</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>NetCDF&#160;Documentation</span></a></li>
<li><a href="pages.html"><span>Navigation</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>Source&#160;Files</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('ncDim_8cpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">ncDim.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#include &quot;ncDim.h&quot;</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#include &quot;ncGroup.h&quot;</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="preprocessor">#include &quot;ncCheck.h&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacenetCDF.html">netCDF</a> {</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160; <span class="comment">// Global comparator operator ==============</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160; <span class="comment">// comparator operator </span></div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcDim.html#a21479a316ff9af87d6d44a36d03775ed"> 11</a></span>&#160; <span class="keywordtype">bool</span> operator&lt;(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a>&amp; lhs,<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a>&amp; rhs)</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160; {</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; }</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; <span class="comment">// comparator operator </span></div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcDim.html#a2f4b1476f86be1a97221b31008f3bb64"> 17</a></span>&#160; <span class="keywordtype">bool</span> operator&gt;(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a>&amp; lhs,<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a>&amp; rhs)</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; {</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; }</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;}</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacenetCDF.html">netCDF</a>;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment">// assignment operator</span></div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcDim.html#a91b0ad217633643f05bbef3bb7dd43be"> 26</a></span>&#160;<a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a>&amp; NcDim::operator=(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a> &amp; rhs)</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;{</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; nullObject = rhs.nullObject;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; myId = rhs.myId;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; groupId = rhs.groupId;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;}</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="comment">// The copy constructor.</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcDim.html#a2946b0ec352e8b70f87f815c14f4a164"> 35</a></span>&#160;NcDim::NcDim(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a>&amp; rhs): </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; nullObject(rhs.nullObject),</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; myId(rhs.myId),</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; groupId(rhs.groupId)</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;{}</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="comment">// equivalence operator</span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcDim.html#a74b6097f1faba62db140ef90d93baedd"> 43</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classnetCDF_1_1NcDim.html#a74b6097f1faba62db140ef90d93baedd">NcDim::operator==</a>(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a>&amp; rhs)<span class="keyword"> const</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keywordflow">if</span>(nullObject) </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordflow">return</span> nullObject == rhs.nullObject;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordflow">else</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordflow">return</span> myId == rhs.myId &amp;&amp; groupId == rhs.groupId;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;} </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="comment">// != operator</span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcDim.html#a19093d3f24adc06c11e57fd7c21b9925"> 52</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classnetCDF_1_1NcDim.html#a19093d3f24adc06c11e57fd7c21b9925">NcDim::operator!=</a>(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a> &amp; rhs)<span class="keyword"> const</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == rhs);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;} </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="comment">// Gets parent group.</span></div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcDim.html#a77412cc7b571aaf54be08de663eb9a75"> 59</a></span>&#160;<a class="code" href="classnetCDF_1_1NcGroup.html">NcGroup</a> <a class="code" href="classnetCDF_1_1NcDim.html#a77412cc7b571aaf54be08de663eb9a75">NcDim::getParentGroup</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classnetCDF_1_1NcGroup.html">NcGroup</a>(groupId);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;}</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="comment">// Constructor generates a null object.</span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcDim.html#af897d4789054c231895ae3afd8c5e808"> 64</a></span>&#160;<a class="code" href="classnetCDF_1_1NcDim.html#af897d4789054c231895ae3afd8c5e808">NcDim::NcDim</a>() : </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; nullObject(true) </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;{}</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="comment">// Constructor for a dimension (must already exist in the netCDF file.)</span></div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcDim.html#a1a554466a5cb754dba285b0eeaed3a16"> 69</a></span>&#160;<a class="code" href="classnetCDF_1_1NcDim.html#af897d4789054c231895ae3afd8c5e808">NcDim::NcDim</a>(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcGroup.html">NcGroup</a>&amp; grp, <span class="keywordtype">int</span> dimId) :</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; nullObject(false)</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;{</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; groupId = grp.<a class="code" href="classnetCDF_1_1NcGroup.html#af5bf51e00bf7a6e231d052ce8c0635fd">getId</a>();</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; myId = dimId;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;}</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="comment">// gets the size of the dimension, for unlimited, this is the current number of records.</span></div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcDim.html#a378d9f8c1849d4fc2a5bb8150ca5c856"> 77</a></span>&#160;<span class="keywordtype">size_t</span> <a class="code" href="classnetCDF_1_1NcDim.html#a378d9f8c1849d4fc2a5bb8150ca5c856">NcDim::getSize</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordtype">size_t</span> dimSize;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_inq_dimlen(groupId, myId, &amp;dimSize),__FILE__,__LINE__);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keywordflow">return</span> dimSize;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;}</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="comment">// returns true if this dimension is unlimited.</span></div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcDim.html#a9f7497a9d31995056d51f3389fc04023"> 86</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classnetCDF_1_1NcDim.html#a9f7497a9d31995056d51f3389fc04023">NcDim::isUnlimited</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordtype">int</span> numlimdims;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordtype">int</span>* unlimdimidsp=NULL;</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="comment">// get the number of unlimited dimensions</span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_inq_unlimdims(groupId,&amp;numlimdims,unlimdimidsp),__FILE__,__LINE__);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordflow">if</span> (numlimdims){</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="comment">// get all the unlimited dimension ids in this group</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; vector&lt;int&gt; unlimdimid(numlimdims);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_inq_unlimdims(groupId,&amp;numlimdims,&amp;unlimdimid[0]),__FILE__,__LINE__);</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; vector&lt;int&gt;::iterator it;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="comment">// now look to see if this dimension is unlimited</span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; it = find(unlimdimid.begin(),unlimdimid.end(),myId);</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keywordflow">return</span> it != unlimdimid.end();</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; }</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;}</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="comment">// gets the name of the dimension.</span></div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcDim.html#a93a5452f4504146ae7099ac3f2eddd33"> 106</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code" href="classnetCDF_1_1NcDim.html#a93a5452f4504146ae7099ac3f2eddd33">NcDim::getName</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordtype">char</span> dimName[NC_MAX_NAME+1];</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_inq_dimname(groupId, myId, dimName),__FILE__,__LINE__);</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordflow">return</span> string(dimName);</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;}</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;<span class="comment">// renames this dimension.</span></div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcDim.html#ad145fa3229682fab51468b3258572995"> 114</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcDim.html#ad145fa3229682fab51468b3258572995">NcDim::rename</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; name)</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;{</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_rename_dim(groupId, myId, name.c_str()),__FILE__,__LINE__);</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;}</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;</div><div class="ttc" id="namespacenetCDF_html"><div class="ttname"><a href="namespacenetCDF.html">netCDF</a></div><div class="ttdoc">C++ API for netCDF4. </div><div class="ttdef"><b>Definition:</b> <a href="ncAtt_8h_source.html#l00009">ncAtt.h:9</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcDim_html_a77412cc7b571aaf54be08de663eb9a75"><div class="ttname"><a href="classnetCDF_1_1NcDim.html#a77412cc7b571aaf54be08de663eb9a75">netCDF::NcDim::getParentGroup</a></div><div class="ttdeci">NcGroup getParentGroup() const </div><div class="ttdoc">Gets a NcGroup object of the parent group. </div><div class="ttdef"><b>Definition:</b> <a href="ncDim_8cpp_source.html#l00059">ncDim.cpp:59</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcDim_html_a19093d3f24adc06c11e57fd7c21b9925"><div class="ttname"><a href="classnetCDF_1_1NcDim.html#a19093d3f24adc06c11e57fd7c21b9925">netCDF::NcDim::operator!=</a></div><div class="ttdeci">bool operator!=(const NcDim &amp;rhs) const </div><div class="ttdoc">!= operator </div><div class="ttdef"><b>Definition:</b> <a href="ncDim_8cpp_source.html#l00052">ncDim.cpp:52</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcGroup_html_af5bf51e00bf7a6e231d052ce8c0635fd"><div class="ttname"><a href="classnetCDF_1_1NcGroup.html#af5bf51e00bf7a6e231d052ce8c0635fd">netCDF::NcGroup::getId</a></div><div class="ttdeci">int getId() const </div><div class="ttdoc">Gets the group id. </div><div class="ttdef"><b>Definition:</b> <a href="ncGroup_8cpp_source.html#l00141">ncGroup.cpp:141</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcDim_html_af897d4789054c231895ae3afd8c5e808"><div class="ttname"><a href="classnetCDF_1_1NcDim.html#af897d4789054c231895ae3afd8c5e808">netCDF::NcDim::NcDim</a></div><div class="ttdeci">NcDim()</div><div class="ttdoc">Constructor generates a null object. </div><div class="ttdef"><b>Definition:</b> <a href="ncDim_8cpp_source.html#l00064">ncDim.cpp:64</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcGroup_html"><div class="ttname"><a href="classnetCDF_1_1NcGroup.html">netCDF::NcGroup</a></div><div class="ttdoc">Class represents a netCDF group. </div><div class="ttdef"><b>Definition:</b> <a href="ncGroup_8h_source.html#l00027">ncGroup.h:27</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcDim_html"><div class="ttname"><a href="classnetCDF_1_1NcDim.html">netCDF::NcDim</a></div><div class="ttdoc">Class represents a netCDF dimension. </div><div class="ttdef"><b>Definition:</b> <a href="ncDim_8h_source.html#l00013">ncDim.h:13</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcDim_html_a9f7497a9d31995056d51f3389fc04023"><div class="ttname"><a href="classnetCDF_1_1NcDim.html#a9f7497a9d31995056d51f3389fc04023">netCDF::NcDim::isUnlimited</a></div><div class="ttdeci">bool isUnlimited() const </div><div class="ttdoc">Returns true if this is an unlimited dimension. </div><div class="ttdef"><b>Definition:</b> <a href="ncDim_8cpp_source.html#l00086">ncDim.cpp:86</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcDim_html_ad145fa3229682fab51468b3258572995"><div class="ttname"><a href="classnetCDF_1_1NcDim.html#ad145fa3229682fab51468b3258572995">netCDF::NcDim::rename</a></div><div class="ttdeci">void rename(const std::string &amp;newName)</div><div class="ttdoc">renames the dimension </div><div class="ttdef"><b>Definition:</b> <a href="ncDim_8cpp_source.html#l00114">ncDim.cpp:114</a></div></div>
<div class="ttc" id="namespacenetCDF_html_ac90290d966f6e01dbf22fca241162e18"><div class="ttname"><a href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">netCDF::ncCheck</a></div><div class="ttdeci">void ncCheck(int retCode, const char *file, int line)</div><div class="ttdoc">Function checks error code and if necessary throws an exception. </div><div class="ttdef"><b>Definition:</b> <a href="ncCheck_8cpp_source.html#l00011">ncCheck.cpp:11</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcDim_html_a74b6097f1faba62db140ef90d93baedd"><div class="ttname"><a href="classnetCDF_1_1NcDim.html#a74b6097f1faba62db140ef90d93baedd">netCDF::NcDim::operator==</a></div><div class="ttdeci">bool operator==(const NcDim &amp;rhs) const </div><div class="ttdoc">equivalence operator </div><div class="ttdef"><b>Definition:</b> <a href="ncDim_8cpp_source.html#l00043">ncDim.cpp:43</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcDim_html_a93a5452f4504146ae7099ac3f2eddd33"><div class="ttname"><a href="classnetCDF_1_1NcDim.html#a93a5452f4504146ae7099ac3f2eddd33">netCDF::NcDim::getName</a></div><div class="ttdeci">const std::string getName() const </div><div class="ttdoc">The name of this dimension. </div><div class="ttdef"><b>Definition:</b> <a href="ncDim_8cpp_source.html#l00106">ncDim.cpp:106</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcDim_html_a378d9f8c1849d4fc2a5bb8150ca5c856"><div class="ttname"><a href="classnetCDF_1_1NcDim.html#a378d9f8c1849d4fc2a5bb8150ca5c856">netCDF::NcDim::getSize</a></div><div class="ttdeci">size_t getSize() const </div><div class="ttdoc">The size of the dimension; for unlimited, this is the number of records written so far...</div><div class="ttdef"><b>Definition:</b> <a href="ncDim_8cpp_source.html#l00077">ncDim.cpp:77</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<hr size="2"/>
<address style="text-align: center;">
<a href="http://www.unidata.ucar.edu/software/netcdf/">Return to the Main Unidata NetCDF page.</a><br>
<img src="http://www.unidata.ucar.edu/images/logos/uniLogo.png">
<address style="text-align: right;"><small>
Generated on Fri Nov 11 2016 15:28:29 for NetCDF-C++. NetCDF is
a <a href="http://www.unidata.ucar.edu/">Unidata</a> library.</small></address>
</body>
</html>