mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-12-15 08:39:54 +08:00
135 lines
28 KiB
HTML
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++
|
||
|
 <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 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 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> <span class="preprocessor">#include "ncDim.h"</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include "ncGroup.h"</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include "ncCheck.h"</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <algorithm></span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <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> </div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <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>  <span class="comment">// Global comparator operator ==============</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  <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>  <span class="keywordtype">bool</span> operator<(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a>& lhs,<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a>& rhs)</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  {</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  }</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <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>  <span class="keywordtype">bool</span> operator>(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a>& lhs,<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a>& rhs)</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  {</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  }</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> }</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <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> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <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> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim</a>& NcDim::operator=(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcDim.html">NcDim
|
||
|
<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 &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 &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 &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>
|