bes Updated for version 3.20.13
|
A class that represents the dimension of an array. More...
#include <FONcDim.h>
Public Member Functions | |
virtual void | decref () |
Decrement the reference count for this dimension. | |
virtual void | define (int ncid) |
define the DAP dimension in the netcdf file | |
virtual bool | defined () |
virtual int | dimid () |
virtual void | dump (std::ostream &strm) const |
dumps information about this object for debugging purposes | |
FONcDim (const std::string &name, int size) | |
Constructor for FOncDim that defines the dimension of an array. | |
virtual void | incref () |
virtual std::string | name () |
virtual int | size () |
virtual void | update_size (int newsize) |
Static Public Attributes | |
static int | DimNameNum = 0 |
A class that represents the dimension of an array.
This class represents a dimension of a DAP Array with additional information needed to write it out to a netcdf file. Since this dimension can be shared, it includes reference counting so that it can be pointed to by multiple arrays.
FONcDim::FONcDim | ( | const std::string & | name, |
int | size | ||
) |
Constructor for FOncDim that defines the dimension of an array.
name | The name of the dimension |
size | The size of the dimension |
Definition at line 49 of file FONcDim.cc.
|
virtual |
Decrement the reference count for this dimension.
Since dimensions can be shared, there might be more than one array pointing to it. For this reason, we use reference counting for the instance. if the reference count gets to zero, then the instance is deleted
Definition at line 61 of file FONcDim.cc.
|
virtual |
define the DAP dimension in the netcdf file
If the dimension has not already been created by an array that shares this dimension, then define the dimension in the netcdf file.
If the dimension name is empty, the create a default one using an incremented counter.
ncid | The id of the NetCDF file |
BESInternalError | if there is a problem defining the dimension |
Definition at line 79 of file FONcDim.cc.
|
virtual |
dumps information about this object for debugging purposes
Displays the pointer value of this instance plus instance data
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Definition at line 106 of file FONcDim.cc.
|
inlinevirtual |