"Fossies" - the Fresh Open Source Software Archive

Member "netcdf-cxx4-4.3.1/cxx4/ncUint.cpp" (11 Sep 2019, 374 Bytes) of package /linux/misc/netcdf-cxx4-4.3.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ncUint.cpp" see the Fossies "Dox" file reference documentation.

    1 #include "ncUint.h"
    2 #include "netcdf.h"
    3 using namespace netCDF;
    4 
    5 // create an instance of NcUint  called netCDF::ncUint
    6 namespace netCDF {
    7   NcUint ncUint;
    8 }
    9 
   10 // constructor
   11 NcUint::NcUint() : NcType(NC_UINT){
   12 }
   13 
   14 NcUint::~NcUint() {
   15 }
   16 
   17 
   18 // equivalence operator
   19 bool NcUint::operator==(const NcUint & rhs)    {
   20   // simply check the netCDF id.
   21   return myId == rhs.myId;
   22 }